=== Extended Weather ===
Contributors: sstanislavv
Donate link: https://www.paypal.com/donate/?hosted_button_id=MKCAWBHQELYEQ
Tags: weather, OpenWeatherMap, WordPress plugin
Requires at least: 5.0
Tested up to: 6.6
Stable tag: 1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Extended Weather is a WordPress plugin that fetches real-time weather from OpenWeatherMap, offering customizable displays.

== Description ==

This plugin provides real-time weather details using OpenWeather, including temperature, humidity, pressure, wind speed, sunrise, sunset, and a corresponding weather icon. Users can customize the look of the display for a sleek, modern appearance.

Key Features Include:

- Latest Weather Display: Displays real-time weather details from OpenWeather with options for users to customize the appearance to their preference.

Shortcodes:

- [wtdp_display_latest] – Displays the latest weather information.
- [wtdp_display_latest_2] – Displays a smaller, more compact version.

== Settings ==

You can access the settings for **Extended Weather** under the WordPress menu **Settings > Extended Weather**. Here you can enter your OpenWeatherMap API key, customize the display settings, and configure your location for accurate weather updates.

== Installation ==

1. Upload the plugin files to the /wp-content/plugins/extended-weather directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Go to the settings page to configure the plugin by entering your OpenWeatherMap API key and setting the city or coordinates for weather data.
4. Use the provided shortcodes in posts or pages to display the latest weather information.

== External Services ==

This plugin connects to the following external services to provide weather information. The plugin relies on these services to display real-time weather details to users.

1. **OpenWeatherMap**
   - **Purpose**: OpenWeatherMap provides the real-time weather data displayed in the plugin, including temperature, humidity, pressure, wind speed, and other relevant weather metrics.
   - **Data Sent**: The plugin sends API requests with location coordinates (latitude and longitude) to obtain accurate weather details for a specified area. No personal data is transmitted to OpenWeatherMap.
   - **Terms of Service**: [OpenWeatherMap Terms of Service](https://openweathermap.org/terms)
   - **Privacy Policy**: [OpenWeatherMap Privacy Policy](https://openweathermap.org/privacy-policy)

Each of these services is essential to the plugin’s functionality, and users’ data is only sent when necessary to retrieve and display relevant weather information. By using this plugin, you consent to the data being sent to these services under the terms and privacy policies linked above.

== Frequently Asked Questions ==

= How do I get an API key for OpenWeatherMap? =

You can sign up for a free API key at OpenWeatherMap's website. After registering, enter the API key in the plugin's settings page.

= How can I customize the appearance of the weather display? =

You can customize the look of the display directly from the WordPress admin panel.

= What shortcodes are available? =

The plugin provides the following shortcodes:

- [wtdp_display_latest] – Displays the latest weather information.
- [wtdp_display_latest_2] – Displays a smaller, more compact version.

== Screenshots ==

1. **General Settings**  
   ![General Settings](assets/screenshot-1.png)

2. **Settings for Big Layout**  
   ![Settings for Big Layout](assets/screenshot-2.png)

3. **Settings for Small Layout**  
   ![Settings for Small Layout](assets/screenshot-3.png)

== Weather Icons License ==

This plugin uses weather icons from the **[Makin-Things/weather-icons](https://github.com/Makin-Things/weather-icons)** repository, which are licensed under the MIT License.

**MIT License:**

Copyright (c) 2019 Custom cards for Home Assistant

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

== License & Copyright for Extended Weather ==

This plugin is licensed under the GPLv2 or later. You may use it free of charge, modify it, and distribute it under the same license.

== Changelog ==

= 1.0 =
Initial release.

= 1.1 =
Fixed bug on plugin activation.
