In [8]:
from influxdb import InfluxDBClient
host = "localhost"
port = 8086
user = 'restapi'
password = '1234' #Or something more sofisticated
dbname = 'by-administrative-region'
query = 'list series;'
client = InfluxDBClient(host, port, user, password, dbname)
#print("Queying data: " + query)
result = client.query(query)
In [9]:
result
Out[9]:
In [10]:
type(result)
Out[10]:
In [13]:
result[0]
Out[13]:
In [ ]:
client.write_points_with_precision(,"m")
In [12]:
client.query('select time from %s order asc limit 1;' % "h00t")
Out[12]:
In [ ]: