A MagicMirror Module for your ESP P1Logger.
- The actual power consumed or produced
- The power used over the day
- The power produced by solar panels over the day
- The amount of gas used over the day
- The amount of water used over the day
- A graphic of the actual usage and/or production over a time frame
In your terminal, go to your MagicMirror's Module folder:
cd ~/MagicMirror/modules
Clone this repository:
git clone https://github.com/iotricity/MMM-P1Logger
Configure the module in your config.js
file.
To use this module, add it to the modules array in the config/config.js
file:
units: 'metric',
modules: [
{
module: 'MMM-P1Logger',
position: 'top_right', // This can be any of the regions.
config: {
uuid: "2b978e1c-0dfa-42bf-af8e-bfe256453228",
hours: 4,
interval: 2,
powerunits: "metric",
graphic: "color"
}
}
]
The following properties can be configured:
Option | Description |
---|---|
uuid |
Required - Your ESP P1Logger unique UUID. |
hours |
Optional - The time span in hours of the graphic, optimal values between 2 and 8 hours. Default: 4 |
interval |
Optional - The update interval in minutes for updating the graphic. Default: 2 |
powerunits |
Optional - What units to use. This property can be set in the general configuration settings. See the MagicMirror Documentation for more information. Default: metric
|
graphic |
Optional - Show the graphic in color, greyscale only or hide the graphic. Default: color Can be set to color , bright or none . |