If you want to avoid Java, I cobbled together some code based on gjr80's template and added it to /etc/weewx/skins/Standard/index.html.tmpl as follows:
## Calculate today's highest Beaufort based on wind speed in knots #if $varExists('day.windSpeed') and $day.windSpeed.max.raw is not None #if $unit.unit_type.windSpeed == 'mile_per_hour' #set $kts = $day.windSpeed.max.raw * 0.8689762 #elif $unit.unit_type.windSpeed == 'km_per_hour' #set $kts = $day.windSpeed.max.raw * 0.539956 #elif $unit.unit_type.windSpeed == 'meter_per_second' #set $kts = $day.windSpeed.max.raw * 1.943844 #elif $unit.unit_type.windSpeed == 'knot' #set $kts = $day.windSpeed.max.raw #else #set $kts = 0 #end if #if $kts < 1 #set $beaufort = 0 #set $word_beaufort = 'Calm' #elif $kts < 4 #set $beaufort = 1 #set $word_beaufort = 'Light air' #elif $kts < 7 #set $beaufort = 2 #set $word_beaufort = 'Light breeze' #elif $kts < 11 #set $beaufort = 3 #set $word_beaufort = 'Gentle breeze' #elif $kts < 17 #set $beaufort = 4 #set $word_beaufort = 'Moderate breeze' #elif $kts < 22 #set $beaufort = 5 #set $word_beaufort = 'Fresh breeze' #elif $kts < 28 #set $beaufort = 6 #set $word_beaufort = 'Strong breeze' #elif $kts < 34 #set $beaufort = 7 #set $word_beaufort = 'High wind' #elif $kts < 41 #set $beaufort = 8 #set $word_beaufort = 'Gale' #elif $kts < 48 #set $beaufort = 9 #set $word_beaufort = 'Strong gale' #elif $kts < 56 #set $beaufort = 10 #set $word_beaufort = 'Storm' #elif $kts < 64 #set $beaufort = 11 #set $word_beaufort = 'Violent storm' #else #set $beaufort = 12 #set $word_beaufort = 'Hurricane' #end if #else #set $beaufort = 'N/A' #end if Put the above somewhere near the top, and then modify the Since Midnight table by adding a couple of lines in the High Wind row: <td class="stats_label"> High Wind<br/> High Beaufort Scale </td> <td class="stats_data"> $day.wind.max from $day.wind.gustdir at $day.wind.maxtime <br/> $beaufort or $word_beaufort at $day.wind.maxtime </td> - Paul VE1DX https://www.ve1dx.net/ On Sunday, March 16, 2014 at 12:50:02 PM UTC-3, Ronald Wildner wrote: > > Thanks ! > With $current.windSpeed.raw and some Javascript it was easy and fits > perfectly for me ! .raw was what I was looking for ;-) > > > Am Sonntag, 16. März 2014 12:53:38 UTC+1 schrieb Andrew Milner: >> >> the simplest way would be to replace $current.windSpeed with something >> like (($current.windSpeed.raw + 5) * 5) in the templates wherever needed I >> would have thought. More comolex to actually add the unit type to be >> generally available, but possible - read the user manual for more details >> on unit types - under extensions I think, but could be ustomisation - not >> sure which it comes under!! >> >> >> On 16 March 2014 11:12, Ronald Wildner <ronwi...@gmail.com> wrote: >> >>> Thanks for the quick anwer ... >>> I am pretty new to weewx ... >>> how can I now add the calculated bft to my template ... (something >>> like $current.windSpeed.bft) ? >>> 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 a topic in the >>> Google Groups "Weewx user's group" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/weewx-user/b7TqpYD9sxY/unsubscribe - >>> private >>> <https://groups.google.com/d/topic/weewx-user/b7TqpYD9sxY/unsubscribe> >>> - private >>> <https://groups.google.com/d/topic/weewx-user/b7TqpYD9sxY/unsubscribe>. >>> To unsubscribe from this group and all its topics, send an email to >>> weewx-user+...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.