Linux 软件免费装
Banner图

FYP Weather

开发者 francoisyerg
更新时间 2025年8月21日 01:05
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

widget shortcode weather temperature openweather

下载

1.0.0

详情介绍:

Transform your website with beautiful weather displays that your visitors will love! FYP Weather is a professional WordPress plugin that brings stunning, real-time weather information to your website. With its modern gradient design, smooth animations, and responsive layout, this plugin delivers both functionality and visual appeal. Built for performance and ease of use, FYP Weather features intelligent caching through WordPress transients, automatic language detection supporting 30+ languages, and a comprehensive admin interface that makes configuration simple and straightforward. Why Choose FYP Weather? 🌟 Beautiful Visual Design - Modern gradient backgrounds with weather icons and elegant typography 🚀 Performance Optimized - Built-in transient caching system (1-hour cache) reduces API calls\ 🌍 Multilingual Support - Automatic language detection for 30+ languages based on WordPress locale 📱 Fully Responsive - Mobile-first design that works perfectly on all devices ⚙️ Easy Configuration - Comprehensive admin interface under FYPlugins → Weather 🎨 Theme Integration - Works seamlessly with any WordPress theme 🔧 Professional Code - Clean, secure, and following WordPress coding standards Key Features: This plugin is part of the FYPlugins ecosystem, designed to provide high-quality WordPress solutions with exceptional performance and user experience.

安装:

🚀 Automatic Installation (Recommended)
  1. Login to your WordPress admin dashboard
  2. Navigate to Plugins → Add New
  3. Search for "FYP Weather"
  4. Click "Install Now" and then "Activate" 📁 Manual Installation
  5. Download the plugin ZIP file
  6. Upload to /wp-content/plugins/fyp-weather/ directory
  7. Activate the plugin through the Plugins menu in WordPress ⚙️ Configuration Setup
  8. Get your API key: Visit OpenWeatherMap and register for a free account
  9. Configure the plugin: Go to WordPress Admin → FYPlugins → Weather
  10. Enter your API key and set your default city and preferences
  11. Start using: Add [fyplugins_weather] shortcode anywhere on your site ✅ Quick Test Add [fyplugins_weather city="London, UK"] to any post or page to test the plugin immediately!

屏幕截图:

  • **Multiple Theme Variants** - Default, dark, and light theme options with custom CSS class support
  • **Easy to use shortcode** - Clear and intuitive shortcode usage
  • **Comprehensive Admin Settings** - User-friendly configuration panel for API key, default settings, and display options
  • **FYPlugins ready** - Faster, stronger, easier with FYPlugins core integrated

常见问题:

🎨 Does this plugin work with any theme?

Absolutely! FYP Weather is designed to work flawlessly with all WordPress themes. The plugin uses modern CSS that adapts to your theme's styling while maintaining its beautiful design. It includes built-in responsive design and theme variants (default, dark, light).

🔑 Do I need an API key?

Yes, but it's free and easy! You need a free API key from OpenWeatherMap. The free tier generously provides 1,000 API calls per day, which is more than enough for most websites. Getting an API key takes just 2 minutes.

⚡ How does the caching system work?

Smart and automatic! The plugin uses WordPress transients to cache weather data for exactly 1 hour (3600 seconds). This means faster loading times for your visitors and efficient use of your OpenWeatherMap API quota. The cache updates automatically when the data expires.

🎛️ Can I customize the weather display?

Extensively! You can customize almost everything:

  • Show/hide weather description, humidity, wind speed
  • Custom labels for all elements
  • Different temperature units (°C, °F, K)
  • Custom CSS classes for unique styling
  • Multiple display locations with different settings

🌍 What languages are supported?

30+ languages automatically! The plugin detects your WordPress language setting and requests weather descriptions in that language from OpenWeatherMap. The supported languages are mapped from WordPress locales including English, French, German, Spanish, Italian, Portuguese, Russian, Chinese, Japanese, Korean, Arabic, and many others. If your language isn't supported, it defaults to English.

🏙️ Can I display weather for multiple cities?

Yes, unlimited cities! Use multiple shortcodes with different city parameters anywhere on your site. Each can have different styling and display options. Perfect for travel sites, international businesses, or multi-location organizations.

🚀 Does it affect my site's performance?

Minimal impact, maximum performance! FYP Weather is optimized for speed with:

  • WordPress transient caching (1-hour weather data storage)
  • Lightweight CSS file (under 3KB)
  • Efficient API calls with 10-second timeout protection
  • Clean, optimized PHP code following WordPress standards
  • No JavaScript dependencies

⏱️ How often is weather data updated?

Real-time with smart caching! Weather data is fetched in real-time from OpenWeatherMap but cached using WordPress transients for exactly 1 hour. This provides up-to-date information while ensuring fast loading times and efficient API usage.

🛠️ What happens if the API is unavailable?

Graceful error handling! The plugin includes comprehensive error handling:

  • User-friendly error messages like "Error: Unable to fetch weather data"
  • Secure error display when API key is missing
  • Timeout protection (10 seconds max)
  • No site breaking or white screens of death

📱 Is it mobile-friendly?

100% responsive! The plugin includes mobile-first design with:

  • Responsive layouts that adapt to any screen size
  • Touch-friendly interface elements
  • Optimized typography for mobile reading
  • Adaptive animations and transitions

🎨 Can I customize the styling?

Multiple ways to style! You can customize the appearance through:

  • Custom CSS classes via shortcode parameters (class attribute)
  • Built-in CSS classes like .dark and .light variants
  • Override default styles in your theme's CSS
  • Developer-friendly CSS structure with semantic class names

🔧 Is it developer-friendly?

Absolutely! The plugin features:

  • Clean, documented PHP code following WordPress coding standards
  • PSR-4 autoloading with proper namespacing (FYPlugins\Weather)
  • WordPress transient system for caching
  • Translation-ready with .pot file included
  • Proper uninstall cleanup (removes options and clears cache)
  • Semantic HTML structure for easy styling

更新日志:

1.0.0 - Initial Release 🎉 🌟 Core Features: