Author Topic: json Export to MQTT Error in Output?  (Read 1062 times)

0 Members and 1 Guest are viewing this topic.

Offline GHammer

  • Senior Contributor
  • ****
  • Posts: 210
    • Woodmar Weather
json Export to MQTT Error in Output?
« on: December 26, 2020, 08:09:31 PM »
I am trying to get this driver working in WeeWX. https://github.com/bellrichm/WeeWX-MQTTSubscribe
It is all working except for the winddir field. That causes a crash, logging that it can't convert a string.
All other fields are numeric and are parsed correctly.
Could this single field be encoded incorrectly by the MQTT data export?

I see these fields and at least the console Lat/Long look incorrect, no decimal point in the console info.
"conlati":422
"conlongi":-725
"wfllati":-300.0000000
"wfllongi":-300.0000000

I also wonder why a realtime.txt is exported to my MQTT server when all I have selected is the wflexp.json file.
Wireless Vantage Pro2 Plus with 24hr FARS, WLL

Offline GHammer

  • Senior Contributor
  • ****
  • Posts: 210
    • Woodmar Weather
Re: json Export to MQTT Error in Output?
« Reply #1 on: December 27, 2020, 10:28:11 AM »
The error is because of null value of direction. If the wind is zero, the WiFiLogger2 sends --- which fails as a numeric value.
Wireless Vantage Pro2 Plus with 24hr FARS, WLL