Git Product home page Git Product logo

mmm-wetteronline's Introduction

MMM-WetterOnline

This is a module for MagicMirror². It displays weather data for weather stations operated by WetterOnline.

Screenshot

Install the module

Go to modules folder

cd modules/

Clone this module from Github

git clone https://github.com/bogenpirat/MMM-WetterOnline

After adding this module to your config (see below) restart your MagicMirror.

Update the module

Go to modules folder

cd modules/MMM-WetterOnline

Pull changes from Github

git pull

Pulling changes should always work. If not, try to reset your module with git reset --hard before pulling new changes.

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

    modules: [
        {
            module: 'MMM-WetterOnline',
            position: "top_right",
            config: {
                city: "berlin",
                daysTrend: "3"
                // See below for for more configurable options
            }
        },
        ...
    ]

Configuration options

All options are optional so the module works out of the box.

Option Description
city Weather station string for data. This derives from the URL from wetteronline.de that displays your trend data. Ideally, you should go to WetterOnline, search for your city (or use geolocation) and then copy the relevant bit out of the resulting url, e.g. reykjavik from https://www.wetteronline.de/wetter/reykjavik

Type: String
Default: new-york
width Width of the displayed module data.

Type: HTML width attribute
Default: 400px
daysTrend Amount of upcoming days to display in the weather trend. This goes up to 16, where the first is the current day, the second is tomorrow and so on.

Type: Number
Default: 4
updateIntervalMins Time to wait before refreshing weather data in minutes.

Type: Number
Default: 5
userAgent User-Agent to use for requests to the site. Mobile UAs will not work.

Type: String
Default: see MMM-WetterOnline.js

Developer notes

This was written by a node/MM first timer. Expect ugly design choices, terrible use of JavaScript/CSS and feel free to create pull requests with improvements.

License: GPL-3.0

See LICENSE

mmm-wetteronline's People

Contributors

bogenpirat avatar kristjanesperanto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.