Uv and solar data via plugin, malformat error

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
Tman
Junior Boarder
Junior Boarder
Posts: 23
Joined: Sun Aug 11, 2019 5:43 pm

Uv and solar data via plugin, malformat error

Post 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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Uv and solar data via plugin, malformat error

Post 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.
Tman
Junior Boarder
Junior Boarder
Posts: 23
Joined: Sun Aug 11, 2019 5:43 pm

Re: Uv and solar data via plugin, malformat error

Post 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?
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Uv and solar data via plugin, malformat error

Post 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).
Post Reply