Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MagicMirror² Module: YrMeteogram

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: image then it will work.

you can extract the id from the url. the url is on the form:

https://www.yr.no/(locale)/('content')/(THE-ID)/meteogram.svg

How to install

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'
	}
},

Configuration options

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

About

A Magic MirrorModule2 for displaying Meteograms from YR - the norwegian weather forecast service

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages