Day switch in grapihcs

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
dospider
Posts: 15
Joined: Monday 04 August 2014 18:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Day switch in grapihcs

Post by dospider »

Hello,

When i see the grapihcs of the energie production the day switch isn't working well.

We think our code is ok:
# If last output exists send last energy to domoticz with zero power
if ( [ $DEBUG == "Y" ] )
then
echo Last entry
fi
power=0;
energy=`cat ${DATA_FILE_PREV} | grep ^"Dag: 0," | awk -F: '{ print $3 }' | awk -F\ '{ print $1 * 1000 }'`
rm -f ${DATA_FILE_PREV}
else
# If last output does not exists send exit script
if ( [ $DEBUG == "Y" ] )
then
echo Sun down no updates
fi
exit 1

This is what is shows:
DateTime,Opgewekt
2016-03-20 00:00:00,5.21
2016-03-21 00:00:00,3.18
2016-03-22 00:00:00,7.47
2016-03-23 00:00:00,14.13
2016-03-24 00:00:00,14.13
2016-03-25 00:00:00,8.4
2016-03-26 00:00:00,21.43
2016-03-26 00:00:00,21.43
2016-03-28 00:00:00,18.06

Sometimes when the next day there is more production it is showing it, otherwise it is showing the value of the day before.
Sometimes it is showing the good value and as you can see the 27e is gone an 2 times 26e.

Does anyone have clue what the problem is. I'am using Version: 3.4834. Before the last update is was the same.
buxol
Posts: 13
Joined: Friday 01 January 2016 23:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Day switch in grapihcs

Post by buxol »

I'm also specifically 'missing' sunday 27th of March in my graphs. Also running V3.4834
Maybe it has got something to do with the DST change? (Zomertijd)
Gas usage fluke 26-27 march
Gas usage fluke 26-27 march
Schermafbeelding 2016-03-29 om 22.png (55.72 KiB) Viewed 659 times
User avatar
jvdz
Posts: 2189
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Day switch in grapihcs

Post by jvdz »

New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
buxol
Posts: 13
Joined: Friday 01 January 2016 23:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Day switch in grapihcs

Post by buxol »

Thnx Jos, for pointing out that topic.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest