GithubHelp home page GithubHelp logo

mihed001 / mmm-tibber Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ottopaulsen/mmm-tibber

0.0 1.0 0.0 48 KB

Show data from Tibber in MagicMirror

License: MIT License

CSS 0.25% JavaScript 99.75%

mmm-tibber's Introduction

MMM Tibber

Module for MagicMirror showing electricity price data from Tibber.

You can see the price per hour for today and tomorrow.

Screenshot

Screenshot

Installation

Go to your MagicMirror/modules folder and write

git clone https://github.com/ottopaulsen/MMM-Tibber
cd MMM-Tibber
npm install

Configuration

Here is an example configuration. Put it in the MagicMirror/config/config.js file:

{
    module: 'MMM-Tibber',
    position: 'bottom_center',
    config: {
        tibberToken: '<find your token from tibber.com>',
    }
},

Of course, you need a Tibber account to use this module. Your access token (tibberToken) can be found in the developer pages.

The above is the minimum configuration required. Here is the complete module configuration you can use, with default values:

config: {
    tibberToken: '<find your token from tibber.com>',
    logging: false,
    decimalSeparator: ",",
    showConsumptionInfo: true,
	showPriceInfo: true,
    priceFontSize: 16,
    showMinPrice: true,
    showMaxPrice: true,
    showCurrentPrice: true,
    minPriceX: -40,
    minPriceY: 10,
    maxPriceX: -40,
    maxPriceY: 0,
    minPriceLineWidth: 1,
    maxPriceLineWidth: 1,
    minPriceColor: "#00bb00",
    curPriceColor: "#cccc00",
    maxPriceColor: "#ee0000",
    xAxisLineColor: "#333333",
    xAxisLabelColor: "#999999",
    historyHours: 24,
    futureHours: 48,
    columnColors: {
        'NORMAL': ['#000055', '#0000dd', '#000088'], // Blue
        'CHEAP': ['#003300', '#00bb00', '#006600'], // Green
        'EXPENSIVE': ['#440000', '#cc0000', '#770000'] // Red
    }
}

The historyHours max value is 24. However, you cannot show more history than back to midnight. Similarly, the futureHours max value is 48, but it cannot show more than the whole next day. Also, the next day is not available until some time during the day.


Here are my other modules for MagicMirror.

mmm-tibber's People

Contributors

mihed001 avatar

Watchers

 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.