diff --git a/daemon.py b/daemon.py index df72e34..c3a6dc2 100755 --- a/daemon.py +++ b/daemon.py @@ -11,12 +11,13 @@ def emit(event, data): "event": event, "data": data } + print(json) return requests.post(config.OSD_URL, json=json) def main(): data = requests.get(config.CAR_API_URL) for plugin in plugins: - plugin.check(data, emit) + plugin.check(data.json(), emit) if __name__ == "__main__": while True: