Page 1 of 1

Solar Data not displayed.

Posted: Tue 12 Apr 2022 1:51 pm
by watsonm
Moved to new topic

I have ordered a Solar Pod from ebay and while I wait I thought I would tweak my python software to process the data.
I produce an Easweather.dat file with locations 27 and 28 containing data to hopefully be read by Cumulusmx.

'0105, 2022-04-12 11:53:14, 2022-04-12 11:53:14, 0, 0, 20.90, 84, 12.6, 0, 0, 0, 991.46, 0.34, 0, 0.68, 0, 10, SW, 0, 0, 0, 0.0, 0, 0, 0, 24.9, 10000, 3, 0, 0, 0'

However I do not see anything on the Solar panel other than zero's. I wandered around all the settings panels but could not find anything that will
switch this on.

I toggled the Solar calculation method: in case this stopped it reading from the Easyweather.dat file but no joy.
Also made sure:
Station Settings => Display Options , have ticked [x] Display Solar data and UV-1 dat

and restarted cumulusmx after doing these changes..

There is obviously something I have missed as the Easyweather.cs file in the github does indicate this data being proocessed.

Any help with what I have missed would be appreciated......???

Re: Solar Data not displayed.

Posted: Tue 12 Apr 2022 1:52 pm
by watsonm
Found the answer myself, just in case anyone else needs it.

While looking through the Easyweather.cs code there is an if statement before the light processing code.

...
if (cumulus.StationOptions.LogExtraSensors)
{
var lightReading = GetConvertedValue(st[EW_LIGHT]);
......

1) Not sure why it is there as the EW_Light values will normally be zero anyway.
2) Doesn't seem to be an obvious way to set this flag in Cumulus.ini file although...

In the EasyWeather_Format WIKI it says :
Cumulus 1.9.4 beta build 1071 is first build that for 'easyweather.dat' input method will Read UV and Lux values from easyweatherplus.dat file if 'Extra Sensors' selected in Settings frame on Station Settings screen.

Can't find this setting in current CMX build.


So set LogExtraSensors to 1 using an editor, restart cumulusmx and the data appears...

Re: Solar Data not displayed.

Posted: Tue 12 Apr 2022 4:20 pm
by mcrossley
Glad you got it working, for reference the setting is under Station Settings | Common Options.

Re: Solar Data not displayed.

Posted: Tue 12 Apr 2022 4:52 pm
by sfws
For further reference, that Extra Sensors setting is documented in the Wiki here in a section about configuration file rather sensibly headed data logging. That documentation was written in advance of release 3.12.0 last year, and says, the option was due to be moved into a settings page at release 3.12.0.

Re: Solar Data not displayed.

Posted: Tue 12 Apr 2022 5:12 pm
by watsonm
Thanks for that info.

Went around in circles a bit but didn't realise that the solar data was classified as an extra sensor since the data was just part of the easyweather.dat file. :bash:

Thanks again...

Re: Solar Data not displayed.

Posted: Tue 12 Apr 2022 7:56 pm
by mcrossley
Neither did I, I haven't had to really look at that code much! :)
I think it is unique to that station driver, afaik it is included as standard in all the others, or has its own setting.