from influxdb import InfluxDBClient
create a user and database in cronograf (easiest approach)
Set these variables
host = “hostname”
port = 8086
user = “user”
password = “password”
The database we created
dbname = “dbname”
Create the InfluxDB object
client = InfluxDBClient(host, port, user, password, dbname)
Write JSON to InfluxDB
From and example on the influx pages, no error trapping shown, and you need to create, in this case,
a jason object.
use cronograf to determine data loaded.
This currently works for me loading data into influxdb. Telegraf is the better option, but not all cases are catered for.
PS just discovered this,