Page 1 of 1
Log Interval
Posted: Tuesday 05 August 2014 14:56
by sultanhq
Is there any way to change the logging interval, my domoticz seems to miss some events i.e a kettle boiling which can sometimes take only 2 minutes?
Cheers
Rob
Re: Log Interval
Posted: Tuesday 05 August 2014 19:10
by CopyCatz
If you mean you're measuring your kettle water with a thermometer and Domoticz misses it, the problem lies with your sensor. Domoticz processes values/signals when they come in, not every x seconds. When a device transmits to Domoticz it is stored in the system, Domoticz doesn't "ask" for data. The log shows what is going on in real time, so when you see the temperature not coming in often enough either your device doesn't send very often or you have some RF interference blocking the signal.
Re: Log Interval
Posted: Tuesday 05 August 2014 20:17
by sultanhq
Hmm, well i turned the kettle on for ~5 seconds, Domoticz sees it in the value of the power meter, but the log doesn't show the spike of 2.5kw.
is that right?
Re: Log Interval
Posted: Tuesday 05 August 2014 20:49
by CopyCatz
Oh you mean the graph. The graph short log has a resolution of 5 minutes so small events will probably not show up. It's not good for database writes to log faster and its not really needed either.
Re: Log Interval
Posted: Tuesday 05 August 2014 21:29
by sultanhq
sorry, should have made that more clear to begin with, so could a short burst of power be missed or will it show up in the days usage (or somewhere else)?
Re: Log Interval
Posted: Wednesday 06 August 2014 19:01
by gizmocuz
yes, but you can add a notification for it...
Re: Log Interval
Posted: Friday 02 October 2015 13:31
by diggs
Thought I might bump this post. For me, logging (graphing) of data is quite an important requirement. I find the current implementation of the logging a little limited.
The main reason to log data, of course, is to see what is happening in the monitored environment and to be able to view it from a historical perspective. A number of items I log have a fairly fast response time. The Domoticz log system only logs every 5 minutes, so many of the temp fluctuations are missed and the graphs are very "course"
Is there any way to change the log interval to log data on either a shorter interval, or perhaps a better option, when the data changes, log that change (which would then capture all the variations).
Is there any way to do this or suggestions?
Many thanks
Re: Log Interval
Posted: Wednesday 21 October 2015 11:52
by FafaDomo
Same problem for me...
@sultanhq: Do you found how to do reduce log interval ?
Re: Log Interval
Posted: Wednesday 21 October 2015 12:08
by sultanhq
Hi Fafa,
I resigned myself to just have the log miss it, sorry.
Re: Log Interval
Posted: Sunday 07 February 2016 14:16
by ricard
Just in case someone is interested
I have successfully changed the log interval from 5 minutes to 1 minute by changing the iShortLogInterval in the SQLServer.cpp
And then rebuilding/re-making the code
viewtopic.php?f=4&t=10183&p=73855#p73855