=== Webified Weather ===
Contributors: WebifiedOne
Tags: weather, forecast, NWS, icon, shortcode
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 2.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Displays weather and forecast using the National Weather Service API, with custom icons, smart mapping, and admin settings for location and style.

== Description ==

Webified Weather is a flexible and theme-aware WordPress plugin that fetches weather data from the National Weather Service (NWS) and displays:

- Current conditions (icon, temperature, wind, humidity, pressure)
- Forecast data (multi-day)
- Custom icon sets (flat, monochrome, night mode)
- Admin settings for latitude, longitude, and icon style
- Shortcode-based display for easy integration
- Smart icon mapping with prioritized phrase matching

The plugin is designed for maintainers and end-users alike, with a focus on clarity, reliability, and visual harmony.

== Screenshots ==

1.  Weather display using shortcode with flat icons
2. Admin settings page for location and icon style

== External Services ==

Data comes from the National Weather Service (weather.gov) API and is used for presenting current and forecast weather within the 50 U.S. states and its territories. The NWS typically updates its data once every hour. In some cases, information about your location when viewing the weather data may be sent to weather.gov in order to provide current and forecast data for your location.

For more information about the data, its terms of use and privacy policy, visit https://www.weather.gov/privacy and https://www.weather.gov/disclaimer.

== Features ==

- Fetches live weather and forecast data from weather.gov
- Displays current icon, temperature (°F), wind speed (mph), direction, humidity, and pressure (inHg)
- Shows multi-day forecast
- Supports custom icon sets (day/night aware)
- Smart icon mapping with prioritized phrase matching and fallback logic
- Admin settings page for location and style with input sanitization
- Shortcode for flexible placement and override
- Theme-aware layout and styling
- Dynamic detection of icon folders in `assets/icons/`
- Includes a stylesheet, `webified-style.css`, which you can modify or override in your theme

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin through the WordPress admin
3. Go to **Settings > Webified Weather** to configure location and icon style
4. Use the shortcode `[webified_weather]` in any post or page

== Shortcode ==

Basic usage:  
`[webified_weather]`

Advanced usage (override settings):  
`[webified_weather lat="40.7128" lon="-74.0060" style="flat"]`

== Frequently Asked Questions ==

= Where does the data come from? =  
The plugin uses the National Weather Service API (https://api.weather.gov) for both current and forecast conditions.

= Can I use my own icons? =  
Yes! Upload your icon set to `assets/icons/your-style-name/` and select it in the admin settings or via shortcode.

= How often is the data refreshed? =  
Current conditions are cached for 30 minutes. Forecast data is cached for 1 hour.

= Does it support night mode? =  
Yes! You can use night-aware icon sets and the plugin will automatically switch based on time of day.

= Is it compatible with WordPress.org Plugin Check? =  
Yes! All settings are sanitized, and the plugin passes automated validation checks.

== Changelog ==

= 2.6 =
* Added screenshots to plugins page via readme.txt.

= 2.5 =
* Minor cosmetic and bug fixes.

= 2.4 =
* Minor cosmetic and bug fixes.
* Update readme.txt to remove collapsible menus from features.

= 2.3 =
* Minor cosmetic and bug fixes.

= 2.2 =
* Updated contributors
* Added details in readme.txt of External Services used.

= 2.1 =
* Renamed plugin to Webified Weather
* Improved icon matching with prioritized phrase logic
* Converted pressure to inHg and wind speed to mph
* Added sanitization for all admin settings
* Enabled dynamic icon folder detection
* Improved shortcode override support
* Passed WordPress.org Plugin Check

= 2.0 =
* Added admin settings page
* Improved icon mapping and fallback logic
* Added support for night mode icons
* Enhanced forecast layout with collapsible sections

= 1.0 =
* Initial release with current and forecast display

== Upgrade Notice ==

= 2.3 =
Added PayPal donation link.
= 2.2 =
Various minor bugfixes.
Sanitize form fields in admin settings page.
= 2.1 =
Plugin renamed to Webified Weather. Includes improved icon logic, unit conversions, and Plugin Check compliance.

== Credits ==

Developed by Ben Winton.
