Changeset 3372476
- Timestamp:
- 10/03/2025 04:34:43 PM (5 months ago)
- File:
-
- 1 edited
-
spelhubben-weather/tags/1.6.1/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spelhubben-weather/tags/1.6.1/readme.txt
r3371965 r3372476 6 6 Requires PHP: 7.4 7 7 Stable tag: 1.6.1 8 Donate link: https://www.paypal.com/donate/?hosted_button_id=CV74CEXY5XEAU 8 9 License: GPLv2 or later 9 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 11 Lightweight weather widget/block with optional multi-provider consensus (Open-Meteo, SMHI, Yr/MET Norway). Shortcode + block + classic widget. Optional Leaflet map.12 Weather widget & block with optional map and daily forecast. Can combine Open-Meteo, SMHI and Yr/MET data. 12 13 13 14 == Description == … … 25 26 == Installation == 26 27 1. Upload/activate the plugin. 27 2. Add the “Spelhubben Weather” block or use the `[spelhubben_weather]` shortcode. 28 2. Go to **Settings → Spelhubben Weather** and set defaults (place, shown fields, layout, providers, cache time). 29 3. 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). 28 46 29 47 == Frequently Asked Questions == 48 30 49 = Where does the data come from? = 31 From public APIs such as Open-Meteo, SMHI and Yr/MET Norway (depending on your settings).50 From 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. 32 51 33 52 = 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). 53 No. 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? = 56 All 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? = 59 If `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? = 62 Use `show="temp,wind,icon"` (comma separated). Defaults are set in settings. 63 64 = How do layouts work? = 65 Choose `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? = 74 Set `forecast="daily"` and `days="3–10"`. Example: `forecast="daily" days="5"`. 75 76 = Can I mix providers and get a consensus? = 77 Yes. 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? = 80 Responses 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? = 83 Yes, rendering is server-side. The map (Leaflet) requires JS. 84 85 = Translations? = 86 The plugin is fully translatable. Strings are available on translate.wordpress.org. Ship `.pot/.po/.mo` in `/languages`. 87 88 = GDPR / privacy? = 89 The 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. 35 96 36 97 == Screenshots ==
Note: See TracChangeset
for help on using the changeset viewer.