I use MQTT y I have configure it with METRICWX.
[[MQTT]]
server_url = mqtt://broker.hivemq.com:1883
topic = estacion/datos
unit_system = METRICWX
binding = loop
...
When I load the page goes well, but at the time of updating the wind speed
appears in m / s. If I change the lines I told you multiplying x3.6 it goes
well.
This is the output of MQTT. By the way, I don't understand how maxSolarRad
appears without having a solar sensor
{"noise_dB": "-32.602", "cloudbase_meter": "214.870790215", "outHumidity":
"92.0", "pressure_mbar": "1001.03", "maxSolarRad": "7.37293576364",
"barometer_mbar": "1007.87696197", "rainRate_mm_per_hour": "0.0",
"dewpoint_C": "11.3338998187", "heatindex_C": "12.6", "dayRain_mm": "0.3",
"battery": "0.0", "altimeter_mbar": "1007.53033843", "windchill_C": "12.6",
"snr_dB": "32.481", "rain_total": "68.16", "appTemp_C": "11.1172772991",
"outTemp_C": "12.6", "humidex_C": "14.5196613477", "hourRain_mm": "0.0",
*"windGust_mps*": "4.08001014407", "rssi_dB": "-0.12", "inTemp_C": "17.5",
"usUnits": "17.0", "rain_mm": "0.0", "rain24_mm": "1.8", "dateTime":
"1574872344.0", "windDir": "180.0", "*windSpeed_mps*": "2.72000676271"}
In this case in the web page it appear WindSpeed 2.7 and gust 4.8 Km/h
El miércoles, 27 de noviembre de 2019, 0:39:35 (UTC+1), Pat escribió:
>
> Kike I don't this this is a bug. Are you using MQTT? If so, then you need
> to configure your MQTT plugin to use metricwx.
>
> *There is no need to do math like this in the js*.
>
> Please see this thread on how to update your MQTT settings.
>
>
> https://github.com/poblabs/weewx-belchertown/issues/23#issuecomment-440529099
>
>
>
> On Tuesday, November 26, 2019 at 4:38:20 PM UTC-5, Kike .Asekas wrote:
>>
>>
>> Pat, I detect a bug in the js. I use the target_unit=metricwx that store
>> the speed in m/s but i want see the speed in km/h and for that reason i
>> have the group_speed=km_per_hour. The skin shows the speed in km/s until
>> update then m/s. I change the lines 879 and 893 multiply x 3.6. Maybe it
>> also fails to people with us target unit and metric visualization.
>>
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/24feaa64-54ff-41fb-86a7-d19a62b27b2b%40googlegroups.com.