Changing the pull interval for temperature sensor

129 views
Skip to first unread message

man...@outlook.com

unread,
Sep 5, 2016, 8:18:45 PM9/5/16
to PrivateEyePi
Hi All,
I have setup my pi to pull temperature reading using a ds18b20 as showing on the site. Right now the temperature is being pulled every 5 minutes and I would like to change this to every 10 minutes. I plan to add 7 temperature sensors and to stay under the 1500 writes to the site I will need to adjust the pull time. I'm assuming I can change a value with the code and was hoping someone could point me in the right direction.

Thanks

timphi...@hotmail.com

unread,
Sep 30, 2016, 9:36:52 AM9/30/16
to PrivateEyePi
Hi

Edit the dallas.py script

 #Main Loop
        while True:

            if (elapsed_temperature_time > 600):
                    start_temperature_time = time.time()
                    # Get the latest temperature
                    NotifyHostTemperature()

I have 5 sensors that report every ten minute ehnce 600 seconds help this helps

Reply all
Reply to author
Forward
0 new messages