Commit 05be5f18 authored by Nico Schottelius's avatar Nico Schottelius

varia

parent 6602000c
......@@ -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" ]
......
websocket
psycopg2
requests
......@@ -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()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment