Moody Weather

外掛說明

Moody Weather is a plugin that displays the current weather conditions, including temperature and a mood-based description, for a specified city. It uses the OpenWeatherMap API to fetch weather data.

Third-Party Services

This plugin relies on the following third-party/external services:

OpenWeatherMap API

  • What is it?
    OpenWeatherMap is a weather data provider that offers real-time and forecast weather information via an API.

  • What is it used for?
    The plugin uses the OpenWeatherMap API to fetch current weather data (e.g., temperature, weather conditions) for the specified city.

  • What data is sent and when?
    When the plugin is used, it sends the following data to OpenWeatherMap:

    • The city name (provided by the user or set as the default city in the plugin settings).
    • The OpenWeatherMap API key (provided by the user in the plugin settings).

    This data is sent only when the plugin needs to fetch weather information (e.g., when a shortcode is displayed on a page or when the weather data cache expires).

  • Links to OpenWeatherMap’s policies:

Spectrum Color Picker

  • What is it?
    Spectrum is a JavaScript color picker library that allows users to select colors in a user-friendly way.

  • What is it used for?
    The plugin uses Spectrum to provide a color picker interface in the plugin’s settings page, allowing users to customize the background color, text color, accent color, and icon color.

  • What data is sent and when?
    Spectrum is a client-side library and does not send any data to external servers. It is used solely for color selection within the plugin’s settings page.

  • Links to Spectrum’s policies:

安裝方式

  1. Upload the moody-weather folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to the plugin’s settings page (Settings > Moody Weather) and enter your OpenWeatherMap API key.
  4. Use the [moody_weather] shortcode to display the weather on any page or post.

常見問題集

Where do I get an OpenWeatherMap API key?

You can sign up for a free API key at OpenWeatherMap. Once you have your API key, enter it in the plugin’s settings page.

What data is sent to OpenWeatherMap?

The plugin sends the city name and your OpenWeatherMap API key to fetch weather data. No other data is shared.

Does this plugin use any third-party libraries?

Yes, this plugin uses the following third-party libraries:
OpenWeatherMap API: For fetching weather data.
Spectrum Color Picker: For providing a color picker interface in the plugin’s settings page.

使用者評論

2025 年 2 月 3 日
Simple plugin , not many features but it does the job.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Moody Weather〉的開發相關工作。

參與者

將〈Moody Weather〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.3.0

  • Initial release.