client = InfluxDBClient(url=url, token=token) write_api = client.write_api(write_options=WriteOptions(batch_size=8, flush_interval=8, jitter_interval=0, retry_interval=1000)) for i in range(50): valOne = float(i) valTwo = float(i)+0.5 pointOne = Point("Pressure").tag("sensor", "sensor1").field("PSI", valOne).time(time=datetime.utcnow()) pointTwo = Point("Pressure").tag("sensor", "sensor2").field("PSI", valTwo).time(time=datetime.utcnow()) write_api.write(bucket, orgID, [pointOne, pointTwo]) print ("PSI Readings: (%f, %f)" %(valOne, valTwo)) time.sleep(0.5)