From 435e1ace2cf00fbdb6ad13b62a0222d206484662 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 12 Nov 2016 17:56:20 +0100 Subject: [PATCH] Re-inject data --- python/adeunisrf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python/adeunisrf.py b/python/adeunisrf.py index 193fcef..605694c 100644 --- a/python/adeunisrf.py +++ b/python/adeunisrf.py @@ -77,10 +77,8 @@ def nodered_adeunisrf(provider, data): if not res: return - with websocket.create_connection("ws://localhost:1880/{}".format(provider)) as ws: - for d in res: - ws.send("%s" % d) - + for d in res: + lorautil.nodered_send(provider, d) if __name__ == '__main__': conns = lorautil.pg_conn_notify()