From 919652f09cbb99f65208384ae112e0441ab63012 Mon Sep 17 00:00:00 2001 From: dequis Date: Sat, 17 Aug 2024 00:15:27 +0200 Subject: [PATCH] spaceapid: add 3d printer state sensors (bool) The schema only allows numeric values so I'm leaving the time to finish field out of this for now. --- .../spaceapid-config/ccchh-dynamic.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/config/hosts/public-web-static/spaceapid-config/ccchh-dynamic.json b/config/hosts/public-web-static/spaceapid-config/ccchh-dynamic.json index 885d339..6f951f9 100644 --- a/config/hosts/public-web-static/spaceapid-config/ccchh-dynamic.json +++ b/config/hosts/public-web-static/spaceapid-config/ccchh-dynamic.json @@ -24,6 +24,30 @@ "club-assistant" ] } + ], + "3d_printer_state": [ + { + "sensor_data": { + "unit": "bool", + "location": "Loetschlauch", + "name": "mk4", + "description": "Prusa mk4 state" + }, + "allowed_credentials": [ + "club-assistant" + ] + }, + { + "sensor_data": { + "unit": "bool", + "location": "Loetschlauch", + "name": "mk3.5", + "description": "Prusa mk3.5 state" + }, + "allowed_credentials": [ + "club-assistant" + ] + } ] }, "state": {