Page 1 of 1
Conversion degress ---> english direction wind. **solved**
Posted: Wed Nov 04, 2020 4:19 pm
by Luca02
Hi,
Is it possibile to convert wind direction in normal meteobridge from degrees to english directions text? I'm not so good in html language and variables... thank you so much for help
PS Another question: how i can convert from UTC to local clock time?
Re: Conversion degress ---> english direction wind
Posted: Wed Nov 04, 2020 5:59 pm
by wvdkuil
Luca02 wrote: Wed Nov 04, 2020 4:19 pm
Hi,
Is it possibile to convert wind direction in normal meteobridge from degrees to english directions text? I'm not so good in html language and variables... thank you so much for help
PS Another question: how i can convert from UTC to local clock time?
Check this :
https://www.meteobridge.com/wiki/index.php/Templates
endir converts a wind direction into one of 16 English direction texts.
wind0dir-act=endir
Default a Meteobridge returns the timestamps not in UTC but in your local time as you set your local timezone,
"Timestamps are strings of format "YYYYMMDDhhmmss".
You have to set it to =utc to get an utc timestamp.
Wim
Re: Conversion degress ---> english direction wind
Posted: Wed Nov 04, 2020 7:55 pm
by Luca02
Hi Wim,
thank you so much for help, but i notice something wrong on my website page.
Meteobridge report a gust from SE, but on my website it is reported from E, also SW becomes W.
This is the variable expressed: [wind0dir-act=endir.1:—]
How can i fix?
Re: Conversion degress ---> english direction wind
Posted: Wed Nov 04, 2020 11:01 pm
by wvdkuil
Luca02 wrote: Wed Nov 04, 2020 7:55 pm
Hi Wim,
thank you so much for help, but i notice something wrong on my website page.
Meteobridge report a gust from SE, but on my website it is reported from E, also SW becomes W.
This is the variable expressed: [wind0dir-act=endir.1:—]
How can i fix?
The .1 makes it one position returned.
Better use [wind0dir-act=endir:--]
After the : it is the value returned if there is no value available, such as with a broken wind-device.
Wim
Re: Conversion degress ---> english direction wind. **solved**
Posted: Mon Nov 09, 2020 7:46 pm
by Luca02
Thank you so much Wim! sorry for the stupid question