Groups
Groups
Sign in
Groups
Groups
weewx-user
Conversations
About
Send feedback
Help
WeeWX Forecast - Tides Another Question!
54 views
Skip to first unread message
Jon Fear
unread,
May 26, 2023, 7:21:45 AM
5/26/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
5/26/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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