From 05be5f18d142b1c6d05a8baaa4c7c37406ed0141 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 12 Mar 2020 14:57:26 +0100 Subject: [PATCH] varia --- python/lorautil.py | 1 + python/requirements.txt | 3 +++ python/ttnv2receiver.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 python/requirements.txt diff --git a/python/lorautil.py b/python/lorautil.py index a2a5458..492e9f0 100644 --- a/python/lorautil.py +++ b/python/lorautil.py @@ -68,6 +68,7 @@ myobj = {'somekey': 'somevalue'} def ttn2prom_send(path, data): url = 'http://localhost:8047/' + print("Sending {} to {}".format(data, url)) x = requests.post(url, data = data) channels = [ "loriot", "swisscom", "ttn" ] diff --git a/python/requirements.txt b/python/requirements.txt new file mode 100644 index 0000000..b269664 --- /dev/null +++ b/python/requirements.txt @@ -0,0 +1,3 @@ +websocket +psycopg2 +requests diff --git a/python/ttnv2receiver.py b/python/ttnv2receiver.py index a0c55a1..0b61803 100644 --- a/python/ttnv2receiver.py +++ b/python/ttnv2receiver.py @@ -46,7 +46,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler): if __name__ == '__main__': - server_address = ('::', 7000) + server_address = ('0.0.0.0', 7000) httpd = HTTPServer(server_address, testHTTPServer_RequestHandler) print('running server...') httpd.serve_forever()