This a module for Magic Mirror² smart mirror project.
This modules is for use with the HomeWizard P1 meter and WaterMeter.
Currently this module uses the V1 API from HomeWizard.
Clone this repository in your modules folder, and install dependencies:
cd ~/MagicMirror/modules
git clone https://github.com/htilburgs/MMM-MyHomeWizard.git
cd MMM-MyHomeWizard
npm install
When you need to update this module:
cd ~/MagicMirror/modules/MMM-MyHomeWizard
git pull
npm install
Go to the MagicMirror/config directory and edit the config.js file. Add the module to your modules array in your config.js.
{
module: 'MMM-MyHomeWizard',
position: 'top_left',
header: 'HomeWizard',
disabled: false,
config: {
P1_IP: "0.0.0.0", // IP Address HomeWizard P1 meter
WM_IP: "0.0.0.0", // IP Address HomeWizrd Water meter - Remove when not used
extraInfo: false, // Show extra information from P1 meter
currentPower: false, // Show the current Power Consumption
currentWater: false, // Show the current Water Consumption
showGas: true, // Show the Gas option
showFooter: true, // Show footer (name Power Meter)
updateInterval: 5000, // Update every 5 seconds
maxWidth: "500px" // Max Module width
}
},
![image](https://private-user-images.githubusercontent.com/24824989/395321547-6286bb00-bf6f-48b1-a6e6-718ae987699e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4OTEzMzEsIm5iZiI6MTczODg5MTAzMSwicGF0aCI6Ii8yNDgyNDk4OS8zOTUzMjE1NDctNjI4NmJiMDAtYmY2Zi00OGIxLWE2ZTYtNzE4YWU5ODc2OTllLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDAxMTcxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAxNWMxMjE1MWUxNmY2Y2IzMjM5MjU1MjZjNDI4OTIwZDc1NWQ1M2IzNDkzY2Q3ODYyZTI1NzY4Yzc2NDQ5NDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.XSa5Pwk4mCsXcYy4daclOcrABdWBtqZeFwOIueL_rVU)
Here is the documentation of options for the modules configuration
Option | Description |
---|---|
P1_IP |
REQUIRED if use P1 meter The IP Address of your HomeWizard P1 meter Number Default: 0.0.0.0 |
WM_IP |
REQUIRED if use Water meter The IP Address of your HomeWizard Water meter Number Default: 0.0.0.0 |
updateInterval |
REQUIRED - The interval the information is updated (in milliseconds) Number Default: 5000 |
extraInfo |
Show extra information from P1 meter True/False Default: false |
currentPower |
Show the current power consumption True/False Default: false |
currentWater |
Show the current water consumption True/False Default: false |
showGas |
Show the Gas Option of youre PowerMeter True/False Default: true |
showFooter |
Show the Footer with the name of youre PowerMeter True/False Default: false |
maxWidth |
The maximum width of the module Default: 500px |
v1.0.0 - 26-11-2024 : Initial version
v1.0.1 - 29-12-2024 : Add option showGas
Copyright © 2024 Harm Tilburgs
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.