From 80a543aaf372386ec3b3581c28ba6a6876c1f1aa Mon Sep 17 00:00:00 2001 From: dequis Date: Sat, 17 Aug 2024 23:09:19 +0200 Subject: [PATCH] spaceapid: adjustments to 3d printer state sensors - Prefix sensor names with ext_ as the spec says we should use that for extensions (this also improves attribute access for tools that don't like fields starting with a number) - Rename printer state to printer busy state, to make it clearer. - Add ext_3d_printer_minutes_remaining sensors --- .../spaceapid-config/ccchh-dynamic.json | 30 +++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) 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 6f951f9..2b1309f 100644 --- a/config/hosts/public-web-static/spaceapid-config/ccchh-dynamic.json +++ b/config/hosts/public-web-static/spaceapid-config/ccchh-dynamic.json @@ -25,13 +25,13 @@ ] } ], - "3d_printer_state": [ + "ext_3d_printer_busy_state": [ { "sensor_data": { "unit": "bool", "location": "Loetschlauch", "name": "mk4", - "description": "Prusa mk4 state" + "description": "Prusa mk4 busy state" }, "allowed_credentials": [ "club-assistant" @@ -42,7 +42,31 @@ "unit": "bool", "location": "Loetschlauch", "name": "mk3.5", - "description": "Prusa mk3.5 state" + "description": "Prusa mk3.5 busy state" + }, + "allowed_credentials": [ + "club-assistant" + ] + } + ], + "ext_3d_printer_minutes_remaining": [ + { + "sensor_data": { + "unit": "minutes_remaining", + "location": "Loetschlauch", + "name": "mk4", + "description": "Prusa mk4 minutes remaining" + }, + "allowed_credentials": [ + "club-assistant" + ] + }, + { + "sensor_data": { + "unit": "minutes_remaining", + "location": "Loetschlauch", + "name": "mk3.5", + "description": "Prusa mk3.5 minutes remaining" }, "allowed_credentials": [ "club-assistant"