From 10bb19497dcc9c1afe0ead0a75562471b9108f08 Mon Sep 17 00:00:00 2001 From: Ludwig Behm Date: Mon, 22 Jan 2024 07:55:05 +0100 Subject: [PATCH 1/3] Cleanup after REED sensor pin change --- source/client/nodemcu/statusclient/statusclient.ino | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/client/nodemcu/statusclient/statusclient.ino b/source/client/nodemcu/statusclient/statusclient.ino index cfe7164..e49fa21 100644 --- a/source/client/nodemcu/statusclient/statusclient.ino +++ b/source/client/nodemcu/statusclient/statusclient.ino @@ -22,10 +22,8 @@ namespace cpp23 { // defining some constants enum : uint8_t { - LED_PIN = 16, // D0 - //REED_PIN = 5 // D1 - REED_PIN = 2 // D4 - + LED_PIN = 16, // D0 - GPIO 16 + REED_PIN = 2 // D4 - GPIO 2 }; enum class door_state { From 531bb1ad046f69d9974eda32da81f00c629231ce Mon Sep 17 00:00:00 2001 From: Ludwig Behm Date: Sun, 7 Apr 2024 16:23:29 +0200 Subject: [PATCH 2/3] remove api_template since it was moved into apistatusd.py --- source/server/api_template | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 source/server/api_template diff --git a/source/server/api_template b/source/server/api_template deleted file mode 100644 index 2e230db..0000000 --- a/source/server/api_template +++ /dev/null @@ -1,38 +0,0 @@ -{ - "api":"0.13", - "space":"Krautspace", - "url":"https://kraut.space", - "logo":"https://status.krautspace.de/images/krautspace_pixelbanner.png", - "location":{ - "address":"Hackspace Jena e. V., Krautgasse 26, 07743 Jena, Germany", - "lat":50.9292, - "lon":11.5826 - }, - "state":{ - "open":false, - "lastchange":1563499131, - "icon":{ - "open":"https://status.krautspace.de/images/krautspace_pixelicon_open.png", - "closed":"https://status.krautspace.de/images/krautspace_pixelicon_closed.png" - } - }, - "feeds":{ - "calendar":{ - "type":"ical", - "url":"https://calcifer.datenknoten.me/tags/krautspace.ics" - } - }, - "contact":{ - "twitter":"@HackspaceJena", - "quitter":"@Krautspace", - "facebook":"https://www.facebook.com/HackspaceJena", - "email":"office@krautspace.de" - }, - "issue_report_channels":[ - "twitter", - "email" - ], - "projects":[ - "https://github.com/HackspaceJena/" - ] -} From 6e5dfe4e9cab431b42dbce7eff7d6def9d5c05a8 Mon Sep 17 00:00:00 2001 From: Ludwig Behm Date: Sun, 7 Apr 2024 16:24:20 +0200 Subject: [PATCH 3/3] apistatusd.py: make it spaceapi-schema compliant --- source/server/apistatusd.py | 1 - 1 file changed, 1 deletion(-) diff --git a/source/server/apistatusd.py b/source/server/apistatusd.py index 5ec3b68..facdadc 100755 --- a/source/server/apistatusd.py +++ b/source/server/apistatusd.py @@ -367,7 +367,6 @@ def main(): "matrix": "#krautchan:matrix.kraut.space" }, "issue_report_channels": [ - "matrix", "email" ], "projects": [