That should read "I use this code in my
*/etc/weewx/skins/Standard/index.html.tmpl* file:
On Thursday, July 11, 2019 at 9:12:35 AM UTC-3, WindnFog wrote:
>
> I use this code in my file:
>
>
> ## Calculate today's current Beaufort based on wind speed in knots
>
> #set $current_kts = 0
> #if $varExists('day.windSpeed') and $current.windSpeed.raw is
> not None
> #if $unit.unit_type.windSpeed == 'mile_per_hour'
> #set $current_kts = $current.windSpeed.raw * 0.8689762
> #elif $unit.unit_type.windSpeed == 'km_per_hour'
> #set $current_kts = $current.windSpeed.raw * 0.539956
> #elif $unit.unit_type.windSpeed == 'meter_per_second'
> #set $current_kts = $current.windSpeed.raw * 1.943844
> #elif $unit.unit_type.windSpeed == 'knot'
> #set $current_kts = $current.windSpeed.raw
> #else
> #set $current_kts = 0
> #end if
> #if $current_kts < 1
> #set $current_beaufort = 0
> #set $word_current_beaufort = 'Calm'
> #elif $current_kts < 4
> #set $current_beaufort = 1
> #set $word_current_beaufort = 'Light air'
> #elif $current_kts < 7
> #set $current_beaufort = 2
> #set $word_current_beaufort = 'Light breeze'
> #elif $current_kts < 11
> #set $current_beaufort = 3
> #set $word_current_beaufort = 'Gentle breeze'
> #elif $current_kts < 17
> #set $current_beaufort = 4
> #set $word_current_beaufort = 'Moderate breeze'
> #elif $current_kts < 22
> #set $current_beaufort = 5
> #set $word_current_beaufort = 'Fresh breeze'
> #elif $current_kts < 28
> #set $current_beaufort = 6
> #set $word_current_beaufort = 'Strong breeze'
> #elif $current_kts < 34
> #set $current_beaufort = 7
> #set $word_current_beaufort = 'High wind'
> #elif $current_kts < 41
> #set $current_beaufort = 8
> #set $word_current_beaufort = 'Gale'
> #elif $current_kts < 48
> #set $current_beaufort = 9
> #set $word_current_beaufort = 'Strong gale'
> #elif $current_kts < 56
> #set $current_beaufort = 10
> #set $word_current_beaufort = 'Storm'
> #elif $current_kts < 64
> #set $current_beaufort = 11
> #set $word_current_beaufort = 'Violent storm'
> #else
> #set $current_beaufort = 12
> #set $word_current_beaufort = 'Hurricane'
> #end if
> #else
> #set $current_beaufort = 'N/A'
> #end if
>
>
> - Paul VE1DX
>
> https://www.ve1dx.net/
>
> On Thursday, July 11, 2019 at 9:04:12 AM UTC-3, Stefan Schnidrig wrote:
>>
>> Hi Guys.
>> I've read this discussion here and wanted to ask you if there is any other
>> solution than php or rewrite the file? There would have to be an easier
>> option?
>>
>> Thank you
>>
>>
>>
>> Am Sonntag, 16. März 2014 09:08:27 UTC+1 schrieb Ronald Wildner:
>>>
>>> I am wondering if there is any hint to display current WindSpeed in
>>> Beaufort !
>>> I used google and the search -function, but could not find anything
>>> adequate ;-)
>>>
>>
--
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/337378ff-3b4f-4b80-bd33-c12c7331de52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.