Log Interval

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
sultanhq
Posts: 6
Joined: Wednesday 23 July 2014 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Log Interval

Post 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
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Log Interval

Post 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.
sultanhq
Posts: 6
Joined: Wednesday 23 July 2014 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Log Interval

Post 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?
User avatar
CopyCatz
Developer
Posts: 123
Joined: Thursday 11 July 2013 17:28
Target OS: -
Domoticz version:
Location: Outer Heaven
Contact:

Re: Log Interval

Post 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.
sultanhq
Posts: 6
Joined: Wednesday 23 July 2014 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Log Interval

Post 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)?
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Log Interval

Post by gizmocuz »

yes, but you can add a notification for it...
Quality outlives Quantity!
diggs
Posts: 3
Joined: Wednesday 06 May 2015 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Log Interval

Post 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
FafaDomo
Posts: 2
Joined: Wednesday 14 October 2015 8:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Log Interval

Post by FafaDomo »

Same problem for me...

@sultanhq: Do you found how to do reduce log interval ?
sultanhq
Posts: 6
Joined: Wednesday 23 July 2014 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Log Interval

Post by sultanhq »

Hi Fafa,

I resigned myself to just have the log miss it, sorry.
ricard
Posts: 11
Joined: Sunday 24 January 2016 17:02
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Log Interval

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest