MQTT publish and rtldavis loop data

42 views
Skip to first unread message

Patrick Mendiuk

unread,
Mar 20, 2020, 8:47:36 PM3/20/20
to weewx-development
I am trying to to publish MQTT data from rtldavis loop data and some of the data (wind speed) is being published as an integer value.  If I add:

        [[[inputs]]]
               
[[[[windSpeed]]]]
                        format
= %.2f

The published string will output an integer in the correct format:


{"windDir": "348.296442688", "txBatteryStatus": "0.0", "windSpeed_mph": "3.00", "rain24_in": "0.0", "rainRate_inch_per_hour": "0.0", "dateTime": "1584750448.0", "dayRain_in": "0.0", "usUnits": "1.0"}


The data values written into weewx.sdb are not rounded:


3.20441920290305



Where is this getting rounded or formatted?

Thanks,
Patrick

Reply all
Reply to author
Forward
0 new messages