Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/YR/MMM-YrNow
https://github.com/YR/MMM-YrNow
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/YR/MMM-YrNow
- Owner: YR
- Created: 2016-11-10T12:25:48.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T09:53:33.000Z (almost 2 years ago)
- Last Synced: 2024-06-29T10:33:17.403Z (5 months ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 23
- Watchers: 9
- Forks: 27
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mmm - **MMM-YrNow**
README
# MagicMirror² Module: YrNow
This is the official Yr Nowcast module for [MagicMirror²](https://github.com/MichMich/MagicMirror), which displays data from [Yr](https://www.yr.no/nb/).
Nowcast data is only available for some Norwegian locations covered by the Norwegian weather radars. See [Explanation (in Norwegian)](https://yrkundesenter.zendesk.com/hc/no/articles/209295525-N%C3%A5varsel-Pr%C3%B8v-v%C3%A5rt-nye-nedb%C3%B8rvarsel-)!
Sometimes the Nowcast will tell you "no precipitation next 90 minutes", while the weather symbol contains rain or snow. This is expected, since the weather symbol is based on a weather model and Nowcast is based on radar observations.The temperature value is fetched from the current hour in the weather forecast for your location.
## 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/YR/MMM-YrNow
Prerequisites (make sure to also have request installed):
npm install request
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-YrNow',
position: 'top_right',
config: {
locationId: '1-73738',
showWeatherForecast: true
}
},## Configuration options
Option
Comment
Default
locationId
The unique Id found in the Url of any location on Yr I.e. Blindern (Oslo)
1-73738
showWeatherForecast
If there's no precipitation in the nowcast, the weather forecast for the next period is shown.
true