Commit 3a5a0aa9 authored by Georg von Zengen's avatar Georg von Zengen

ups it is python3

parent 04c1dd5e
......@@ -14,7 +14,7 @@ def toInfluxdb(file, hostname='localhost', port=8086, username='freifunk', passw
jsondata = {}
jsondata=read_jsonfile(file)
else:
print "no data source available"
print("no data source available")
return( -1 )
series=create_series(jsondata)
......@@ -48,6 +48,7 @@ def read_jsonfile(file):
print("Couldn't read json file: ")
return jsondata
def create_series(jsondata):
series=[]
now = datetime.datetime.today()
......
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