This commit is contained in:
Nico Schottelius 2020-03-12 14:57:26 +01:00
parent 6602000cb7
commit 05be5f18d1
3 changed files with 5 additions and 1 deletions

View file

@ -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" ]

3
python/requirements.txt Normal file
View file

@ -0,0 +1,3 @@
websocket
psycopg2
requests

View file

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