varia
This commit is contained in:
parent
6602000cb7
commit
05be5f18d1
3 changed files with 5 additions and 1 deletions
|
@ -68,6 +68,7 @@ myobj = {'somekey': 'somevalue'}
|
||||||
|
|
||||||
def ttn2prom_send(path, data):
|
def ttn2prom_send(path, data):
|
||||||
url = 'http://localhost:8047/'
|
url = 'http://localhost:8047/'
|
||||||
|
print("Sending {} to {}".format(data, url))
|
||||||
x = requests.post(url, data = data)
|
x = requests.post(url, data = data)
|
||||||
|
|
||||||
channels = [ "loriot", "swisscom", "ttn" ]
|
channels = [ "loriot", "swisscom", "ttn" ]
|
||||||
|
|
3
python/requirements.txt
Normal file
3
python/requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
websocket
|
||||||
|
psycopg2
|
||||||
|
requests
|
|
@ -46,7 +46,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
server_address = ('::', 7000)
|
server_address = ('0.0.0.0', 7000)
|
||||||
httpd = HTTPServer(server_address, testHTTPServer_RequestHandler)
|
httpd = HTTPServer(server_address, testHTTPServer_RequestHandler)
|
||||||
print('running server...')
|
print('running server...')
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
|
|
Loading…
Reference in a new issue