Hello,

I am using a Python script in order to get back the value of a sensor, I 
tested this command and this is working :

 payload='air_quality,host=raspberrypi value=100' 
requests.post(url="http://localhost:8086/write?db=mydb";, data=payload)

It's possible to see the value 100 in the database mydb.
Meanwhile, I would like to know how to read the value of a sensor.
For example, it's possible to see the value of the sensor with this command :
print(sensor_value)

When I am trying to do this : 
payload='air_quality,host=raspberrypi value=sensor_value'

I got the following error :
{"error":"unable to parse 'air_quality,host=raspberrypi value=sensor_value': 
invalid boolean"}

My question is : What is the correct syntax for getting back the value ?

-- 
Remember to include the version number!
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxData" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/c27c4bdf-6843-4baa-81fc-892a473282c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to