123 lines
4 KiB
Plaintext
123 lines
4 KiB
Plaintext
{
|
|
"api": "0.13",
|
|
"contact": {
|
|
"email": "info@un-hack-bar.de",
|
|
"irc": "irc://irc.hackint.net/c3un",
|
|
"ml": "discuss@unhb.de",
|
|
"twitter": "@un_hack_bar"
|
|
},
|
|
"ext_ccc": "chaostreff",
|
|
"feeds": {
|
|
"calendar": {
|
|
"type": "ical",
|
|
"url": "https://www.un-hack-bar.de/events.ics"
|
|
}
|
|
},
|
|
"issue_report_channels": [
|
|
"email"
|
|
],
|
|
"location": {
|
|
"address": "Morgenstrasse 6,59423 Unna, Germany",
|
|
"lat": 51.53575,
|
|
"lon": 7.69172
|
|
},
|
|
"logo": "https://www.un-hack-bar.de/wp-content/uploads/2018/06/unhb_klein.png",
|
|
"space": "UN-Hack-Bar",
|
|
"state": {
|
|
"icon": {
|
|
"closed": "https://matrix.un-hack-bar.de/_matrix/media/v1/download/matrix.un-hack-bar.de/xcmwcXGdQqlgkcKxUROTndHL",
|
|
"open": "https://matrix.un-hack-bar.de/_matrix/media/v1/download/matrix.un-hack-bar.de/OXoHKOrWRStZkRDHMdCPyidA"
|
|
},
|
|
"lastchange": 23,
|
|
"open": null
|
|
},
|
|
"url": "https://un-hack-bar.de"
|
|
}
|
|
Connected with result code 0
|
|
Received message '1' on topic '/UHB/status/public' with QoS 0
|
|
current Status of space: None
|
|
Received message '0' on topic '/UHB/status/public' with QoS 0
|
|
current Status of space: None
|
|
{
|
|
"api": "0.13",
|
|
"contact": {
|
|
"email": "info@un-hack-bar.de",
|
|
"irc": "irc://irc.hackint.net/c3un",
|
|
"ml": "discuss@unhb.de",
|
|
"twitter": "@un_hack_bar"
|
|
},
|
|
"ext_ccc": "chaostreff",
|
|
"feeds": {
|
|
"calendar": {
|
|
"type": "ical",
|
|
"url": "https://www.un-hack-bar.de/events.ics"
|
|
}
|
|
},
|
|
"issue_report_channels": [
|
|
"email"
|
|
],
|
|
"location": {
|
|
"address": "Morgenstrasse 6,59423 Unna, Germany",
|
|
"lat": 51.53575,
|
|
"lon": 7.69172
|
|
},
|
|
"logo": "https://www.un-hack-bar.de/wp-content/uploads/2018/06/unhb_klein.png",
|
|
"space": "UN-Hack-Bar",
|
|
"state": {
|
|
"icon": {
|
|
"closed": "https://matrix.un-hack-bar.de/_matrix/media/v1/download/matrix.un-hack-bar.de/xcmwcXGdQqlgkcKxUROTndHL",
|
|
"open": "https://matrix.un-hack-bar.de/_matrix/media/v1/download/matrix.un-hack-bar.de/OXoHKOrWRStZkRDHMdCPyidA"
|
|
},
|
|
"lastchange": 1570218206.001311,
|
|
"open": true
|
|
},
|
|
"url": "https://un-hack-bar.de"
|
|
}
|
|
Received message '1' on topic '/UHB/status/public' with QoS 0
|
|
current Status of space: True
|
|
{
|
|
"api": "0.13",
|
|
"contact": {
|
|
"email": "info@un-hack-bar.de",
|
|
"irc": "irc://irc.hackint.net/c3un",
|
|
"ml": "discuss@unhb.de",
|
|
"twitter": "@un_hack_bar"
|
|
},
|
|
"ext_ccc": "chaostreff",
|
|
"feeds": {
|
|
"calendar": {
|
|
"type": "ical",
|
|
"url": "https://www.un-hack-bar.de/events.ics"
|
|
}
|
|
},
|
|
"issue_report_channels": [
|
|
"email"
|
|
],
|
|
"location": {
|
|
"address": "Morgenstrasse 6,59423 Unna, Germany",
|
|
"lat": 51.53575,
|
|
"lon": 7.69172
|
|
},
|
|
"logo": "https://www.un-hack-bar.de/wp-content/uploads/2018/06/unhb_klein.png",
|
|
"space": "UN-Hack-Bar",
|
|
"state": {
|
|
"icon": {
|
|
"closed": "https://matrix.un-hack-bar.de/_matrix/media/v1/download/matrix.un-hack-bar.de/xcmwcXGdQqlgkcKxUROTndHL",
|
|
"open": "https://matrix.un-hack-bar.de/_matrix/media/v1/download/matrix.un-hack-bar.de/OXoHKOrWRStZkRDHMdCPyidA"
|
|
},
|
|
"lastchange": 1570218210.332163,
|
|
"open": false
|
|
},
|
|
"url": "https://un-hack-bar.de"
|
|
}
|
|
Received message '1' on topic '/UHB/status/public' with QoS 0
|
|
current Status of space: False
|
|
Traceback (most recent call last):
|
|
File "/home/pi/unhb-mqtt/unhb-mqtt.py", line 141, in <module>
|
|
client.loop_forever()
|
|
File "/home/pi/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 1578, in loop_forever
|
|
rc = self.loop(timeout, max_packets)
|
|
File "/home/pi/.local/lib/python2.7/site-packages/paho/mqtt/client.py", line 1057, in loop
|
|
socklist = select.select(rlist, wlist, [], timeout)
|
|
KeyboardInterrupt
|