Yes, that was my error (I corrected it in a follow up email). Here it is
again, please try this.
// Windspeed Metric
if ( data.hasOwnProperty("windSpeed_kph") ) {
jQuery(".curwindspeed").text( parseFloat(parseFloat(data["windSpeed_kph"
])).toLocaleString("$system_locale_js", {minimumFractionDigits: 1,
maximumFractionDigits: 1}) );
update_windSpeed_kph ( parseFloat(parseFloat(data["windSpeed_kph"])).
toLocaleString("$system_locale_js", {minimumFractionDigits: 1,
maximumFractionDigits: 1}) );
}
On Saturday, August 31, 2019 at 4:20:44 PM UTC-4, Stefan wrote:
>
> I have this line
> jQuery(".curwindspeed").text(
> parseFloat(parseFloat(data["windSpeed_kph"])).toLocaleString("$system_locale_js",
>
> {minimumFractionDigits: 1, maximumFractionDigits: 1}) );
> replaced by this line
> update_windSpeed_kph ( parseFloat ( parseFloat ( data [ "windSpeed_kph"
> ])). toLocaleStri ng ( "$ system_locale_js" , { minimumFractionDigits :
> 1 , maximumFractionDigits : 1 }) );
> but that does not work either. The color is displayed, but it always
> stays at 0.0 km / h
>
>
> Am Samstag, 31. August 2019 21:20:54 UTC+2 schrieb Pat:
>>
>> Did you delete that line? I had an error and had you delete it but then I
>> corrected myself and said do not delete and add the new line below it.
>> Please try that.
>
>
--
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/6f9d8d27-09a2-4e31-a8e8-dabd73d10231%40googlegroups.com.