add CLAUDE.md

- CLAUDE.md: document project architecture, resilience constraint,
  workflow and all helper scripts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-15 17:26:46 +01:00
parent 531acd4d05
commit 8ad19d84e2
2 changed files with 140 additions and 7 deletions

13
pool.js
View File

@@ -299,14 +299,13 @@ MQTT.subscribe(
function (topic, msg) {
status.tick_mqtt++;
print("[POOL] mqtt", topic, msg);
if (msg == "") {
return;
if (msg != "") {
let obj = JSON.parse(msg);
if (obj.temperature === undefined) {
return;
}
update_temp(obj.temperature);
}
let obj = JSON.parse(msg);
if (obj.temperature === undefined) {
return;
}
update_temp(obj.temperature);
}
)