Delay time


#1

Hello everyone, I have very little feeling with English.
I searched the forum but I have not found (surely because of my bad English) how to lengthen the time of sending the reading of the ds18b20 on raspberry.
Sorry for sure there will already be some posts but I can not find it.
Thank you


#2

which device are you referring to, an arduino or a raspberry pi agent.


#3

Raspberry


#4

if it is a raspberry pi agent you wish to do then it is very difficult thing as you need to change a lot of code.
An alternative is to use cayenne MQTT python library and send data at your own desired time interval https://github.com/myDevicesIoT/Cayenne-MQTT-Python


#5

Thank you for your reply. The addition of raspberry I was kinda surprised I’ve encountered alone the ds18b20 and have created your dashboard with all that data on the raspberry besides the ds18b20 sensor.Then wanting to follow your advice and install MQTT what should I delete than installed automatically?
thanks!


#6

you need follow the installation steps provided in https://github.com/myDevicesIoT/Cayenne-MQTT-Python.
in examples code https://github.com/myDevicesIoT/Cayenne-MQTT-Python/blob/master/examples/Example-03-CayenneClient.py add your MQTT credential from the ''Bring your own thing" dashboard and run the code. this will add a device to your cayenne dashboard.
Now, try getting temperature sensor reading from ds18b20 using https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/hardware.
next, you need to combine both code, so that the temperature sensor reading from ds18b20 is send to cayenne.


#7

Thanks a lot.
But of the code that Cayenne installed on my raspberry to create this

I have to leave? format sd and start from scratch? just add the code you suggested and launch that script?


#8

you can remove this device from the dashboard.


#9

thank you!
as soon as I can, I will definitely come back for help.

:pray: