HansR wrote: ↑Sat 18 Apr 2020 4:55 pm
No doubt I am not the first who asks, but I can't find it.
Jacques (weather by you sub-forum) asked this in the early days of him revising his original French only web pages.
He ended up testing maximum solar (web tag <#solarYH>) and maximum UV (web tag <#UVYH> ) to see if they had gone above zero yesterday to decide whether to include solar and UV entries in the tables on his web pages. As he said at the time, it could be there was no sun and no UV yesterday for the sensor to measure, it was not definitive in saying no sensor, but this was the simplest way for him to code his scripts.
HansR wrote: ↑Sat 18 Apr 2020 4:55 pm
How can I positively identify whether a station has a solar and/or UV sensor?
I'm pretty sure there is no definitive way. You would need to provide your own way for people to tell you within a settings page.
Background
web tag "<#stationtype>", or the corresponding entry in Cumulus.ini, can tell you station type, but it does not give a definitive answer (apart from Fine Offset).
Interrogating "Extra Sensors" does not help because it is not intended to cover standard components.
There are default solar settings, and Cumulus (both flavours) uses these to produce outputs whether or not there is actually a sensor present. So they don't help you.
You will find a few requests to take out solar/UV information from user interface or from standard web pages. These have not been actioned yet just because it is not simple.
That said, I suppose it would be simple to add another entry to the settings to code what sensors are present, but it would not be possible to set appropriate default as far as I am aware, and we can't expect every Cumulus user to set it correctly.