Hello Pat.
Great. That's how it works. Thank you for your help and the really great 
skin.
Greeting Stefan

Am Sonntag, 1. September 2019 02:09:35 UTC+2 schrieb Pat:
>
> (I'm having a hard time typing today). 
>
> Yes, that was my error. I corrected it in another 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/9f656376-3d43-4dcf-8679-d2b7070c6b15%40googlegroups.com.

Reply via email to