Coder Social home page Coder Social logo

mmm-yrthen's Introduction

MagicMirror² Module: YrThen

This is an unofficial Yr Weather Forecast module for MagicMirror², which displays data from Yr.

It is heavily based on MMM-YrNow, from Yr itself. Yr is a weather service from the Norwegian Broadcasting Corporation and the Norwegian Meteorological Institute.

This is work in progress, but as it stands right now it's working and covering my needs.

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/fmandal/MMM-YrThen

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-YrThen',
	position: 'top_right',
	config: {
		location: '1-2820936',
	}
},

Find your location using the search form at this Yr.no page and look for the ID in the URL.

Configuration options

Option Comment Default
location The unique Id found in the Url of any location on Yr.no. Default location is Skrubblivegen in Steinkjer, Norway. 1-2296935
updateInterval How often to get new data. Defaults to 1 hour, as the weather forecast doesn't really change too often. 3600000
initialLoadDelay Dunno why, but thought it was a good idea to give it some rest before we start. Defaults to 1 sec. 1000
showAll Show all four periods of each day or not. true
showPrecipitation If showAll is true, show precipitation as well? true
showMaxMin If showAll is true, show maximum and minimum temperature? false
details If showAll is false, show detailed weather forecast? If false, it only shows the forecast around midday (12.00). If true, it shows detailed forecast numDetails times. true
numDetails How many detailed forecasts to show. Default is next two periods. Only applies if showAll is false and details is true. 2
detailedPrec Show detailed precipitation? true
roundTemp Round temperature to zero decimals. true
roundPrec Round precipitation to zero decimals. false
title Title for the module, if shown. Værmelding for Skrubblivegen
header Show header or not. Contents of header is title. false

mmm-yrthen's People

Contributors

fmandal avatar sitr avatar torstehu avatar

Watchers

Øyvind Aarøe avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.