phifogg / ioBroker.sainlogic

An IoBroker Adapter for Sainlogic based weather stations
MIT License
20 stars 11 forks source link

Illegal request when WeatherUnderground is activated on Sainlogic WS3500 #126

Closed major-s closed 2 years ago

major-s commented 2 years ago

Describe the bug
When I activate the Weather Underground protocol, the sainlogic adapter reports illegal requests and does not proceed the data. Ecowitt protocol works fine. I use Sainlogic WS3500 with 1.6.4 firmware. I also had to set station ID and station key in the configuration of the weather station, otherwise no requests (neither valid nor invalid) appeared in the log. I guess, this might be specific for this firmware version.

Expected behavior
Adapter should correctly process sent data. The documentation should provide information that station id and station key should be set, at least for specific devices and firmware versions

Screenshots & Logfiles

Listener received illegal request: /data/report/ID=1&PASSWORD=2&indoortempf=75.4&tempf=92.8&dewptf=55.0&windchillf=92.8&indoorhumidity=51&humidity=28&windspeedmph=0.2&windgustmph=1.1&winddir=72&absbaromin=29.737&baromin=29.823&rainin=0.000&dailyrainin=0.000&weeklyrainin=0.012&monthlyrainin=0.012&solarradiation=41.45&UV=0&dateutc=2022-06-18%2012:57:12&softwaretype=EasyWeatherV1.6.4&action=updateraw&realtime=1&rtfreq=5 or Listener received illegal request: /data/report?ID=1&PASSWORD=2&indoortempf=75.4&tempf=92.7&dewptf=58.6&windchillf=92.7&indoorhumidity=51&humidity=32&windspeedmph=0.2&windgustmph=1.1&winddir=62&absbaromin=29.737&baromin=29.823&rainin=0.000&dailyrainin=0.000&weeklyrainin=0.012&monthlyrainin=0.012&solarradiation=43.38&UV=0&dateutc=2022-06-18%2013:07:20&softwaretype=EasyWeatherV1.6.4&action=updateraw&realtime=1&rtfreq=5

Versions:

major-s commented 2 years ago

After some tests I could solve the problem. In the configuration of the weather station the path has to and with "?", while in the adapter configuration "?" should not be entered. This should be mentioned in the documentation.