Thanks a lot It works OK now.
Electricity consumption & cost per day, month and year [Solved]
Moderator: leecollings
- McMelloW
- Posts: 434
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: Electricity consumption & cost per day, month and year
Greetings McMelloW
- McMelloW
- Posts: 434
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Missing 5 days - Electricity consumption & cost per day, month and year
These 2 lines (179-180) in the source code
Showing these results in the domoticz log
Today it is day 173 of 2024 and day 21 of June so I miss 5 days of the year and of the month. The date on my Raspberry Pi is the actual date & time. It is also synchronized with ntp
Does somebody has an explanation for this difference.
Code: Select all
dz.log('daysCounterMonth: ' .. daysCounterMonth, dz.LOG_DEBUG)
dz.log('daysCounterYear: ' .. daysCounterYear, dz.LOG_DEBUG)
Code: Select all
2024-06-21 19:39:00.579 Status: dzVents: Debug: ElecConsCost: daysCounterMonth: 16
2024-06-21 19:39:00.579 Status: dzVents: Debug: ElecConsCost: daysCounterYear: 168
Does somebody has an explanation for this difference.
Greetings McMelloW
- waltervl
- Posts: 5889
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Electricity consumption & cost per day, month and year
It seems to count the number of entries in the database. So probably Domoticz did not register your energy every day.
Do you see gaps in the graphs of your original energy devices?
Do you see gaps in the graphs of your original energy devices?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- McMelloW
- Posts: 434
- Joined: Monday 20 November 2017 17:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V2024.1
- Location: Harderwijk, NL
- Contact:
Re: Electricity consumption & cost per day, month and year
Yes there are gaps in these devices. I had to go back 5 days after an updatebeta. This causes the gaps in the database.
The energy data consumed and delivered is registered by my energy provider as I can see.
I had the impression the days and month were just counted by de calendar. But it is not.
Greetings McMelloW
Who is online
Users browsing this forum: No registered users and 1 guest