Merge pull request #3359 from olivierbarriere/master

hassio: Get health data for the day
master
Rob Pilling 2024-04-19 08:50:42 +01:00 committed by GitHub
commit 2ba2a3aa76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 5 deletions

View File

@ -1 +1,2 @@
0.01: New App! 0.01: New App!
0.02: Get health data for the day

View File

@ -91,7 +91,7 @@ const runHassio = () => {
}); });
const updateSensor = () => { const updateSensor = () => {
hassioAttributes.health = Bangle.getHealthStatus(); hassioAttributes.health = Bangle.getHealthStatus("day");
hassioAttributes.accel = Bangle.getAccel(); hassioAttributes.accel = Bangle.getAccel();
hassioAttributes.battery = getBattery(); hassioAttributes.battery = getBattery();
hassioAttributes.compass = Bangle.getCompass(); hassioAttributes.compass = Bangle.getCompass();
@ -125,4 +125,4 @@ const runHassio = () => {
setInterval(runHassio, HASSIO.interval); setInterval(runHassio, HASSIO.interval);
}, 5000); }, 5000);
} }
})(); })();

View File

@ -2,7 +2,7 @@
"name": "Home Assistant API Interface", "name": "Home Assistant API Interface",
"shortName":"Hassio", "shortName":"Hassio",
"icon": "hassio.png", "icon": "hassio.png",
"version":"0.01", "version":"0.02",
"description": "This app gives access to viewing Home Assistant data and sends health, compass, accelerometer, and battery information to Home Assistant as a sensor through the Home Assistant REST API.", "description": "This app gives access to viewing Home Assistant data and sends health, compass, accelerometer, and battery information to Home Assistant as a sensor through the Home Assistant REST API.",
"tags": "tool,sensors", "tags": "tool,sensors",
"supports": ["BANGLEJS2"], "supports": ["BANGLEJS2"],
@ -15,4 +15,4 @@
{"name":"hassio.img","url":"hassio.img"} {"name":"hassio.img","url":"hassio.img"}
], ],
"data": [{"name":"hassio.json"}] "data": [{"name":"hassio.json"}]
} }