weather report

Moderator: leecollings

Post Reply
Ctenberge
Posts: 40
Joined: Friday 03 January 2020 15:41
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Zwolle, the Netherlands
Contact:

weather report

Post by Ctenberge »

hello,
When I look at the rainfall of 2019, all data is present but I cannot get a report over that year. 2018 is present and filled with the data of that year.
So it seems preceeding years are present at the dropdown menu except for 2019.
Raspberry Pi 3B, Raspberry Pi 4, RFXCOM - RFXtrx433, Z-wave, ESP8266
User avatar
FireWizard
Posts: 1870
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: weather report

Post by FireWizard »

Hi,

The same here.
In the "drop down" menu you cannot select 2019 or 2020.
Only the years between (and including) 2012 till 2018 are present.
No data over previous years is present

It is the same for all Rain sensors. I have both Buienradar and Darksky installed.

Regards
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: weather report

Post by waaren »

FireWizard wrote: Friday 03 January 2020 21:35 In the "drop down" menu you cannot select 2019 or 2020.
Only the years between (and including) 2012 till 2018 are present.
A pull request has been made to solve this. Will be merged into one of the next Beta's.
If you do not want to wait for that you could modify <domoticz dir>/www/index.html yourself (around line 1245 and you will see what needs to be added)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
FireWizard
Posts: 1870
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: weather report

Post by FireWizard »

@waaren

Thank you (as usual) for your comment.
I do not use this data at all, and I would not have been looking to it, if there would not have been a post about it.

I added 2 lines (after approx. line 1245) for the year 2019 and 2020.

It works for now (2020), but in addition I suggest to make a final solution, so that we do not have to modify next year again.

Regards
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: weather report

Post by waaren »

FireWizard wrote: Saturday 04 January 2020 18:43 It works for now (2020), but in addition I suggest to make a final solution, so that we do not have to modify next year again.
At least that gives anyone interested a year to learn html and create a Pull Request to solve this. We cannot expect @gizmocuz to do all these kind of changes by himself. There are over 22000 members on the forum. There must be more people knowing how to code such a common piece of html then the ones now stepping in.

Please note that this is not personal to you as you already contribute more then a fair amount by giving excellent advise and suggestions on the forum.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
FireWizard
Posts: 1870
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: weather report

Post by FireWizard »

Hi waaren

You wrote:
Please note that this is not personal
I do not take these things personal. I agree, you are right as you said:
We cannot expect @gizmocuz to do all these kind of changes by himself. There are over 22000 members on the forum. There must be more people knowing how to code such a common piece of html then the ones now stepping in.
It is simple, if we copy/paste e.g the years 2021 to 2030, we are prepared for the next ten years.

Agree?

Regards
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: weather report

Post by waaren »

FireWizard wrote: Saturday 04 January 2020 19:33 It is simple, if we copy/paste e.g the years 2021 to 2030, we are prepared for the next ten years.
Agree?
My preference would be to make this dynamic. So from 2016 to current year and preset it to current year.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
FireWizard
Posts: 1870
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: weather report

Post by FireWizard »

@waaren,

That would be the best.

Regards
Ctenberge
Posts: 40
Joined: Friday 03 January 2020 15:41
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Zwolle, the Netherlands
Contact:

Re: weather report

Post by Ctenberge »

thanks for the solution.
Why would there be the possibility to present these data if not usefull?
And I have learned another lesson about Domoticz, so thanks again

with regards
Raspberry Pi 3B, Raspberry Pi 4, RFXCOM - RFXtrx433, Z-wave, ESP8266
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: weather report

Post by waaren »

FireWizard wrote: Saturday 04 January 2020 19:51 That would be the best.
I created another Pull request for this that dynamically create a combobox starting at 2012 and ending at current year. Default is current year.
When @gizmocuz finds the time to review the code changes it can be merged into a next beta.
Please feel free to comment. I am quite new to JS / HTML so there could well be room for improvement.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest