Page 1 of 1

Uv and solar data via plugin, malformat error

Posted: Thu Apr 11, 2024 10:41 am
by Tman
I have installed custom plugin which gets uv and solar data. It used to work like a charm. I didn't change anything but now I'm getting info in pro2 logging

Code: Select all

 logger (11.04.2024 11:38:45): station 1 (User-defined), malformed data "uv0 "
logger (11.04.2024 11:38:47): station 1 (User-defined), malformed data "sol0 "
Is there some way to find out what's wrong, I.e more detailed error log etc.

Re: Uv and solar data via plugin, malformat error

Posted: Thu Apr 11, 2024 2:32 pm
by admin
What does the plugin return as data? Just call it from the ssh shell and you will see on stdout.
The error message tells that just the sensor names "uv0" and "sol0" are provided by the plugin, but with no data attached.
If so, this is an error within the plugin.

Are you the author of the plugin? If so, you should easily find the root cause.

Re: Uv and solar data via plugin, malformat error

Posted: Thu Apr 11, 2024 9:47 pm
by Tman
Thnx. Almost solved. The problem seems to be the following command
wget -q http://veikkola-saa.com/pws/solardata.txt -O /tmp/mnt/data/scripts/solardata.txt

I have removed "force https" from website but still wget gives the following error. Hmm?

Error:
https://veikkola-saa.com/pws/solardata.txt: HTTPS support not compiled in.

Any hints?

Re: Uv and solar data via plugin, malformat error

Posted: Sat Apr 13, 2024 12:26 pm
by admin
Standard wget from busy box does not support HTTPS. Looks like the contacted server reroutes the request from HTTP to HTTPS (without understanding that this is not always a good idea, but the usual admin does just know his own small world).

Please make use of "/home/openssl/wget-ssl" instead, which can handle OPENSSL (unless the admin pulls up the encryption levels to highest settings to be the coolest guy in town).