Page 1 of 1

Json files sunhours and solardata

Posted: Mon 04 Jan 2021 12:59 pm
by water01
If the option not to see the Solar Data and Sunshine hours has been selected shouldn't the associated json files NOT be uploaded at the upload time interval and in FTP Now.

Also I noticed the interface still has the items in the selection menu along the bottom in the Recent and Historic graphs although that is less of a problem than uploading 2 files that are not required.

Re: Json files sunhours and solardata

Posted: Mon 04 Jan 2021 5:41 pm
by mcrossley
The files are almost empty - two bytes long iirc - so no real overhead. Without them the web pages will crash if a user clicks on the sun graphs.

The default web site pages are pretty dumb - as are the frameworks for the interface pages, static HTML. Could it be done better, yes, do I have the time to make them dynamic, no.

If somebody wants to take it on I'd be more than happy! :lol:

Re: Json files sunhours and solardata

Posted: Mon 04 Jan 2021 7:19 pm
by water01
OK Mark point taken.