This is an UNofficial Yr module for MagicMirror², which displays a meteogram from Yr. To find your locationId and check whether it will work:
- search for your location,
- press the "..." button in top right
- and select "forecast as SVG" / "værvarsel som SVG"
if you get a meteogram looking something something like this: then it will work.
you can extract the id from the url. the url is on the form:
Remote into your Magic Mirror box using a terminal software and go to the modules folder:
cd ~/MagicMirror/modules
Clone the repository:
git clone https://github.com/andreakn/MMM-YrMeteogram
Add the module to the modules array in the config/config.js file by adding the following section. You can change this configuration later when you see this works:
{
module: 'MMM-YrMeteogram',
position: 'top_center',
config: {
locationId: '1-73738'
}
},
| Option | Comment | Default |
|---|---|---|
| locationId | The unique Id found in the Url of any location on Yr I.e. Blindern (Oslo) | 1-73738 |
| yrMeteogramUrl | The meteogram-url-format to use. If you want english texts you can replace this with https://www.yr.no/en/content/%s/meteogram.svg | https://www.yr.no/nb/innhold/%s/meteogram.svg |