--
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.
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.
<?php \$vitesse = 0$current.windSpeed.raw; if ("$unit.label.windSpeed" == " km/h") { \$bff="0-Calme"; if (\$vitesse > 1) \$bff="1-Trés Légère Brise"; if (\$vitesse > 6) \$bff="2-Légère Brise"; if (\$vitesse > 12) \$bff="3-Petite Brise"; if (\$vitesse > 20) \$bff="4-Jolie Brise"; if (\$vitesse > 29) \$bff="5-Bonne Brise"; if (\$vitesse > 39) \$bff="6-Vent Frais"; if (\$vitesse > 50) \$bff="7-Grand Frais"; if (\$vitesse > 62) \$bff="8-Coup de Vent"; if (\$vitesse > 75) \$bff="9-Fort Coup de Vent"; if (\$vitesse > 89) \$bff="10-Tempête"; if (\$vitesse > 103) \$bff="11-Violente Tempête"; if (\$vitesse > 118) \$bff="12-Ouragan"; } else {\$bff="to be updated for other than km/h"; } echo \$bff; ?>
At the moment the weeWX tag system does not support Beaufort wind speeds. WeeWX has a function in bin/weewx/wxformaulas.py to calculate Beaufort wind speed but it is not used. You have seen Beaufort mentioned in the change log, Beaufort was added to the StdWXCalculate service but it is presently disabled; I am not sure why this is so - Matthew maybe able to answer that one.
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 - private.
I think I made a mistake on the cut and paste into the email and missed the $. Glad it worked out for you.
It was a quick and dirty coding example of one way to do it. There may be better ways . . .
-- - Paul VE1DX ------------------ Paul M Dunphy Lake Echo, Nova Scotia https://www.ve1dx.net <--- Weather station
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