Added freeze mode indicator
Bumped to v1.0.1
This commit is contained in:
@ -8,6 +8,7 @@ Module.register("MMM-ScreenLogic",{
|
|||||||
showOrp: true,
|
showOrp: true,
|
||||||
showSaltLevel: true,
|
showSaltLevel: true,
|
||||||
showSaturation: true,
|
showSaturation: true,
|
||||||
|
showFreezeMode: true,
|
||||||
colored: true,
|
colored: true,
|
||||||
coldTemp: 84,
|
coldTemp: 84,
|
||||||
hotTemp: 90,
|
hotTemp: 90,
|
||||||
@ -100,6 +101,16 @@ Module.register("MMM-ScreenLogic",{
|
|||||||
var headerRow = null;
|
var headerRow = null;
|
||||||
var contentRow = null;
|
var contentRow = null;
|
||||||
|
|
||||||
|
if (this.config.showFreezeMode && poolData.status.freezeMode !== 0) {
|
||||||
|
var row = document.createElement('tr');
|
||||||
|
table.appendChild(row);
|
||||||
|
row.className = 'cold-temp';
|
||||||
|
var cell = document.createElement('th');
|
||||||
|
row.appendChild(cell);
|
||||||
|
cell.colSpan = this.config.columns;
|
||||||
|
cell.innerHTML = '<center>FREEZE MODE</center>';
|
||||||
|
}
|
||||||
|
|
||||||
var cols = -1;
|
var cols = -1;
|
||||||
for (var item in contents) {
|
for (var item in contents) {
|
||||||
cols++;
|
cols++;
|
||||||
|
@ -18,6 +18,7 @@ A <a href="https://github.com/MichMich/MagicMirror">MagicMirror²</a> module use
|
|||||||
|`showOrp`|Boolean|Whether you'd like to show ORP level or not.|`true`|
|
|`showOrp`|Boolean|Whether you'd like to show ORP level or not.|`true`|
|
||||||
|`showSaltLevel`|Boolean|Whether you'd like to show salt level (in PPM) or not.|`true`|
|
|`showSaltLevel`|Boolean|Whether you'd like to show salt level (in PPM) or not.|`true`|
|
||||||
|`showSaturation`|Boolean|Whether you'd like to show saturation/balance or not.|`true`|
|
|`showSaturation`|Boolean|Whether you'd like to show saturation/balance or not.|`true`|
|
||||||
|
|`showFreezeMode`|Boolean|Whether you'd like to show a banner when the pool is in freeze mode or not. [added in v1.0.1]|`true`|
|
||||||
|`colored`|Boolean|Whether you'd like colored output or not.|`true`|
|
|`colored`|Boolean|Whether you'd like colored output or not.|`true`|
|
||||||
|`coldTemp`|Integer|Show the temperature colored blue if it's at or below this level for pool/spa (requires option `colored`). This is in whatever scale your system is set to (Fahrenheit/Celsius).|`84`|
|
|`coldTemp`|Integer|Show the temperature colored blue if it's at or below this level for pool/spa (requires option `colored`). This is in whatever scale your system is set to (Fahrenheit/Celsius).|`84`|
|
||||||
|`hotTemp`|Integer|Show the temperature colored red if it's at or above this level for pool/spa (requires option `colored`). This is in whatever scale your system is set to (Fahrenheit/Celsius).|`90`|
|
|`hotTemp`|Integer|Show the temperature colored red if it's at or above this level for pool/spa (requires option `colored`). This is in whatever scale your system is set to (Fahrenheit/Celsius).|`90`|
|
||||||
@ -51,3 +52,8 @@ The data is updated every 30 minutes.
|
|||||||
|
|
||||||
## Libraries
|
## Libraries
|
||||||
This uses a Node.JS library I created for interfacing with ScreenLogic controllers over the network: <a href="https://github.com/parnic/node-screenlogic">node-screenlogic</a>, so feel free to check that out for more information.
|
This uses a Node.JS library I created for interfacing with ScreenLogic controllers over the network: <a href="https://github.com/parnic/node-screenlogic">node-screenlogic</a>, so feel free to check that out for more information.
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
|
||||||
|
### v1.0.1
|
||||||
|
* Added `showFreezeMode` to show a banner acrosss the top if the pool is currently in freeze-protection mode.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "magic-mirror-module-screenlogic",
|
"name": "magic-mirror-module-screenlogic",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Show data from Pentair ScreenLogic systems",
|
"description": "Show data from Pentair ScreenLogic systems",
|
||||||
"main": "MMM-ScreenLogic.js",
|
"main": "MMM-ScreenLogic.js",
|
||||||
"author": "Chris Pickett",
|
"author": "Chris Pickett",
|
||||||
|
Reference in New Issue
Block a user