I am working on a project using a RPi Version 3 Model B V1.2 device and the Bring Your Own Thing set up. The RPi is pulling some data from sensors (Temperature and Soil Moisture) via BTLE and pushing the data using the Python CayenneMQTTClient. I don’t seem to get any historical data. I get instantaneous data and can view the latest data in the widgets.
Here is my set up:
client = cayenne.client.CayenneMQTTClient()
client.on_message = on_message
client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID)
while True: client.loop() sleep(30)
Here are the two writes:
client.celsiusWrite(addr + " TEMP", float(temp)/float(1000))
client.virtualWrite(addr + " MOISTURE", (float(soil)/float(4096) * 100), “Soil Moisture”, “%”)
The following image is my dashboard no data in graphs but data in widgets:
From the Data tab using Live data query:
Switching to the Minute query:
Any help would be greatly appreciated.