Is there a limit to year graphics? Topic is solved

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
Kedi
Posts: 577
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Is there a limit to year graphics?

Post by Kedi »

I have my Domoticz installed from 2015.
I wonder if there is a limit the the month 'Comparing Usage' graphics P1 smart meter widget.
Currently it fits nicely, but will Domoticz housekeeping keep all the years, and will the be displayed for ever, or is there a limit to it?
Logic will get you from A to B. Imagination will take you everywhere.
Kedi
Posts: 577
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Is there a limit to year graphics?

Post by Kedi »

Nobody with an answer?
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Is there a limit to year graphics?

Post by waltervl »

The one who implemented the compare chart is not on the forum, only on GitHub (michahagg). Looking at the code it does not seem to limit it.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Kedi
Posts: 577
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Is there a limit to year graphics?

Post by Kedi »

Tnx.
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
gizmocuz
Posts: 2549
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Is there a limit to year graphics?

Post by gizmocuz »

Domoticz will never remove day values from the database.
Maybe we should limit the compare chart in the feature as you don't want to see 20 years in the chart
Quality outlives Quantity!
BartSr
Posts: 395
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Is there a limit to year graphics?

Post by BartSr »

I would leave deleting records to the users.
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Is there a limit to year graphics?

Post by waltervl »

Not showing is not the same as deleting.....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Hansbit
Posts: 38
Joined: Monday 17 February 2014 15:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Is there a limit to year graphics?

Post by Hansbit »

Is it possible to show an extra chart, for both P1 gas and electricity charts, just showing the total year usage per year?

When choosing a new energy supplier, for price comparison, I have to submit the gas and electricity on yearly basis. Now I have to add up all 12 month manually...

And it will also be nice to see if any energy saving measures take effect over years.
HvdW
Posts: 615
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Is there a limit to year graphics?

Post by HvdW »

What you can do.
Go Setup -> Settings -> Backup/Restore
Do a backup.
Note the IDX of Power and Gas
Install and open DB Browser (SQL)
Open your backup
Go tab Browse Data (Gegevensbrowser)
Scroll Table (starting with applications)
Choose Multimeter calendar
set filter to the idx of your P1
Choose the dates you nee like 01/01/2023 and 31/12/2023 and copy fields Counter1, Counter2, Counter3,Counter4, Date
Paste it in a spreadsheet and off you go.

Code: Select all

Dal gebruik	Dal terug	Piek gebruik	Piek terug
29907340	10779111	16001275	25861618	2023-07-05
27797678	9464948		14731310	23015900	2022-07-05
2109662		1314163		1269965		2845718	
Divide by 1000 and truncate to get kWh

Best option right now seems to be Vattenfall

PS Sorry for the amount of off topic here.
Bugs bug me.
User avatar
waltervl
Posts: 5886
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Is there a limit to year graphics?

Post by waltervl »

Hansbit wrote: Thursday 13 June 2024 17:41 Is it possible to show an extra chart, for both P1 gas and electricity charts, just showing the total year usage per year?

When choosing a new energy supplier, for price comparison, I have to submit the gas and electricity on yearly basis. Now I have to add up all 12 month manually...

And it will also be nice to see if any energy saving measures take effect over years.
Why in a chart? Just go to the P1 Electricity report page or the P1 Gas report page (device Log -> Report) and you see everyting per year.....
https://www.domoticz.com/wiki/Managing_ ... ice_Report

You can also set the compare chart (last chart) to year display and it will show the logged results per year (and not default by month).
Schermafbeelding 2024-06-14 001650.png
Schermafbeelding 2024-06-14 001650.png (35.92 KiB) Viewed 1613 times
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
gizmocuz
Posts: 2549
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Is there a limit to year graphics?

Post by gizmocuz »

If I look at my P1 graph, there is a limit of 10 years. I do not see data before that
Quality outlives Quantity!
Hansbit
Posts: 38
Joined: Monday 17 February 2014 15:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Is there a limit to year graphics?

Post by Hansbit »

waltervl wrote: Thursday 13 June 2024 23:41
...
You can also set the compare chart (last chart) to year display and it will show the logged results per year (and not default by month).
Schermafbeelding 2024-06-14 001650.png
Found it! Overlooked clicking on 'y' for years. Thanks!!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest