Skip to content

A module that displays the percentage chance of getting a snow day tomorrow.

License

Notifications You must be signed in to change notification settings

matthew-burley/MMM-SnowDay

Repository files navigation

MMM-SnowDay

MMM-SnowDay is a module for MagicMirror² that displays the percentage chance of getting a snow day tomorrow for a provided postal code.

Screenshot Loading

Example of MMM-SnowDay Loading

Screenshot Weekend/Error With Postal Code

Example of MMM-SnowDay

Screenshot 0% Chance

Example of MMM-SnowDay

Screenshot 99% Change

Example of MMM-SnowDay

Installation

Install

In your terminal, go to the modules directory and clone the repository:

cd ~/MagicMirror/modules
git clone https://github.com/matthew-burley/MMM-SnowDay/

Update

Go to the module directory and pull the latest changes:

cd ~/MagicMirror/modules/MMM-SnowDay
git pull

Configuration

To use this module, you have to add a configuration object to the modules array in the config/config.js file.

Example configuration

Minimal configuration to use the module:

    {
        module: 'MMM-SnowDay',
        position: 'top_left',
        config: {
            postalCode: "H3C 5L2",        // postal code to check (Go Habs Go!)
        }
    },

Configuration with all options:

    {
        module: 'MMM-SnowDay',
        position: 'lower_third',
        config: {
            postalCode: "H3C 5L2",        
            city: "Montréal",            
            updateInterval: 60 * 60 * 1000, 
            initialDelay: 15000            
        }
    },

Configuration options

Option Possible values Default Description
postalCode H3C 5L2 "H3C 5L2" The postal code to check
city Montréal "" The optional manual city name
updateInterval 60 * 60 * 1000 60 * 60 * 1000 [hourly] The update interval
initialDelay 15000 15000 [15s] The intial delay on startup to avoid RPi boot congestion

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

This project is based on the MMM-Template by Dennis Rosenbaum.
Honestly Dennis made it so easy to create a module; it's scary. Thanks a million. The original project is licensed under the MIT License.

About

A module that displays the percentage chance of getting a snow day tomorrow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published