Skip to content

Magic Mirror Module - News feed from the Swedish Government Crisis Information (Krisinformation.se)

License

Notifications You must be signed in to change notification settings

boghammar/MMM-CrisisInformationSweden

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-CrisisInformationSweden

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

Install

  1. Clone repository into ../modules/ inside your MagicMirror folder.
  2. Run npm install inside ../modules/MMM-CrisisInformationSweden/ folder
  3. Add the module to the MagicMirror config

Update

  1. Run git pull inside ../modules/MMM-CrisisInformationSweden/ folder.
  2. Run npm install inside ../modules/MMM-CrisisInformationSweden/ folder

Configuration

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
        }
    },
    ...
]

Screenshot

MMM-CrisisInformationSweden Module

About

Magic Mirror Module - News feed from the Swedish Government Crisis Information (Krisinformation.se)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published