type anpassungen und logo angepasst
This commit is contained in:
parent
777165b65f
commit
57e517b993
2 changed files with 16 additions and 13 deletions
21
json
21
json
|
@ -1,28 +1,31 @@
|
|||
{
|
||||
"space": "Krautspace",
|
||||
"url": "https://www.krautspace.de/",
|
||||
"issue_report_channels": "email",
|
||||
"issue_report_channels": [
|
||||
"email"
|
||||
],
|
||||
"contact": {
|
||||
"ml": "krautspace-announce@list.lstsrv.org",
|
||||
"twitter": "@HackspaceJena",
|
||||
"email": "office@hackspace-jena.de"
|
||||
"email": "office@krautsoace.de",
|
||||
"jabber": "krautchan@chat.krautspace.de"
|
||||
},
|
||||
"state": {
|
||||
"lastchange": "0",
|
||||
"open": "null",
|
||||
"lastchange": 0,
|
||||
"open": null,
|
||||
"message": "open for public",
|
||||
"icon": {
|
||||
"open": "http://status.hackspace-jena.de/src/green.png",
|
||||
"closed": "http://status.hackspace-jena.de/src/red.png"
|
||||
"open": "https://status.krautspace.de/src/green.png",
|
||||
"closed": "https://status.krautspace.de/src/red.png"
|
||||
}
|
||||
},
|
||||
"api": "0.13",
|
||||
"location": {
|
||||
"lat": "50.9291968",
|
||||
"lon": "11.5824294",
|
||||
"lat": 50.9291968,
|
||||
"lon": 11.5824294,
|
||||
"address": "Krautgase 26, 07743 Jena, Germany"
|
||||
},
|
||||
"logo": "https://media.krautspace.de/files/krautspace_v1.png",
|
||||
"logo": "https://media.krautspace.de/files/logo/krautspace_pixelbanner.png",
|
||||
"feeds": {
|
||||
"wiki": {
|
||||
"url": "https://www.krautspace.de/feed.php",
|
||||
|
|
8
state.py
8
state.py
|
@ -35,14 +35,14 @@ except:
|
|||
# Bereich in dem der Status steht
|
||||
state = raw["state"]
|
||||
# letzte Verarbeitungszeit setzen
|
||||
state["lastchange"] = str(int(time.time()))
|
||||
state["lastchange"] = int(time.time())
|
||||
# Status setzen
|
||||
if data and data == 0:
|
||||
state["open"] = "close"
|
||||
state["open"] = False
|
||||
elif data and data == 1:
|
||||
state["open"] = "open"
|
||||
state["open"] = True
|
||||
else:
|
||||
state["open"] = "null"
|
||||
state["open"] = None
|
||||
|
||||
# JSON Decodieren und ausgeben
|
||||
print json.dumps(raw)
|
||||
|
|
Reference in a new issue