Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/gadlab/gadlab-meteo/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WP Plugin : Hourly and daily weather forecasts for a given place in Switzerland.
Settings
Get json meteo data file from https://prevision-meteo.ch/service/
- Enter the name or ZIP code of the location for which you wish to display the weather forecast and hit [ENTER] key. If necessary, select your location within the dropdown menu that appears below, to indicate the exact position.
- Go to third sections’s page called JSON and clic in the field filled with the URL of json’s data. Select and copy the link.
- Go to wordpress menu Settings > Gad Lab Meteo.
- Paste the link in the field named json file’s url under URL’s settings section.
- Click on the Save changes button at the bottom of the page.
Usage
Add following shortcodes to your posts:
- [meteo type="today"] · Display today weather (short version)
- [meteo type="hours"] · Display today weather informations in 24 hours format
- [meteo type="forecast"] · Display weather forecast for today and the next three days