Page 1 of 1

Solar

Posted: Mon 05 Jan 2015 1:29 pm
by water01
Is there a way of switching off Solar if you have a station without solar? Had a search around and found some solar settings but not one to switch it off.

Re: Solar

Posted: Mon 05 Jan 2015 1:35 pm
by steve
If you don't have solar sensors, there's nothing to switch off, it can't read any solar data?

Re: Solar

Posted: Mon 05 Jan 2015 1:37 pm
by water01
OK my stupidity Steve, I meant is there a way to stop Solar appearing in the interface when you don't have any solar inputs, i.e. gauges, graphs, today/yesterday etc.

Re: Solar

Posted: Mon 05 Jan 2015 1:46 pm
by steve
Part of the reason for having a browser interface is that you can configure it in any way you want (or even write your own interface from scratch). So if for example you wanted to remove the solar panel from the bottom right of the dashboard, you could edit the index.html file in the interface folder. I'm not saying that everyone will be able to do everything straight away, because it will require an understanding of how things like Bootstrap work, but most of it is already configurable.

Re: Solar

Posted: Mon 05 Jan 2015 1:53 pm
by water01
Aha OK now I feel really stupid!! So if I alter it to stop Solar data showing presumably I shouldn't allow the unzip of future releases to overwrite those interface files?

If you add something to the interface of course that means the edits will have to be redone or will there be a way of doing this without loosing mods as in Cumulus 1.

Just thinking aloud really!!

Re: Solar

Posted: Mon 05 Jan 2015 1:58 pm
by steve
The 'interface' directory is the web server root. You can do anything you want in there just as you could with a real web server, so one thing you could do is create a subdirectory called 'myinterface' or whatever, and then copy all of the files and directories that are already in 'interface' into your directory, and then start modifying your copy. You could then view your version by browsing to http://<address of cumulus mx>:8998/myinterface

Re: Solar

Posted: Mon 05 Jan 2015 2:17 pm
by water01
Got it thanks Steve.

Re: Solar

Posted: Tue 06 Jan 2015 4:43 pm
by water01
Just wondering as I was playing with the interface to get rid of Solar, does the interface have access to webtags?

Re: Solar

Posted: Tue 06 Jan 2015 4:50 pm
by steve
Not directly. Well, you could put web tags into the interface html pages and feed them through the web tag processor in the usual way, but that's not very good. Currently the API is limited to the fixed items which the pages currently use. But I do plan to add a call where you supply a list of items (probably web tag names) in JSON format, and you get back the equivalent data.

Re: Solar

Posted: Tue 06 Jan 2015 4:56 pm
by water01
But I do plan to add a call where you supply a list of items (probably web tag names) in JSON format, and you get back the equivalent data.
That would be great.

Re: Solar

Posted: Tue 06 Jan 2015 6:04 pm
by water01
Ok modified the MX interface to remove Solar. Very easy!!

Re: Solar

Posted: Tue 06 Jan 2015 7:19 pm
by mcrossley
I see a whole cottage industry springing up to modify the interface :lol: