Plugin Directory

Changeset 3372471


Ignore:
Timestamp:
10/03/2025 04:24:25 PM (5 months ago)
Author:
spelhubben
Message:

Shorten short description, move Donate link to header, tidy Upgrade Notice/Changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spelhubben-weather/trunk/readme.txt

    r3371965 r3372471  
    66Requires PHP: 7.4
    77Stable tag: 1.6.1
     8Donate link: https://www.paypal.com/donate/?hosted_button_id=CV74CEXY5XEAU
    89License: GPLv2 or later
    910License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1011
    11 Lightweight weather widget/block with optional multi-provider consensus (Open-Meteo, SMHI, Yr/MET Norway). Shortcode + block + classic widget. Optional Leaflet map.
     12Weather widget & block with optional map and daily forecast. Can combine Open-Meteo, SMHI and Yr/MET data.
    1213
    1314== Description ==
     
    2526== Installation ==
    26271. Upload/activate the plugin.
    27 2. Add the “Spelhubben Weather” block or use the `[spelhubben_weather]` shortcode.
     282. Go to **Settings → Spelhubben Weather** and set defaults (place, shown fields, layout, providers, cache time).
     293. Add weather to your site in any of these ways:
     30
     31= Block (Gutenberg) =
     32- Edit a page/post → click **Add block** → search for **“Spelhubben Weather”**.
     33- Optional: override defaults in the block sidebar (place/lat,lon, layout, map, forecast).
     34
     35= Shortcode =
     36- Insert `[spelhubben_weather]` anywhere shortcodes are supported.
     37- Examples:
     38  - Basic: `[spelhubben_weather]`
     39  - Compact with map & animation: `[spelhubben_weather place="Gothenburg" layout="compact" map="1" animate="1"]`
     40  - Inline no map: `[spelhubben_weather lat="57.7089" lon="11.9746" layout="inline" map="0" show="temp,icon"]`
     41  - Detailed + daily forecast (5 days) + provider mix: `[spelhubben_weather place="Umeå" layout="detailed" forecast="daily" days="5" providers="smhi,yr,openmeteo"]`
     42
     43= Classic Widget =
     44- Go to **Appearance → Widgets** → add **Spelhubben Weather**.
     45- Configure per-widget options (title, place or lat/lon, fields, layout, map, forecast, days, CSS class).
    2846
    2947== Frequently Asked Questions ==
     48
    3049= Where does the data come from? =
    31 From public APIs such as Open-Meteo, SMHI and Yr/MET Norway (depending on your settings).
     50From public APIs such as Open-Meteo, SMHI and Yr/MET Norway. You choose providers under **Settings → Spelhubben Weather** or per block/shortcode/widget via the `providers` attribute.
    3251
    3352= Do I need an API key? =
    34 No, but for Yr/MET Norway it’s recommended to include contact info (email/URL) in the settings (User-Agent).
     53No. For Yr/MET Norway it’s recommended to include contact info (email/URL) in **Settings → Spelhubben Weather → Yr contact/UA** so your User-Agent is compliant.
     54
     55= Block, shortcode or widget — what’s the difference? =
     56All three render the same UI. Use the **block** in the block editor, the **shortcode** in classic content areas, and the **widget** in sidebars (Appearance → Widgets). Each lets you override global defaults.
     57
     58= How do place and coordinates work? =
     59If `lat` and `lon` are provided they take precedence. Otherwise the plugin geocodes the `place` string (e.g. `place="Umeå"`). Set a global default place in settings.
     60
     61= What fields can I show/hide? =
     62Use `show="temp,wind,icon"` (comma separated). Defaults are set in settings.
     63
     64= How do layouts work? =
     65Choose `layout="inline|compact|card|detailed"`. “Detailed” supports the multi-day forecast row.
     66
     67= How do I enable the map and set its size? =
     68`map="1"` shows a Leaflet map (OpenStreetMap). Control height with `map_height="240"` (px). Global defaults exist in settings.
     69
     70= How do I enable animations? =
     71`animate="1"` adds subtle UI animation. Global default is in settings.
     72
     73= How do I get a daily forecast? =
     74Set `forecast="daily"` and `days="3–10"`. Example: `forecast="daily" days="5"`.
     75
     76= Can I mix providers and get a consensus? =
     77Yes. Set `providers="smhi,yr,openmeteo"` (order doesn’t matter). The plugin calculates a simple consensus across available providers for the displayed fields.
     78
     79= Caching — how long is data stored? =
     80Responses are cached with WordPress transients. Change TTL (minutes) in settings. Clear by saving settings or changing attributes (which creates a new cache key).
     81
     82= Does it work without JavaScript? =
     83Yes, rendering is server-side. The map (Leaflet) requires JS.
     84
     85= Translations? =
     86The plugin is fully translatable. Strings are available on translate.wordpress.org. Ship `.pot/.po/.mo` in `/languages`.
     87
     88= GDPR / privacy? =
     89The plugin does not set cookies by itself. If you enable the map, Leaflet/OpenStreetMap tiles are requested client-side. Mention OSM in your privacy notice if needed.
     90
     91= Troubleshooting tips =
     92- Nothing shows: check that at least one provider is selected in settings.
     93- Wrong location: provide exact `lat`/`lon` or a more specific `place` (e.g. “Uddevalla, SE”).
     94- Map not visible: ensure `map="1"` and that your theme/container is wide/tall enough; increase `map_height`.
     95- Rate limiting: reduce refreshes or increase cache TTL.
    3596
    3697== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.