Compare commits

..

2 Commits

Author SHA1 Message Date
Moritz Graf 3f7c501340 fix(shelly): fix BLE variable overwriting bug in checkBlu 2026-07-03 11:54:23 +02:00
Moritz Graf be7dcc97bc backup: migrate backup cronjobs from dropbox to gdrive 2026-07-03 11:50:18 +02:00
6 changed files with 35 additions and 14 deletions

Binary file not shown.

View File

@ -1,11 +1,16 @@
kind: ConfigMap
metadata:
creationTimestamp: null
name: rclone-dropbox-config
name: rclone-gdrive-config
namespace: backup
apiVersion: v1
data:
rclone.conf: |
[dropbox]
type = dropbox
token = {"access_token":"17hvEArIh3cAAAAAAAGTXUfwkGdz8EC_rDcEseLmSRltQoUz_AVceuUewx0sGMQ1","token_type":"bearer","expiry":"0001-01-01T00:00:00Z"}
[gdrive]
type = drive
client_id = 510142397622-ife8ab809cirgb2f3t1gk6gmj0p3ehrb.apps.googleusercontent.com
client_secret = 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
scope = drive
token = {"access_token":"ya29.a0AZYkNZjtwgj_7XaZtlsrUuXbJcYJSE2Zl4WEFlhaqSIDT3csW05ZrKcZqvsF_6Ql45C-391judgNE8DUKAAqkf2-6zyrXXPlz99lQWSuuEovtfF2A9shiQb6_oYGIT8FrW3xnFNkpz1HVY_xbeJ_PRxLpeA0V1XeKFNHJ4KTaCgYKAfESARISFQHGX2MiNcnE9tRt0XzNPF6o-HumWQ0175","token_type":"Bearer","refresh_token":"1//0918ME0bkQh3uCgYIARAAGAkSNwF-L9Irikk_ba5HNHLu5UTWvO4n_EslCc5SDbDX4_KzbUpDRBhd_v3W-wFC0LU0Uf4VbD2u42I","expiry":"2025-04-21T17:40:48.191375+02:00"}
team_drive =

View File

@ -136,19 +136,35 @@ function checkBlu(event) {
}
if (addr === aussen) {
if (typeof event.temperature !== "undefined") {
temperatur_aussen = event.temperature;
}
if (typeof event.humidity !== "undefined") {
humidity_aussen = event.humidity;
taupunkt_aussen = taupunkt(event.temperature, event.humidity);
}
if (typeof temperatur_aussen !== "undefined" && typeof humidity_aussen !== "undefined") {
taupunkt_aussen = taupunkt(temperatur_aussen, humidity_aussen);
}
if (typeof event.battery !== "undefined") {
battery_aussen = event.battery;
}
lost_connection_aussen = 0;
print("Neue Werte für Außen:", temperatur_aussen, "°C,", humidity_aussen, "%, Tp:", taupunkt_aussen, "°C, Batt: ", battery_aussen, " % ");
print("Neue Werte für Außen: T=", temperatur_aussen, "°C, RH=", humidity_aussen, "%, Tp=", taupunkt_aussen, "°C, Batt=", battery_aussen, "%");
} else if (addr === innen) {
if (typeof event.temperature !== "undefined") {
temperatur_innen = event.temperature;
}
if (typeof event.humidity !== "undefined") {
humidity_innen = event.humidity;
taupunkt_innen = taupunkt(event.temperature, event.humidity);
}
if (typeof temperatur_innen !== "undefined" && typeof humidity_innen !== "undefined") {
taupunkt_innen = taupunkt(temperatur_innen, humidity_innen);
}
if (typeof event.battery !== "undefined") {
battery_innen = event.battery;
}
lost_connection_innen = 0;
print("Neue Werte für Innen:", temperatur_innen, "°C,", humidity_innen, "%, Tp:", taupunkt_innen, "°C, Batt: " , battery_innen, " % ");
print("Neue Werte für Innen: T=", temperatur_innen, "°C, RH=", humidity_innen, "%, Tp=", taupunkt_innen, "°C, Batt=", battery_innen, "%");
}
}