Polling frequency
Posted: Monday 20 May 2019 0:20
Hi,
Domoticz is polling temperature (on my raspberry install).
It does so frequently.
Through RFXcom 433 mHz every 45 seconds
Through ESP8266 every 60 seconds.
This repeated high frequent polling gives problems in the thermostat script made by @dannybloe.
Link to post in forum.
Link to @dannybloe examples of dzVents, the last is the thermostat script which can be found here.
I adapted the timer from 1 minute to every 10 minutes, but the problem which arises is that the script is running every time that a new temperature measurement is coming in.
In that way setting the timer to 10 minutes has no effect and the script keeps running every 45 seconds or every 60 seconds.
You may ask why I want to set the timer to 10 minutes.
That is because the script calculates between the actual temperature and the average of the last few temperatures measured.
@dannubloe uses this method to temper and slow down the heating process.
As such this is smart programming, however by running the script every 45 seconds the intention of the script is killed after a few minutes because average will reach actual temperature in no time.
So this is why I want to know how I can regulate polling time of individual sensors like this temperature sensor.
Domoticz is polling temperature (on my raspberry install).
It does so frequently.
Through RFXcom 433 mHz every 45 seconds
Through ESP8266 every 60 seconds.
This repeated high frequent polling gives problems in the thermostat script made by @dannybloe.
Link to post in forum.
Link to @dannybloe examples of dzVents, the last is the thermostat script which can be found here.
I adapted the timer from 1 minute to every 10 minutes, but the problem which arises is that the script is running every time that a new temperature measurement is coming in.
In that way setting the timer to 10 minutes has no effect and the script keeps running every 45 seconds or every 60 seconds.
You may ask why I want to set the timer to 10 minutes.
That is because the script calculates between the actual temperature and the average of the last few temperatures measured.
@dannubloe uses this method to temper and slow down the heating process.
As such this is smart programming, however by running the script every 45 seconds the intention of the script is killed after a few minutes because average will reach actual temperature in no time.
So this is why I want to know how I can regulate polling time of individual sensors like this temperature sensor.