change wind direction from degress

123 views
Skip to first unread message

hobbyl...@gmail.com

unread,
Jan 2, 2021, 6:42:00 AM1/2/21
to weewx-user
hi everybody and happy new year!

I wonder if there is a way to chande the wind direction statistics from degrees to direction original
for example from 360 to N 
thank you!

storm...@gmail.com

unread,
Jan 2, 2021, 7:57:27 AM1/2/21
to weewx-user
try this:   $current.windDir.ordinal_compass  
Message has been deleted

Δημήτρης Βήχος

unread,
Jan 2, 2021, 12:31:31 PM1/2/21
to weewx-user
in current direction ok. i like to apply in all stastics  in day, weewk, month, year .
Screenshot_2021-01-02_19-29-06.png

p q

unread,
Jan 2, 2021, 12:33:20 PM1/2/21
to weewx...@googlegroups.com

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f69d9d7c-1b48-4600-a139-30f0e14dbb3bn%40googlegroups.com.


--
Peter Quinn
(415)794-2264

Δημήτρης Βήχος

unread,
Jan 2, 2021, 4:50:29 PM1/2/21
to weewx-user
i have allready read this section. the ask in if theres option to apears in seasons skin the ordinates not with degress  by default , with setting in skin.conf. reading the docs says the only option for group_direction is degree_compass.
tried to set degree_compass=ordinal_compass but weewx stoped after that setting. 

gjr80

unread,
Jan 2, 2021, 5:59:51 PM1/2/21
to weewx-user
Hi,

There is no single setting you can change to have Seasons display directions as ordinates, unfortunately you will need to go through the relevant report templates(s) and change the formatting for each tag concerned to use .ordinal_compass. You will need to take care as some of the tags will look a little different to what you find in the Customization Guide. For example, in hilo.inc you will need to change:

$archive[1].wind.gustdir.format(add_label=False)

to

$archive[1].wind.gustdir.ordinal_compass

and

$archive[1].wind.vecdir.format(add_label=False)

to

$archive[1].wind.vecdir.ordinal_compass

You will probably want to remove some of the wind direction label tags (for example $unit.label.windDir) that show the degree symbol as well.

Other template files (statistics.inc springs to mind) may need similar changes as well, .

One other thing to keep in mind, changes to skins are fairly safe across upgrades but obviously not safe against a re-install. You might want to make note of your changes in case you need to re-apply them later.

Gary

Δημήτρης Βήχος

unread,
Jan 3, 2021, 4:06:25 AM1/3/21
to weewx-user
that works!! thank you!  i have a repository to github who i keep the changes and some translations of skins in case of reinstall.
happy new year!!

Reply all
Reply to author
Forward
0 new messages