This is a module for the MagicMirror².
Shows chart of hourly electricity prices on Nordpool market for current day.
Relies on unofficial Nordpool client. Before using this module get familiar with Nordpool Terms and conditions for use of website.
Run these commands from MagicMirror directory (usually ~/MagicMirror
), to clone the repo and install dependencies
cd modules
git clone https://github.com/DanielsSt/MMM-Nordpool.git
cd MMM-Nordpool
npm install
To use this module, add the following configuration block to the modules array in the config/config.js
file:
var config = {
modules: [
{
module: 'MMM-Nordpool',
header: 'Nordpool',
config: {
// See below for configurable options
}
}
]
}
Option | Description |
---|---|
area |
Area of interest Type: string allowed values: Bergen , DK1 , DK2 , FI , Kr.sand , Molde , OSLO , SE1 , SE2 , SE3 , SE4 , SYS , Tr.heim , Tromsø' , EE , LV , LT , AT , BE , DE-LU , FR , NL . More details hereDefault: LV |
currency |
Currency to use, minor units (cents) will be displayed Type: string allowed values: DKK , EUR , NOK , SEK . More details hereDefault: EUR |
updateNordpoolHour |
When to pull data for next day in your local time. See known issues Type: int allowed values: 0-23 . More details hereDefault: 1 |
maxRandomUpdateMinute |
This randomizes minute when the data is pulled. Poor attempt to not to accidentally DDoS Nordpool, lol Type: int Suggested 0-60 More details hereDefault: 15 |
chartConfig |
Customisation options for the chart, see Chart.js docs for inspiration. Only exceptions are currentPointColor and pointColor those are introduced by this module, overriding pointBackgroundColor will make them uselessType: object More details hereDefault: see full config example |
var config = {
modules: [
{
module: 'MMM-Nordpool',
header: 'Nordpool',
config: {
area: "LV",
currency: "EUR",
updateNordpoolHour: 1,
maxRandomUpdateMinute: 15,
chartConfig: {
backgroundColor: "rgba(255,255,255,0.1)",
borderColor: "rgba(255,255,255,0.7)",
fill: true,
lineTension: 0.5,
pointBorderColor: "black",
pointColor: "white",
currentPointColor: "red",
}
}
}
]
}
- Nordpool returns data based on
Europe/Oslo
timezone, from 00:00 to 23:00, that's why there isupdateNordpoolHour
config option, for my use case data starts at 01:00 which does not bother me enough to fix that. If it bothers you - PRs are more welcome ❤️