diff --git a/.homeychangelog.json b/.homeychangelog.json index e11ae8a..9a14e1c 100644 --- a/.homeychangelog.json +++ b/.homeychangelog.json @@ -246,5 +246,13 @@ "1.4.5": { "en": "Clear capability if value is not provided by OWM.", "de": "Lösche Attribut, wenn keine OWM-Daten verfügbar sind." + }, + "1.4.6": { + "en": "Check for invalid values before triggering flows.", + "de": "Prüfe auf ungültige Werte vor Flows-Trigger-Auslösung." + }, + "1.5.0": { + "en": "Added OneCall API device for historical daily summary. Added instructions to pair view.", + "de": "OneCall API Gerät für historische tägliche Zusammenfassung ergänzt. Anleitung für Greät-Hinzufügen-Dialog ergänzt" } } diff --git a/.homeycompose/app.json b/.homeycompose/app.json index be098f5..2810384 100644 --- a/.homeycompose/app.json +++ b/.homeycompose/app.json @@ -1,6 +1,6 @@ { "id": "nu.baretta.openweathermap", - "version": "1.4.5", + "version": "1.5.0", "compatibility": ">=8.1.1", "sdk": 3, "name": { diff --git a/.homeycompose/flow/actions/update_device.json b/.homeycompose/flow/actions/update_device.json index e4fcd40..f1b2e68 100644 --- a/.homeycompose/flow/actions/update_device.json +++ b/.homeycompose/flow/actions/update_device.json @@ -13,7 +13,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmAirPollutionCurrent|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmAirPollutionCurrent|owmCurrentWeather|owmOnecallDailySummary" } ] } diff --git a/.homeycompose/flow/conditions/Clouds.json b/.homeycompose/flow/conditions/Clouds.json index 2c3cfcb..3ff90ba 100644 --- a/.homeycompose/flow/conditions/Clouds.json +++ b/.homeycompose/flow/conditions/Clouds.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "cloudiness", diff --git a/.homeycompose/flow/conditions/Humidity.json b/.homeycompose/flow/conditions/Humidity.json index 165aadc..cac9dfe 100644 --- a/.homeycompose/flow/conditions/Humidity.json +++ b/.homeycompose/flow/conditions/Humidity.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "humidity", diff --git a/.homeycompose/flow/conditions/Pressure.json b/.homeycompose/flow/conditions/Pressure.json index ca57817..5165c0e 100644 --- a/.homeycompose/flow/conditions/Pressure.json +++ b/.homeycompose/flow/conditions/Pressure.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "bar", diff --git a/.homeycompose/flow/conditions/Rain.json b/.homeycompose/flow/conditions/Rain.json index e72b424..12b7216 100644 --- a/.homeycompose/flow/conditions/Rain.json +++ b/.homeycompose/flow/conditions/Rain.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "rain", diff --git a/.homeycompose/flow/conditions/Tempday.json b/.homeycompose/flow/conditions/Tempday.json index 388eafd..cd22561 100644 --- a/.homeycompose/flow/conditions/Tempday.json +++ b/.homeycompose/flow/conditions/Tempday.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" }, { "name": "degrees", diff --git a/.homeycompose/flow/conditions/Tempeve.json b/.homeycompose/flow/conditions/Tempeve.json index dfa7cc2..4cd21b9 100644 --- a/.homeycompose/flow/conditions/Tempeve.json +++ b/.homeycompose/flow/conditions/Tempeve.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmOnecallDailySummary" }, { "name": "degrees", diff --git a/.homeycompose/flow/conditions/Tempmax.json b/.homeycompose/flow/conditions/Tempmax.json index 05bb1ec..1fb4b74 100644 --- a/.homeycompose/flow/conditions/Tempmax.json +++ b/.homeycompose/flow/conditions/Tempmax.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "degrees", diff --git a/.homeycompose/flow/conditions/Tempmin.json b/.homeycompose/flow/conditions/Tempmin.json index f7d7384..f9de1c8 100644 --- a/.homeycompose/flow/conditions/Tempmin.json +++ b/.homeycompose/flow/conditions/Tempmin.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "degrees", diff --git a/.homeycompose/flow/conditions/Tempmorn.json b/.homeycompose/flow/conditions/Tempmorn.json index 33fe804..6e58a9d 100644 --- a/.homeycompose/flow/conditions/Tempmorn.json +++ b/.homeycompose/flow/conditions/Tempmorn.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmOnecallDailySummary" }, { "name": "degrees", diff --git a/.homeycompose/flow/conditions/Tempnight.json b/.homeycompose/flow/conditions/Tempnight.json index 923fb34..974cda3 100644 --- a/.homeycompose/flow/conditions/Tempnight.json +++ b/.homeycompose/flow/conditions/Tempnight.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmOnecallDailySummary" }, { "name": "degrees", diff --git a/.homeycompose/flow/conditions/Winddirection.json b/.homeycompose/flow/conditions/Winddirection.json index 38af738..427b5bd 100644 --- a/.homeycompose/flow/conditions/Winddirection.json +++ b/.homeycompose/flow/conditions/Winddirection.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "winddirection", "type": "dropdown", diff --git a/.homeycompose/flow/conditions/Windforce.json b/.homeycompose/flow/conditions/Windforce.json index 0e6b7f4..8533e34 100644 --- a/.homeycompose/flow/conditions/Windforce.json +++ b/.homeycompose/flow/conditions/Windforce.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "windforce", diff --git a/.homeycompose/flow/conditions/Windspeed.json b/.homeycompose/flow/conditions/Windspeed.json index b5e8a8b..cea1308 100644 --- a/.homeycompose/flow/conditions/Windspeed.json +++ b/.homeycompose/flow/conditions/Windspeed.json @@ -18,7 +18,7 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "windspeed", diff --git a/.homeycompose/flow/triggers/CloudinessChanged.json b/.homeycompose/flow/triggers/CloudinessChanged.json index fe7111d..9fd3e57 100644 --- a/.homeycompose/flow/triggers/CloudinessChanged.json +++ b/.homeycompose/flow/triggers/CloudinessChanged.json @@ -37,6 +37,6 @@ "args": [{ "name": "ChangedCloudiness", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/HumidityChanged.json b/.homeycompose/flow/triggers/HumidityChanged.json index f597497..bf6ea22 100644 --- a/.homeycompose/flow/triggers/HumidityChanged.json +++ b/.homeycompose/flow/triggers/HumidityChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/PressureChanged.json b/.homeycompose/flow/triggers/PressureChanged.json index 22ce620..c8ea461 100644 --- a/.homeycompose/flow/triggers/PressureChanged.json +++ b/.homeycompose/flow/triggers/PressureChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/RainChanged.json b/.homeycompose/flow/triggers/RainChanged.json index 45cc46e..6f30b45 100644 --- a/.homeycompose/flow/triggers/RainChanged.json +++ b/.homeycompose/flow/triggers/RainChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/TemperatureDayChanged.json b/.homeycompose/flow/triggers/TemperatureDayChanged.json index 9040983..e19d9a7 100644 --- a/.homeycompose/flow/triggers/TemperatureDayChanged.json +++ b/.homeycompose/flow/triggers/TemperatureDayChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/TemperatureEveningChanged.json b/.homeycompose/flow/triggers/TemperatureEveningChanged.json index f61fc87..bd34843 100644 --- a/.homeycompose/flow/triggers/TemperatureEveningChanged.json +++ b/.homeycompose/flow/triggers/TemperatureEveningChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/TemperatureMaxChanged.json b/.homeycompose/flow/triggers/TemperatureMaxChanged.json index 316d762..c53d61c 100644 --- a/.homeycompose/flow/triggers/TemperatureMaxChanged.json +++ b/.homeycompose/flow/triggers/TemperatureMaxChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/TemperatureMinChanged.json b/.homeycompose/flow/triggers/TemperatureMinChanged.json index 7069036..8adbfb8 100644 --- a/.homeycompose/flow/triggers/TemperatureMinChanged.json +++ b/.homeycompose/flow/triggers/TemperatureMinChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/TemperatureMorningChanged.json b/.homeycompose/flow/triggers/TemperatureMorningChanged.json index 2015c39..eda408a 100644 --- a/.homeycompose/flow/triggers/TemperatureMorningChanged.json +++ b/.homeycompose/flow/triggers/TemperatureMorningChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/TemperatureNightChanged.json b/.homeycompose/flow/triggers/TemperatureNightChanged.json index 4402bd2..8e4c333 100644 --- a/.homeycompose/flow/triggers/TemperatureNightChanged.json +++ b/.homeycompose/flow/triggers/TemperatureNightChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/WindAngleChanged.json b/.homeycompose/flow/triggers/WindAngleChanged.json index 681904d..d0b6b1c 100644 --- a/.homeycompose/flow/triggers/WindAngleChanged.json +++ b/.homeycompose/flow/triggers/WindAngleChanged.json @@ -37,6 +37,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/WindBeaufortChanged.json b/.homeycompose/flow/triggers/WindBeaufortChanged.json index e0f3343..17c3acc 100644 --- a/.homeycompose/flow/triggers/WindBeaufortChanged.json +++ b/.homeycompose/flow/triggers/WindBeaufortChanged.json @@ -37,6 +37,6 @@ "args": [{ "name": "ChangedWindspeedBeaufort", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/WindCombinedChanged.json b/.homeycompose/flow/triggers/WindCombinedChanged.json index 539c817..fe3408b 100644 --- a/.homeycompose/flow/triggers/WindCombinedChanged.json +++ b/.homeycompose/flow/triggers/WindCombinedChanged.json @@ -39,6 +39,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/WindDirectionCompassChanged.json b/.homeycompose/flow/triggers/WindDirectionCompassChanged.json index a7ecab0..43d6e4f 100644 --- a/.homeycompose/flow/triggers/WindDirectionCompassChanged.json +++ b/.homeycompose/flow/triggers/WindDirectionCompassChanged.json @@ -39,6 +39,6 @@ "args": [{ "name": "ChangedWindDirectionCompass", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.homeycompose/flow/triggers/WindStrengthChanged.json b/.homeycompose/flow/triggers/WindStrengthChanged.json index 241694e..b164023 100644 --- a/.homeycompose/flow/triggers/WindStrengthChanged.json +++ b/.homeycompose/flow/triggers/WindStrengthChanged.json @@ -38,6 +38,6 @@ "args": [{ "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }] } \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 61c7090..9d8c958 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -10,7 +10,7 @@ "restart": true, "name": "Attach OpenWeather to Homey Dev", "address": "192.168.1.13", - "port": 9222, + "port": 9230, "localRoot": "${workspaceFolder}", "remoteRoot": "/" }, @@ -20,7 +20,7 @@ "restart": true, "name": "Attach OpenWeather to Homey Pro", "address": "192.168.1.12", - "port": 9222, + "port": 9230, "localRoot": "${workspaceFolder}", "remoteRoot": "/" }, @@ -30,7 +30,7 @@ "restart": true, "name": "Attach OpenWeather to Homey Pro23", "address": "192.168.1.14", - "port": 9222, + "port": 9230, "localRoot": "${workspaceFolder}", "remoteRoot": "/app/" } diff --git a/app.js b/app.js index bd416fc..298424f 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,6 @@ if (process.env.DEBUG === '1') { - require('inspector').open(9222, '0.0.0.0', true); + require('inspector').open(9230, '0.0.0.0', true); } 'use strict'; diff --git a/app.json b/app.json index a60892c..a38061d 100644 --- a/app.json +++ b/app.json @@ -1,7 +1,7 @@ { "_comment": "This file is generated. Please edit .homeycompose/app.json instead.", "id": "nu.baretta.openweathermap", - "version": "1.4.5", + "version": "1.5.0", "compatibility": ">=8.1.1", "sdk": 3, "name": { @@ -165,7 +165,7 @@ { "name": "ChangedCloudiness", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -401,7 +401,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -1143,7 +1143,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -1189,7 +1189,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -1416,7 +1416,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" } ] }, @@ -1462,7 +1462,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" } ] }, @@ -1554,7 +1554,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -1600,7 +1600,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -1646,7 +1646,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" } ] }, @@ -1692,7 +1692,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" } ] }, @@ -1892,7 +1892,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -1937,7 +1937,7 @@ { "name": "ChangedWindspeedBeaufort", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -1984,7 +1984,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -2031,7 +2031,7 @@ { "name": "ChangedWindDirectionCompass", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] }, @@ -2123,7 +2123,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" } ] } @@ -2165,7 +2165,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "cloudiness", @@ -2750,7 +2750,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "humidity", @@ -3222,7 +3222,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "bar", @@ -3251,7 +3251,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "rain", @@ -3338,7 +3338,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallDaily" + "filter": "driver_id=owmOnecallDaily|owmOnecallDailySummary" }, { "name": "degrees", @@ -3367,7 +3367,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmOnecallDailySummary" }, { "name": "degrees", @@ -3425,7 +3425,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "degrees", @@ -3454,7 +3454,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "degrees", @@ -3483,7 +3483,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmOnecallDailySummary" }, { "name": "degrees", @@ -3512,7 +3512,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmLongterm|owmOnecallDaily" + "filter": "driver_id=owmLongterm|owmOnecallDaily|owmOnecallDailySummary" }, { "name": "degrees", @@ -3570,7 +3570,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "winddirection", @@ -3729,7 +3729,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "windforce", @@ -3787,7 +3787,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather" + "filter": "driver_id=owmCurrent|owmForecast|owmLongterm|owmOnecallCurrent|owmOnecallHourly|owmOnecallDaily|owmCurrentWeather|owmOnecallDailySummary" }, { "name": "windspeed", @@ -3812,7 +3812,7 @@ { "name": "device", "type": "device", - "filter": "driver_id=owmOnecallCurrent|owmAirPollutionCurrent|owmCurrentWeather" + "filter": "driver_id=owmOnecallCurrent|owmAirPollutionCurrent|owmCurrentWeather|owmOnecallDailySummary" } ], "id": "update_device" @@ -3823,9 +3823,9 @@ { "id": "owmAirPollutionCurrent", "name": { - "en": "5. Air quality current (location)", - "de": "5. Luftqualität aktuell (Standort)", - "nl": "5. luchtkwaliteit actueel (locatie)" + "en": "6. Air quality current (location)", + "de": "6. Luftqualität aktuell (Standort)", + "nl": "6. luchtkwaliteit actueel (locatie)" }, "images": { "large": "/drivers/owmAirPollutionCurrent/assets/images/large.png", @@ -3855,6 +3855,12 @@ "next": "list_my_devices" } }, + { + "id": "instructions", + "navigation": { + "prev": "city_geocode" + } + }, { "id": "apikey_error", "navigation": { @@ -3951,15 +3957,34 @@ } } ] + }, + { + "type": "group", + "label": { + "en": "Device Information", + "de": "Geräte-Information", + "nl": "Apparaat informatie" + }, + "children": [ + { + "id": "APIState", + "type": "label", + "label": { + "en": "Last update", + "de": "Letzte Aktualisierung", + "nl": "laatste update" + } + } + ] } ] }, { "id": "owmAirPollutionHourly", "name": { - "en": "6. Air quality, hourly forecast", - "de": "6. Luftqualität, stündliche Vorhersage", - "nl": "6. luchtkwaliteit, uurlijkse voorspeling" + "en": "7. Air quality, hourly forecast", + "de": "7. Luftqualität, stündliche Vorhersage", + "nl": "7. luchtkwaliteit, uurlijkse voorspeling" }, "images": { "large": "/drivers/owmAirPollutionHourly/assets/images/large.png", @@ -4177,9 +4202,9 @@ { "id": "owmCurrentWeather", "name": { - "en": "7. Weather, current (free Current Weather API)", - "de": "7. Wetter, aktuell (freie Current Weather API)", - "nl": "7. Weerbericht, actueel (vrij Current Weather API)" + "en": "8. Weather, current (free Current Weather API)", + "de": "8. Wetter, aktuell (freie Current Weather API)", + "nl": "8. Weerbericht, actueel (vrij Current Weather API)" }, "images": { "large": "/drivers/owmCurrentWeather/assets/images/large.png", @@ -4220,6 +4245,12 @@ "next": "list_my_devices" } }, + { + "id": "instructions", + "navigation": { + "prev": "city_geocode" + } + }, { "id": "apikey_error", "navigation": { @@ -4326,6 +4357,25 @@ } } ] + }, + { + "type": "group", + "label": { + "en": "Device Information", + "de": "Geräte-Information", + "nl": "Apparaat informatie" + }, + "children": [ + { + "id": "APIState", + "type": "label", + "label": { + "en": "Last update", + "de": "Letzte Aktualisierung", + "nl": "laatste update" + } + } + ] } ] }, @@ -4855,6 +4905,12 @@ "next": "list_my_devices" } }, + { + "id": "instructions", + "navigation": { + "prev": "city_geocode" + } + }, { "id": "apikey_error", "navigation": { @@ -4990,6 +5046,25 @@ } } ] + }, + { + "type": "group", + "label": { + "en": "Device Information", + "de": "Geräte-Information", + "nl": "Apparaat informatie" + }, + "children": [ + { + "id": "APIState", + "type": "label", + "label": { + "en": "Last update", + "de": "Letzte Aktualisierung", + "nl": "laatste update" + } + } + ] } ] }, @@ -5119,6 +5194,197 @@ } ] }, + { + "id": "owmOnecallDailySummary", + "name": { + "en": "5. Weather, daily summary", + "de": "5. Wetter, tägliche Zusammenfassung", + "nl": "5. Weerbericht, dagelijkse samenvatting" + }, + "images": { + "large": "/drivers/owmOnecallDailySummary/assets/images/large.png", + "small": "/drivers/owmOnecallDailySummary/assets/images/small.png" + }, + "class": "other", + "connectivity": [ + "cloud" + ], + "capabilities": [ + "forecast_time", + "measure_cloudiness", + "measure_rain", + "measure_humidity", + "measure_temperature_min", + "measure_temperature_max", + "measure_temperature_morning", + "measure_temperature_day", + "measure_temperature_evening", + "measure_temperature_night", + "measure_wind_combined", + "measure_wind_strength", + "measure_pressure", + "measure_wind_angle", + "measure_wind_direction_string", + "measure_windstrength_beaufort" + ], + "pair": [ + { + "id": "city_geocode", + "navigation": { + "next": "list_my_devices" + } + }, + { + "id": "instructions", + "navigation": { + "prev": "city_geocode" + } + }, + { + "id": "apikey_error", + "navigation": { + "prev": "city_geocode" + } + }, + { + "id": "geolocation_error", + "navigation": { + "prev": "city_geocode" + } + }, + { + "id": "list_my_devices", + "template": "list_devices", + "navigation": { + "next": "add_my_devices", + "prev": "city_geocode" + }, + "options": { + "singular": true + } + }, + { + "id": "add_my_devices", + "template": "add_devices" + } + ], + "settings": [ + { + "type": "group", + "label": { + "en": "OpenWeatherMap daily summary and location", + "de": "OpenWeatherMap tägliche Zusammenfassung und Standort", + "nl": "OpenWeatherMap dagelijkse samenvatting en locatie" + }, + "children": [ + { + "id": "APIKey", + "type": "text", + "value": "", + "label": { + "en": "OpenWeatherMap API key", + "de": "OpenWeatherMap API-Key", + "nl": "OpenWeatherMap API sleutel" + } + }, + { + "id": "lat", + "type": "number", + "label": { + "en": "Latitude:", + "de": "Breitengrad:", + "nl": "Breedtegraad:" + } + }, + { + "id": "lon", + "type": "number", + "label": { + "en": "Longitude:", + "de": "Längengrad:", + "nl": "Lengtegraad:" + } + }, + { + "id": "days", + "type": "number", + "value": -1, + "min": -365, + "max": 4, + "units": { + "en": "Days", + "de": "Tage", + "nl": "Dagen" + }, + "label": { + "en": "Day difference for the historical data or forecast:", + "de": "Tages-Differenz für die historischen Daten oder die Vorhersage:", + "nl": "dagelijks verschil voor de historische gegevens of voorspelling:" + } + }, + { + "id": "pollingActive", + "type": "checkbox", + "value": true, + "label": { + "en": "Polling active", + "de": "Abfrage aktiv", + "nl": "Polling actief" + } + }, + { + "id": "pollingInterval", + "type": "number", + "value": 5, + "label": { + "en": "Polling interval:", + "de": "Abfrageintervall:", + "nl": "Polling interval:" + }, + "hint": { + "en": "Set a polling interval. The default is 5 minutes. 1000 queries per day are allowed per API key.", + "de": "Setze ein Abfrageintervall. Der Standardwert sind 5 Minuten. Je API-Key sind 1000 Abfragen je Tag erlaubt.", + "nl": "Stel een polling-interval in. De standaardwaarde is 5 minuten. Per API-sleutel zijn 1000 queries per dag toegestaan." + }, + "units": { + "en": "minutes", + "de": "Minuten", + "nl": "Minuten" + } + }, + { + "id": "windspeed_ms", + "type": "checkbox", + "value": false, + "label": { + "en": "Wind speed in m/s", + "de": "Windgeschwindigkeit in m/s", + "nl": "Windsnelheid in m/s" + } + } + ] + }, + { + "type": "group", + "label": { + "en": "Device Information", + "de": "Geräte-Information", + "nl": "Apparaat informatie" + }, + "children": [ + { + "id": "APIState", + "type": "label", + "label": { + "en": "Last update", + "de": "Letzte Aktualisierung", + "nl": "laatste update" + } + } + ] + } + ] + }, { "id": "owmOnecallHourly", "name": { diff --git a/drivers/owmAirPollutionCurrent/device.js b/drivers/owmAirPollutionCurrent/device.js index d06eb25..9e3ebb2 100644 --- a/drivers/owmAirPollutionCurrent/device.js +++ b/drivers/owmAirPollutionCurrent/device.js @@ -177,7 +177,7 @@ class owmAirPollutionCurrent extends Homey.Device { month: "2-digit", year: "numeric" }); - lastUpdate = 'Last update: ' + now.replace(',', ''); + lastUpdate = now.replace(',', ''); } else{ let now = new Date(data.list[0].dt*1000).toLocaleString('de-DE', @@ -208,7 +208,7 @@ class owmAirPollutionCurrent extends Homey.Device { date = now.split(", ")[0]; date = date.split("/")[2] + "-" + date.split("/")[0] + "-" + date.split("/")[1]; time = now.split(", ")[1]; - lastUpdate = 'Last update: ' + date + " " + time; + lastUpdate = date + " " + time; } this.setSettings({ diff --git a/drivers/owmAirPollutionCurrent/driver.compose.json b/drivers/owmAirPollutionCurrent/driver.compose.json index 8f6e137..87cc049 100644 --- a/drivers/owmAirPollutionCurrent/driver.compose.json +++ b/drivers/owmAirPollutionCurrent/driver.compose.json @@ -1,9 +1,9 @@ { "id": "owmAirPollutionCurrent", "name": { - "en": "5. Air quality current (location)", - "de": "5. Luftqualität aktuell (Standort)", - "nl": "5. luchtkwaliteit actueel (locatie)" + "en": "6. Air quality current (location)", + "de": "6. Luftqualität aktuell (Standort)", + "nl": "6. luchtkwaliteit actueel (locatie)" }, "images": { "large": "/drivers/owmAirPollutionCurrent/assets/images/large.png", @@ -29,11 +29,18 @@ "measure_ap_aqi_nr" ], - "pair": [{ - "id": "city_geocode", - "navigation": { - "next": "list_my_devices" - } + "pair": [ + { + "id": "city_geocode", + "navigation": { + "next": "list_my_devices" + } + }, + { + "id": "instructions", + "navigation": { + "prev": "city_geocode" + } }, { "id": "apikey_error", diff --git a/drivers/owmAirPollutionCurrent/driver.settings.compose.json b/drivers/owmAirPollutionCurrent/driver.settings.compose.json index faffc5f..03e3217 100644 --- a/drivers/owmAirPollutionCurrent/driver.settings.compose.json +++ b/drivers/owmAirPollutionCurrent/driver.settings.compose.json @@ -64,5 +64,24 @@ } } ] +}, +{ + "type": "group", + "label": { + "en": "Device Information", + "de": "Geräte-Information", + "nl": "Apparaat informatie" + }, + "children": [ + { + "id": "APIState", + "type": "label", + "label": { + "en": "Last update", + "de": "Letzte Aktualisierung", + "nl": "laatste update" + } + } + ] } ] \ No newline at end of file diff --git a/drivers/owmAirPollutionCurrent/pair/city_geocode.html b/drivers/owmAirPollutionCurrent/pair/city_geocode.html index bbdf954..e3c92d9 100644 --- a/drivers/owmAirPollutionCurrent/pair/city_geocode.html +++ b/drivers/owmAirPollutionCurrent/pair/city_geocode.html @@ -22,6 +22,10 @@ //document.getElementById('found_nr').value = result; }); } + + function onClickInstructions(){ + Homey.showView("instructions"); + }