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",
|
"space": "Krautspace",
|
||||||
"url": "https://www.krautspace.de/",
|
"url": "https://www.krautspace.de/",
|
||||||
"issue_report_channels": "email",
|
"issue_report_channels": [
|
||||||
|
"email"
|
||||||
|
],
|
||||||
"contact": {
|
"contact": {
|
||||||
"ml": "krautspace-announce@list.lstsrv.org",
|
"ml": "krautspace-announce@list.lstsrv.org",
|
||||||
"twitter": "@HackspaceJena",
|
"twitter": "@HackspaceJena",
|
||||||
"email": "office@hackspace-jena.de"
|
"email": "office@krautsoace.de",
|
||||||
|
"jabber": "krautchan@chat.krautspace.de"
|
||||||
},
|
},
|
||||||
"state": {
|
"state": {
|
||||||
"lastchange": "0",
|
"lastchange": 0,
|
||||||
"open": "null",
|
"open": null,
|
||||||
"message": "open for public",
|
"message": "open for public",
|
||||||
"icon": {
|
"icon": {
|
||||||
"open": "http://status.hackspace-jena.de/src/green.png",
|
"open": "https://status.krautspace.de/src/green.png",
|
||||||
"closed": "http://status.hackspace-jena.de/src/red.png"
|
"closed": "https://status.krautspace.de/src/red.png"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"api": "0.13",
|
"api": "0.13",
|
||||||
"location": {
|
"location": {
|
||||||
"lat": "50.9291968",
|
"lat": 50.9291968,
|
||||||
"lon": "11.5824294",
|
"lon": 11.5824294,
|
||||||
"address": "Krautgase 26, 07743 Jena, Germany"
|
"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": {
|
"feeds": {
|
||||||
"wiki": {
|
"wiki": {
|
||||||
"url": "https://www.krautspace.de/feed.php",
|
"url": "https://www.krautspace.de/feed.php",
|
||||||
|
|
8
state.py
8
state.py
|
@ -35,14 +35,14 @@ except:
|
||||||
# Bereich in dem der Status steht
|
# Bereich in dem der Status steht
|
||||||
state = raw["state"]
|
state = raw["state"]
|
||||||
# letzte Verarbeitungszeit setzen
|
# letzte Verarbeitungszeit setzen
|
||||||
state["lastchange"] = str(int(time.time()))
|
state["lastchange"] = int(time.time())
|
||||||
# Status setzen
|
# Status setzen
|
||||||
if data and data == 0:
|
if data and data == 0:
|
||||||
state["open"] = "close"
|
state["open"] = False
|
||||||
elif data and data == 1:
|
elif data and data == 1:
|
||||||
state["open"] = "open"
|
state["open"] = True
|
||||||
else:
|
else:
|
||||||
state["open"] = "null"
|
state["open"] = None
|
||||||
|
|
||||||
# JSON Decodieren und ausgeben
|
# JSON Decodieren und ausgeben
|
||||||
print json.dumps(raw)
|
print json.dumps(raw)
|
||||||
|
|
Reference in a new issue