WeeWX Forecast - Tides Another Question!

54 views
Skip to first unread message

Jon Fear

unread,
May 26, 2023, 7:21:45 AM5/26/23
to weewx-user
I have finally got XTides working and getting results on my site. The tide heights are showing in feet however I would prefer them in Meters.

I have taken a look around under the bonnet but cannot see how to change this. Any thoughts?

I am using the weewx-wdc skin and v4.10.2.

Thanks

Jon

Rory Gillies

unread,
May 26, 2023, 8:32:16 AM5/26/23
to weewx-user
Hi Jon, this is what I did:

Convert the tide offset from feet to metres:
#set $height=$tide.offset.raw / 3.281

Then display the height with two decimal places:
#echo '%.2f' % $height

Works good for me! 
Reply all
Reply to author
Forward
0 new messages