Magic Mirror Module - News feed from the Swedish Government Crisis Information Krisinformation.se.
The current feed in json format can be obtained here http://api.krisinformation.se/v1/capmessage?format=json
- Clone repository into
../modules/
inside your MagicMirror folder. - Run
npm install
inside../modules/MMM-CrisisInformationSweden/
folder - Add the module to the MagicMirror config
- Run
git pull
inside../modules/MMM-CrisisInformationSweden/
folder. - Run
npm install
inside../modules/MMM-CrisisInformationSweden/
folder
modules: [
...
{
module: 'MMM-CrisisInformationSweden',
position: 'top_right',
config: {
updateInterval: 30*60*1000, // Optional. Number of ms between API updates.
uiUpdateInterval: 10*1000, // Optional. Number of ms between changing to next announcement.
alwaysNational: true, // Optional, Regardless of other settings always show national info.
areas: [], // Optional. An array of strings with area names.
// Only those messages aimed at the areas listed in the array are shown.
// The strings must match exactly with the AreaDesc of the message.
// If empty or undefined show all messages. Not implemented yet.
showDescription: true, // Optional. Show message description.
oldest: 7, // Optional. Dont show messages older then this number of days.
silent: false // Optional. If enabled no messages are shown if therer are no
// messages younger then 'oldest' setting
debug: false, // Optional. Enable some extra output when debugging
}
},
...
]