On Wednesday, March 13, 2019 at 1:08:28 PM UTC-4, V. Kelly Bellis wrote:
>
> Hi Matt,
>
> Thank you for your reply.
>
> Let me know how you make out after you install XTide v2.15.2 and the most 
> recent harmonics file.
>
> In answer to your question, and as I previously said, v2.15.2 works 
> perfectly. 
>

you probably need to tell your tide program where to find the harmonics.  
something like this should work:

HFILE_PATH=/path/to/harmonics.tcd tide -l Boston

apparently the environment in which you run weewx is not the same as the 
environment in which you are directly invoking tide, so you could be safe 
and wrap your tide program in a shell script, then use the shell script as 
the 'prog' for forecast.

for example, with weewx installed at /opt/weewx, put in the file 
/opt/weewx/bin/user/tide.sh something like this:

#!/bin/sh
HFILE_PATH=/path/to/harmonics.tcd tide "$@"

then use this in your forecast configuration:

  prog=/opt/weewx/bin/user/tide.sh

for example, here is a recent harmonics file with the bog-standard tide 
program from a debian install (xtide version 2.11):

/opt/weewx/bin/user/tide.sh -l "Boston, Boston Harbor"
Indexing /opt/harmonics-dwf-20181227/harmonics-dwf-20181227-free.tcd...
Boston, Boston Harbor, Massachusetts
42.3539° N, 71.0503° W

2019-03-14  5:59 PM EDT   8.64 feet  High Tide
2019-03-14  6:49 PM EDT   Sunset
2019-03-15 12:05 AM EDT   1.19 feet  Low Tide
2019-03-15  3:00 AM EDT   Moonset
2019-03-15  6:17 AM EDT   9.85 feet  High Tide
2019-03-15  6:56 AM EDT   Sunrise
2019-03-15 12:34 PM EDT   Moonrise
2019-03-15 12:49 PM EDT   0.44 feet  Low Tide
2019-03-15  6:50 PM EDT   Sunset
2019-03-15  7:01 PM EDT   8.69 feet  High Tide
2019-03-16  1:07 AM EDT   1.08 feet  Low Tide
2019-03-16  3:58 AM EDT   Moonset
2019-03-16  6:54 AM EDT   Sunrise
2019-03-16  7:20 AM EDT  10.08 feet  High Tide
2019-03-16  1:37 PM EDT   Moonrise
2019-03-16  1:52 PM EDT   0.14 feet  Low Tide
2019-03-16  6:51 PM EDT   Sunset
2019-03-16  8:05 PM EDT   8.97 feet  High Tide
2019-03-17  2:10 AM EDT   0.73 feet  Low Tide
2019-03-17  4:51 AM EDT   Moonset
2019-03-17  6:53 AM EDT   Sunrise
2019-03-17  8:24 AM EDT  10.46 feet  High Tide
2019-03-17  2:47 PM EDT   Moonrise
2019-03-17  2:53 PM EDT  -0.31 feet  Low Tide
2019-03-17  6:52 PM EDT   Sunset
2019-03-17  9:07 PM EDT   9.46 feet  High Tide
2019-03-18  3:11 AM EDT   0.17 feet  Low Tide
2019-03-18  5:36 AM EDT   Moonset
2019-03-18  6:51 AM EDT   Sunrise
2019-03-18  9:26 AM EDT  10.94 feet  High Tide

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to