Page 1 of 1

Suggestion: current value in logfile

Posted: Monday 06 June 2016 15:08
by Egregius
For each event that happens there is a line in the logfile. That's great for debugging scripts etcetera.
That feature would even be more great if the current value of that device is printed.

Now I have tons of lines like

Code: Select all

2016-06-06 14:56:22.259  (ZWAVE) Temp (zolder_temp)
2016-06-06 14:56:32.384  (ZWAVE) Temp (zolder_temp)
2016-06-06 14:56:42.513  (ZWAVE) Temp (zolder_temp)
2016-06-06 14:56:52.639  (ZWAVE) Temp (zolder_temp)
2016-06-06 14:56:58.064  (ZWAVE) Temp (alex_temp)
2016-06-06 14:57:00.259  (ZWAVE) Thermostat (kamerZ)
2016-06-06 14:57:02.773  (ZWAVE) Temp (zolder_temp)
2016-06-06 14:57:55.451  (ZWAVE) Temp (tobi_temp)
2016-06-06 14:58:14.203  (ZWAVE) Thermostat (alexZ)
2016-06-06 14:59:04.922  (RFXCOM) Lighting 2 (pirlivingR)
Would be great if it could be like

Code: Select all

2016-06-06 14:56:22.259  (ZWAVE) Temp (zolder_temp) 21.2
2016-06-06 14:56:32.384  (ZWAVE) Temp (zolder_temp) 21.3
2016-06-06 14:56:42.513  (ZWAVE) Temp (zolder_temp) 21.4
2016-06-06 14:56:52.639  (ZWAVE) Temp (zolder_temp) 21.3
2016-06-06 14:56:58.064  (ZWAVE) Temp (alex_temp) 18.9
2016-06-06 14:57:00.259  (ZWAVE) Thermostat (kamerZ) 16.0
2016-06-06 14:57:02.773  (ZWAVE) Temp (zolder_temp) 21.4
2016-06-06 14:57:55.451  (ZWAVE) Temp (tobi_temp) 19.2
2016-06-06 14:58:14.203  (ZWAVE) Thermostat (alexZ) 16.0
2016-06-06 14:59:04.922  (RFXCOM) Lighting 2 (pirlivingR) On

Re: Suggestion: current value in logfile

Posted: Monday 06 June 2016 16:07
by Bikey
I second that.

Re: Suggestion: current value in logfile

Posted: Monday 06 June 2016 18:15
by Mediacj
Yes that would be a nice feature, I use the logscreen almost dayly to check all the hardware together.

Re: Suggestion: current value in logfile

Posted: Monday 06 June 2016 22:47
by remb0
you can use a lua script to put debug logs and other info or logica to an csv. and check that csv with Excel?

Re: Suggestion: current value in logfile

Posted: Tuesday 07 June 2016 1:23
by pepijn
Try the commandline parameter -verbose 1 when starting Domoticz


Verzonden vanaf mijn iPhone met Tapatalk

Re: Suggestion: current value in logfile

Posted: Tuesday 07 June 2016 7:53
by Egregius
remb0 wrote:you can use a lua script to put debug logs and other info or logica to an csv. and check that csv with Excel?
Using scripts to analyze a logfile isn't handy in real time.
When I'm scripting I mostly have a tail of the logfile on the left side of the screen and my code at the right side. That's super easy to follow what's happening.
pepijn wrote:Try the commandline parameter -verbose 1 when starting Domoticz
-verbose 1 gives a totally different logfile, I just want the current value on the same logline.

Code: Select all

 2016-06-07 07:49:00.473 (Dummy) General/Percentage (buienradar)
subtype = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr = 0
ID = 9217
Temperature = 24.2 C
Signal level = 12
Battery = OK
2016-06-07 07:49:00.994 (ZWAVE) Temp (badkamer_temp)
subtype = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr = 0
ID = 9217
Temperature = 24.2 C
Signal level = 12
Battery = OK
2016-06-07 07:49:01.679 (ZWAVE) Temp (badkamer_temp)
subtype = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr = 0
ID = 9217
Temperature = 24.2 C
Signal level = 12
Battery = OK
2016-06-07 07:49:01.783 (ZWAVE) Temp (badkamer_temp)
subtype = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr = 0
ID = 9217
Temperature = 24.2 C
Signal level = 12
Battery = OK
2016-06-07 07:49:01.965 (ZWAVE) Temp (badkamer_temp)
subtype = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr = 0
ID = 9217
Temperature = 24.2 C
Signal level = 12
Battery = OK
2016-06-07 07:49:02.798 (ZWAVE) Temp (badkamer_temp)
subtype = TEMP5 - LaCrosse TX2, TX3, TX4, TX17
Sequence nbr = 0
ID = 9217
Temperature = 24.2 C
Signal level = 12
Battery = OK