Skip to content
Magic Mirror Module - News feed from the Swedish Government Crisis Information (Krisinformation.se)
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Fixed feed filtering and screenshot Jul 2, 2017
.gitignore Initial commit Jun 30, 2017
LICENSE Initial commit Jun 30, 2017
MMM-CrisisInformationSweden.js Added the silent config Oct 17, 2018
README.md Added the silent config Oct 17, 2018
node_helper.js
package.json Added package.json Jul 1, 2017

README.md

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

You can’t perform that action at this time.