Page 1 of 1

Add UV to remainder of template

Posted: Sun Feb 04, 2018 8:43 am
by azchrisf
I see the current block supports UV, but other areas of the template do not (Im not talking about the DB itself).
I can see the Solar radiation (w/m2), but no UV data in areas like the Statistics.

It would be nice to add that stuff to the rest of the template, it's very important for people like me who live in the Southwest United States and UV/Solar numbers are important. Australians too probably since it gets hot in the Outback too. ;-)

Re: Add UV to remainder of template

Posted: Sun Feb 04, 2018 8:45 am
by Jachym
Hi,
it would be possible, but unfortunately is not realistic. UV was not included in MT at the beginning (simply because I did not have that sensor and could not test it). It is not included in the main alldata table and adding it would require rewriting practically all the scripts.

Re: Add UV to remainder of template

Posted: Sun Feb 04, 2018 8:46 am
by azchrisf
What's wrong with adding just a UV Statistics? Probably easy to adapt the Solar one...

Re: Add UV to remainder of template

Posted: Sun Feb 04, 2018 8:48 am
by Jachym
It is not in the alldata table and all the queries would have to be modified as well as AJAX calls and HTML of the tables. This sort of thing is something you have to plan at the beginning because changing this is practically impossible unless you want to rewrite everything from scratch - and there are literally hundreds of these scripts so I do not plan doing this.