Page 1 of 1
weather report
Posted: Friday 03 January 2020 15:49
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.
Re: weather report
Posted: Friday 03 January 2020 21:35
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
Re: weather report
Posted: Saturday 04 January 2020 0:54
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)
Re: weather report
Posted: Saturday 04 January 2020 18:43
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
Re: weather report
Posted: Saturday 04 January 2020 19:16
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.
Re: weather report
Posted: Saturday 04 January 2020 19:33
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
Re: weather report
Posted: Saturday 04 January 2020 19:36
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.
Re: weather report
Posted: Saturday 04 January 2020 19:51
by FireWizard
@waaren,
That would be the best.
Regards
Re: weather report
Posted: Monday 06 January 2020 12:32
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
Re: weather report
Posted: Thursday 16 January 2020 2:44
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.