|
Post by backyardhops on Jun 20, 2020 6:58:47 GMT -8
I want to add a single moisture Sensor to the Bynk graph. But my coding still are not up to it. I din't think "val = state.Moisture_Humidity" is correct. i selected "V0" as the virtual device. val = state.Moisture_Humidity <======?? put_body = json/dumps([val]) r = requests.put(config.BLYNK.URL+config.BLYNK_AUTH+'/update/V0', data=put_body, headers=put_heder)  Do I get points in suggesting I need to reference an array? such as: val = "{:4.1f}".format(state.Moisture_Humidity_Array[state.blynkPlantNumberDisplay-1])
|
|
|
Post by backyardhops on Jun 21, 2020 5:27:57 GMT -8
It works, with no code change - just add it to the graph with V0 (You do have to remove something else such as Air Quality (my hops are not sensitive to AQ, unlike the farmer).
|
|