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()