From 57e517b993007a1900cc98b0419e18f61c505336 Mon Sep 17 00:00:00 2001 From: Martin Ness Date: Fri, 14 Feb 2014 22:02:35 +0100 Subject: [PATCH] type anpassungen und logo angepasst --- json | 21 ++++++++++++--------- state.py | 8 ++++---- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/json b/json index afa72a7..4eb2b84 100644 --- a/json +++ b/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", diff --git a/state.py b/state.py index 54f4c56..dcd8410 100644 --- a/state.py +++ b/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)