Loading Xtides with Forecast

355 views
Skip to first unread message

philip....@gmail.com

unread,
Jun 16, 2024, 1:09:59 PMJun 16
to weewx-user
Im loading weewx V5 from new and while installing the forecast program I notice that XTides is no longer available.
Can somebody point me in the right direction please as to how I can get XTides to work

Thanks

John Kline

unread,
Jun 16, 2024, 1:17:32 PMJun 16
to weewx...@googlegroups.com
Which version of weewx-forecast are you using?  I mention this issue and how to work around it in the README of my fork of weewx-forecast (https://github.com/chaunceygardiner/weewx-forecast):

If you want tide forecasts, install xtides:
  sudo apt-get install xtide
Then determine your location:
  http://tides.mobilegeographics.com/

Note: current versions of debian (bookworm) do not include xtide.
This is perhaps true of other distributions.
You'll need to build it yourself and set the 'prog' variable in the xtide
section.
Example (building xtide)
  wget https://flaterco.com/files/xtide/xtide-2.15.5.tar.xz
  (decompress and cd to directory)
  sudo apt-get install libpng-dev
  sudo apt-get install libtcd-dev
  ./configure
  make
Example (setting prog variable t point to where you have built xtide):
[Forecast]
    ...
    [[XTide]]
        location = Palo Alto Yacht Harbor, San Francisco Bay, California
        prog = /home/jkline/software/xtide-2.15.5/tide
You'll still need to install xtide-data.  Example:
    apt install xtide-data
and you'll need to create an /etc/xtide.conf file to tell xtide where to find the harmonic
data you installed with xtide-data.  Example:
/etc/xtide.conf:
    /usr/share/xtide
(xtide-data installs harmonic data in the /usr/share/xtide directory)


On Jun 16, 2024, at 10:10 AM, philip....@gmail.com <philip....@gmail.com> wrote:

Im loading weewx V5 from new and while installing the forecast program I notice that XTides is no longer available.
Can somebody point me in the right direction please as to how I can get XTides to work

Thanks

--
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/72de0fa6-e933-4fb3-a6ef-958af37a00b7n%40googlegroups.com.

vince

unread,
Jun 16, 2024, 1:18:24 PMJun 16
to weewx-user
In the absence of any logs... or console transcripts... or snippets from your weewx.conf file... sorry, nobody can help much....

philip....@gmail.com

unread,
Jun 16, 2024, 1:44:59 PMJun 16
to weewx-user
Im using the latest 64bit Debian 12 Bookworm on a Pi5 and building weewx V5 on a new installation.
My first extension to load was the forecast extension and when i type 
sudo apt-get install xtide
it tells me the package is not available is only available from another source so logs are not available
I downloaded from https://github.com/chaunceygardiner/weewx-forecast John and I did try and follow your update but I couldnt get it to work
It told me NO TIDE data was available.

Chuck Rhode

unread,
Jun 16, 2024, 2:33:58 PMJun 16
to 'John Kline' via weewx-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 16 Jun 2024 10:17:11 -0700
"'John Kline' via weewx-user" <weewx...@googlegroups.com> wrote:

> Note: current versions of debian (bookworm) do not include xtide.

Apparently, it is available in the "Unstable (Sid)" repository.

+ deb http://ftp.us.debian.org/debian/ unstable main contrib

I'm not sure how it's being built. There seems to be an outstanding
year-old compile bug:

+ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026439

- --
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather: http://LacusVeris.com/WX
.. 69° — Wind SSE 21 mph

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCZm8v6AAKCRBg2/xipKOW
UhjrAJ9aoTA2VgyXyRsIjaoGj1yOn0EibQCfcIW6iZXHNwDfP3RkKQy5gauOlQM=
=QpY5
-----END PGP SIGNATURE-----

philip....@gmail.com

unread,
Jun 16, 2024, 2:41:18 PMJun 16
to weewx-user
Im trying yours again John and its OK when I do ./configure but when I try   make     it replies
make: ***No targets specified and no makefile found. Stop
I take it thats not what I should get back
Phil

vince

unread,
Jun 16, 2024, 2:41:31 PMJun 16
to weewx-user
Easiest option is to just run 32-bit raspios and it'll all be there, but other options include grabbing. a 32bit .deb and compiling your own from sources.   I 'think' that you can download a .deb from https://packages.debian.org/bullseye/armhf/xtide/download which also has instructions for how to add that repo.

Ian Millard

unread,
Jun 16, 2024, 2:55:33 PMJun 16
to weewx...@googlegroups.com
Vince,

Following your often used advice, Google has the answer: -

sudo apt-get -y install xtide-data
Install and works perfectly with Bookworm.

-- 
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.

Ian Millard

unread,
Jun 16, 2024, 3:01:41 PMJun 16
to weewx...@googlegroups.com
root@dvm:/var/www/html/divumwx/heatmaps# sudo apt-get -y install xtide-data
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libwpe-1.0-1 libwpebackend-fdo-1.0-1 linux-headers-6.1.0-18-amd64 linux-headers-6.1.0-18-common linux-image-6.1.0-18-amd64
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  xtide-data
0 upgraded, 1 newly installed, 0 to remove and 8 not upgraded.
Need to get 588 kB of archives.
After this operation, 2115 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 xtide-data all 20191229-1.1 [588 kB]
Fetched 588 kB in 0s (3211 kB/s)
Selecting previously unselected package xtide-data.
(Reading database ... 406470 files and directories currently installed.)
Preparing to unpack .../xtide-data_20191229-1.1_all.deb ...
Unpacking xtide-data (20191229-1.1) ...
Setting up xtide-data (20191229-1.1) ...
On 16 Jun 2024, at 19:41, vince <vince...@gmail.com> wrote:

John Kline

unread,
Jun 16, 2024, 3:18:23 PMJun 16
to weewx...@googlegroups.com
> Im trying yours again John and its OK when I do ./configure but when I try   make     it > replies
>make: ***No targets specified and no makefile found. Stop
>I take it thats not what I should get back

That’s hard to imagine if you are in the correct directory.  Exactly what directory were you in when you typed make?


On Jun 16, 2024, at 11:41 AM, philip....@gmail.com <philip....@gmail.com> wrote:

Im trying yours again John and its OK when I do ./configure but when I try   make     it replies
--
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.

John Kline

unread,
Jun 16, 2024, 3:20:51 PMJun 16
to weewx...@googlegroups.com
Also, are we sure the configure finished without error (there are dependencies you need to install as stated in my instructions)?

Do you see a file named Makefile in the xtide-2.15.5 directory?

philip....@gmail.com

unread,
Jun 16, 2024, 3:40:24 PMJun 16
to weewx-user
Theres a Makefile.am and Makefile.in in the xtide-2.15.5 directory

Here are the lines from the terminal
Xtide.txt

John Kline

unread,
Jun 16, 2024, 3:58:30 PMJun 16
to weewx...@googlegroups.com
configure generates a Makefile (with no extensions).

Take a look at what you sent me, configure ended in an error.  Look right before you typed make!

Did you install the prerequisite packages listed?
I have this running on 64-bit Raspberry OS Bookworm.


On Jun 16, 2024, at 12:40 PM, philip....@gmail.com <philip....@gmail.com> wrote:

Theres a Makefile.am and Makefile.in in the xtide-2.15.5 directory

vince

unread,
Jun 16, 2024, 4:23:06 PMJun 16
to weewx-user
On a pi5 with 64bit bookworm this worked.....

sudo apt-get install -y libpng-dev libtcd-dev xtide-data xtide-coastline xtide-data-nonfree

tar jxvf xtide_2.15.2.orig.tar.bz2
cd xtide-2.15.2

./configure --without-x
make
sudo make install
sudo ldconfig         # optional but doesn't hurt

tide -l SEATTLE
(returns the tide estimates for seattle)

John Kline

unread,
Jun 16, 2024, 4:25:49 PMJun 16
to weewx...@googlegroups.com
Yes, xtide-data installs, and is needed (per the README), but it is xtide itself that is not available.



On Jun 16, 2024, at 1:23 PM, vince <vince...@gmail.com> wrote:

On a pi5 with 64bit bookworm this worked.....

John Kline

unread,
Jun 16, 2024, 4:39:16 PMJun 16
to weewx...@googlegroups.com
Philip,

Rather than try to walk you through building a package, attached is a zip of the tide executable that you need.

unzip it anywhere you like and point to it by following the instructions on the README page in github or in my email.

tide.zip

philip....@gmail.com

unread,
Jun 17, 2024, 5:15:51 AMJun 17
to weewx-user
Hi John
Still no joy

Unzipped your file and loaded it into directory xtide-2.15.5 as tide
In weewx.conf under [[XTide]] prog = /home/phil/xtide-2.25.5/tide
Then carried on from your readme notes
sudo apt install xtide-data
sudp apt instal xtide-data-nonfree
Both loaded OK
created /etc/xtide.conf
Added /usr/share/xtide   into the file 
The 2 harmonics exixts in /usr/share/xtide    harmonics-dwf-20100529-nonfree.tcd  and  harmonics-dwf-20191229-free.tcd 
In the weewx.conf under [[XTide]] added 
location = "Cromer, England"
interval = 86400
duration = 86400
max_age = 86400
sudo systemctl restart weewx
sudo systemctl status weewx
2 lines for xtideThread
user.forecast: XTideThread: XTide: generating tides from 2024-06-17 00:00:: BST (1718578800)) to 2024-06-18 00:00:00 (1718665200)
user.forecast: XTideThread: XTide: got no tidal events

Change the location to whats in your readme notes
location = "Palo Alto Yacht Club Harbor, San Francisco Bay, California"
Still no tidal events

Phil

philip....@gmail.com

unread,
Jun 17, 2024, 5:23:15 AMJun 17
to weewx-user
Thought that your file needs to be an executable so from the xtide-2.15.5 directory

philip....@gmail.com

unread,
Jun 17, 2024, 5:26:24 AMJun 17
to weewx-user
Sorry sent to early
Thought that your file needs to be an executable so from the xtide-2.15.5 directory
sudo chmod +x tide
Still no tidal events


John Kline

unread,
Jun 17, 2024, 9:26:28 AMJun 17
to weewx...@googlegroups.com
I don’t see a “prog = “ line in the XTide section (per my instructions).  Did you do that?
And did you create a /etc/xtide.conf file?

Would you please follow the instructions line by line?

On Jun 17, 2024, at 2:26 AM, philip....@gmail.com <philip....@gmail.com> wrote:

Sorry sent to early
--
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.

philip....@gmail.com

unread,
Jun 17, 2024, 9:51:58 AMJun 17
to weewx-user
If you look at my 1015 post it has this in it
created /etc/xtide.conf
Added /usr/share/xtide   into the file 

Ive sent you my weewx.conf file it has prog = /home/phil/xtide-2.15.5/tide  in it I forgot to add it to my 1015 post

weewx.conf

John Kline

unread,
Jun 17, 2024, 10:27:32 AMJun 17
to weewx...@googlegroups.com
And what happens when you type:

/home/phil/xtide-2.15.5/tide

on the command line?

Does the program run?

If so, grep XTideThread in the logs and send the results.  How you look at logs will vary depending on how you have set this up (but probably journalctl).

On Jun 17, 2024, at 6:52 AM, philip....@gmail.com <philip....@gmail.com> wrote:

If you look at my 1015 post it has this in it

philip....@gmail.com

unread,
Jun 17, 2024, 11:04:19 AMJun 17
to weewx-user
phil@raspberrypi:~ $ /home/phil/xtide-2.15.5/tide
/home/phil/xtide-2.15.5/tide: error: '/home/phil/xtide-2.15.5/.libs/tide' does not exist
This script is just a wrapper for tide.
See the libtool documentation for more information.

Is this what you expected ?

John Kline

unread,
Jun 17, 2024, 12:00:58 PMJun 17
to weewx...@googlegroups.com
I got a message that the file was too large.

Let’s try again:

It is not what I expected.  I’ll give you the whole built directory tree:

From your home directory, remove the exiting xtide directory, then untar what you just downloaded:

rm -rf xtide-2.15.5
tar -zxvf xtide-2.15.5.tar.gz

Now try executing tide again.  If that works, restart weewx and see if it works.


On Jun 17, 2024, at 8:48 AM, John Kline <jo...@johnkline.com> wrote:


It is not what I expected.  Here is the whole built directory tree:
<xtide-2.15.5.tar.gz>


From your home directory, remove the exiting xtide directory:

rm -rf xtide-2.15.5
tar -zxvf xtide-2.15.5.tar.gz

Then try executing tide again.  If that works, restart weewx and see if it works.

On Jun 17, 2024, at 8:04 AM, philip....@gmail.com <philip....@gmail.com> wrote:

phil@raspberrypi:~ $ /home/phil/xtide-2.15.5/tide

philip....@gmail.com

unread,
Jun 17, 2024, 12:36:20 PMJun 17
to weewx-user
rm -rf xtide-2.15.5      This removed the directory OK
copied your xtide-2.15.5.tar.gz into my Downloads directory and from that directory tar -zxvf xtide-2.15.5.tar.gz
which went ok.
restarted weewx
From the xtide-2.15.5 directory  $ tide got this
phil@raspberrypi:~ $ /home/phil/xtide-2.15.5/tide
/home/phil/xtide-2.15.5/.libs/tide: error while loading shared libraries: libxtide.so.1: cannot open shared object file: No such file or directory
phil@raspberrypi:~ $

copied and paste the xtide-2.15.5 directory into my home directory. 
restarted weewx

phil@raspberrypi:~ $ /home/phil/xtide-2.15.5/tide
/home/phil/xtide-2.15.5/.libs/tide: error while loading shared libraries: libxtide.so.1: cannot open shared object file: No such file or directory
phil@raspberrypi:~ $ 

After this the log still no tidal events

John Kline

unread,
Jun 17, 2024, 1:07:01 PMJun 17
to weewx...@googlegroups.com
If you try executing tide and it doesn’t work, you need not try anything further.  The problem is the path /home/jkline (my home directory) is hardcoded by configure.

You need to be able to build xtide.  If you want to try again, and configure fails again, I can have a look.  Please [re-]confirm that you have installed the prerequisites.  If configure fails again, there is no point to try make.

I am surprised that you can’t configure since we’re running the same OS.  I have the lite version of Bookworm 64-bit installed.  Do you have the full version?


On Jun 17, 2024, at 9:36 AM, philip....@gmail.com <philip....@gmail.com> wrote:

rm -rf xtide-2.15.5      This removed the directory OK

philip....@gmail.com

unread,
Jun 17, 2024, 2:17:49 PMJun 17
to weewx-user
I use the Raspberry Pi Imager with Pi5 and Pi 5 64 Bit software so Im assuming its the full package.
What Im going to do is have a fresh install of Pi5 using the Raspberry Imager and load weewx again and start a fresh with your XTide-=2.15.5.tar.gz
I shall copy all terminal responses to this post and see what you think.
Im hoping ./configure and then make works.
Will send you all terminal responses.
Phil 

philip....@gmail.com

unread,
Jun 18, 2024, 9:24:17 AMJun 18
to weewx-user
Hi John
Built a fresh build using the Raspberry pi imager
Loaded weewx   All OK
Then used  tar -zxvf xtide-2.15.5.tar.gz and changed to that directory
then sudo apt-get install libpng-dev and then sudo apt-get install libtcd-dev
./ configure
and then make and this time got
make  all-am
make[1]: Entering directory '/home/phil/xtide-2.15.5'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/phil/xtide-2.15.5'
so then sudo apt-get install xtide-data
and then in xtide-2.15.5 folder type tide and got
phil@raspberrypi:~/xtide-2.15.5 $ tide
bash: tide: command not found
As this didnt work I stopped as I believe you said if that does not work its no good
Have put all this in the text file I hope ??
tides

John Kline

unread,
Jun 18, 2024, 9:42:45 AMJun 18
to weewx...@googlegroups.com
Then used  tar -zxvf xtide-2.15.5.tar.gz and changed to that directory

Which tar did you use?  You cannot use the file I sent you.

On Jun 18, 2024, at 6:24 AM, philip....@gmail.com <philip....@gmail.com> wrote:

Hi John

philip....@gmail.com

unread,
Jun 18, 2024, 10:49:28 AMJun 18
to weewx-user
OOPs  Yes I did
Oh well 3rd time luck

philip....@gmail.com

unread,
Jun 18, 2024, 2:37:33 PMJun 18
to weewx-user
This time i used the correct file but as you can see from the file Im attaching going down your readme file when I get to make it seems to fail so I didnt go any further
tides1

John Kline

unread,
Jun 18, 2024, 3:01:12 PMJun 18
to weewx...@googlegroups.com
Try:
sudo apt install libfreetype6

And then re-run configure.  Again, there is no need to run make (which you did again) if the configure ends in an error.

On Jun 18, 2024, at 11:37 AM, philip....@gmail.com <philip....@gmail.com> wrote:

This time i used the correct file but as you can see from the file Im attaching going down your readme file when I get to make it seems to fail so I didnt go any further

philip....@gmail.com

unread,
Jun 18, 2024, 4:27:06 PMJun 18
to weewx-user
phil@raspberrypi:~/xtide-2.15.5 $ sudo apt install libfreetype6

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libfreetype6 is already the newest version (2.12.1+dfsg-5).
libfreetype6 set to manually installed.

The following packages were automatically installed and are no longer required:
  libcamera0.2 libraspberrypi0 libwpe-1.0-1 libwpebackend-fdo-1.0-1

Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
phil@raspberrypi:~/xtide-2.15.5 $ 

John Kline

unread,
Jun 18, 2024, 4:52:46 PMJun 18
to weewx...@googlegroups.com
OK, the difference is that you are building on the full install of bookworm and I am building on lite.  Try this for the configure step:

./configure --with-x=no

That *should* build what I am building (tide, but not xtide).  I’m guessing this will work, but let me know.  If it does, I’ll update the README.


On Jun 18, 2024, at 1:27 PM, philip....@gmail.com <philip....@gmail.com> wrote:

phil@raspberrypi:~/xtide-2.15.5 $ sudo apt install libfreetype6

philip....@gmail.com

unread,
Jun 18, 2024, 5:13:45 PMJun 18
to weewx-user
It looks more promising.
I haven't gone pass   make    but if  its what you expected will carry on but not until tomorrow.
But thanks so far
Phil

philip....@gmail.com

unread,
Jun 18, 2024, 5:15:59 PMJun 18
to weewx-user
sorry forgot to add the txt file
tides 2

John Kline

unread,
Jun 18, 2024, 5:31:58 PMJun 18
to weewx...@googlegroups.com
I checked your output.  It looks like configure and make succeeded.  You should be good to go.

On Jun 18, 2024, at 2:16 PM, philip....@gmail.com <philip....@gmail.com> wrote:

sorry forgot to add the txt file

philip....@gmail.com

unread,
Jun 19, 2024, 5:17:24 PMJun 19
to weewx-user
Added location = "Palo Alto Yacht Harbor, San Francisco Bay, California"
prog = /home/phil/xtide-2.15.5/tide
sudo apt install xtide-data
Added /etc/xtide.conf with /usr/share/xtide   where the harmonic is
Still I get no tidal data
If i do /home/phil/xtide-2.15.5/tide   it comes  back tide command not found

John Kline

unread,
Jun 19, 2024, 5:20:02 PMJun 19
to weewx...@googlegroups.com
When you did the make, it didn’t create tide?
Do make again and then send a listing of the directory.
ls -l /home/phil/xtide-2.15.5

On Jun 19, 2024, at 2:17 PM, philip....@gmail.com <philip....@gmail.com> wrote:

Added location = "Palo Alto Yacht Harbor, San Francisco Bay, California"

John Kline

unread,
Jun 19, 2024, 5:25:16 PMJun 19
to weewx...@googlegroups.com
Actually, after the make, if you don’t see the tide program, do a “make tide”. And the check for the tide program.

If you see it, execute it.  You should see some help info.  If you see that, then go ahead and try it in weewx.

There is not point to doing anything else until you have a tide program that you can execute.

On Jun 19, 2024, at 2:19 PM, John Kline <jo...@johnkline.com> wrote:



philip....@gmail.com

unread,
Jun 19, 2024, 5:44:54 PMJun 19
to weewx-user
The tide program was there but I had changed the cd /home/phil/xtide-2.15.5.
I put tide there it failed.
If I go to the home directory and put in /home/phil/xtide-2.15.5 tide it displays the help
If i put in /home/phil/xtide-2.15.5/tide -l Boston it displays the Info for Boston but in the logs it says No tidal available.

John Kline

unread,
Jun 19, 2024, 6:17:50 PMJun 19
to weewx...@googlegroups.com
My god.  Don’t be moving the program around.  It was built it /home/phill/xtide-2.15.5.  Leave it there and point prog to it.

You need to be able to execute whatever the prog line says.  For example:
In my case:
prog = /home/jkline/software/xtide-2.15.5/tide
So, I need to be able to execute:
/home/jkline/software/xtide-2.15.5/tide

If that works, you’ll be good to go.  ***Restart*** WeeWX and wait for it to decide to run the XTideThread again.  If you have any further issues, send the XTideThread lines in the log.

The tide forecast doesn’t run very often.  To hurry it along, you can stop weewx, delete the forecast.sdb database in the archive directory, restart weewx and wait for a 5 minute interval.  That is when the forecast xtide thread will attempt to generate the data.  Again, any issues, send the XTideThread lines in the log.

You should see something like this in the logs:

2024-06-19T15:15:03.495496-07:00 judygirldog5 weewxd[1638636]: INFO user.forecast: XTideThread: XTide: generating tides from 2024-06-19 00:00:00 PDT (1718780400) to 2024-07-17 00:00:00 PDT (1721199600)
2024-06-19T15:15:03.563622-07:00 judygirldog5 weewxd[1638636]: INFO user.forecast: XTideThread: XTide: saved 108 forecast records
2024-06-19T15:15:03.585208-07:00 judygirldog5 weewxd[1638636]: INFO user.forecast: XTideThread: XTide: deleted forecasts prior to 1716416103

On Jun 19, 2024, at 2:44 PM, philip....@gmail.com <philip....@gmail.com> wrote:

The tide program was there but I had changed the cd /home/phil/xtide-2.15.5.

philip....@gmail.com

unread,
Jun 20, 2024, 7:08:17 AMJun 20
to weewx-user
Sorry bad wording on my part. Didnt move anything just went into different sun-directories from the terminal prompt.

Have deleted forecast.sdb and get the same 2 lines every 5 min cycle and these are in the txt.file
 From the prompt 
 phil@raspberrypi:~ $ /home/phil/xtide-2.15.5/tide -l Cromer
I get Cromer tides so that seems to be working
The 2 lines are in the txt file along with my weewx.conf [[xtide]] info.
New3

Gerard Cerchio

unread,
Jun 20, 2024, 9:41:06 AM (14 days ago) Jun 20
to weewx-user
For my my site  I simply run a cron job once a day:

rm /var/www/html/weewx/backgrounds/tide.png; /usr/bin/tide -l "Ocean Beach, outer coast, California" -f p  -m g -o /var/www/html/weewx/backgrounds/tide.png > /dev/null

and in index.html.tmpl post the tide.png:

        <p>&nbsp;</p>
        <a href="https://www.oceanbeach.org/weewx/backgrounds/tide.png">
        <img src="backgrounds/tide.png" border="1" width="440" height="240">
        </a>

John Kline

unread,
Jun 20, 2024, 9:48:18 AM (14 days ago) Jun 20
to weewx...@googlegroups.com
Philip,

You are using the non-free xtide data presumably to get data for Cromer.  I don’t have that installed.

Let’s first confirm if this will work for Palo Alto.  Change your weewx.conf to use location: Palo Alto Yacht Harbor, San Francisco Bay, California

While you are at it, remove the interval, duration and max_age lines.

You’ll then have an identical set up to me.

If that works, we can move on to Cromer.  BTW, when we do move on, it would be good if you compare the same thing between the command line and within weewx.  I see that you’ve used “Cromer” on the command line, but “Cromer, England” in weewx.  Just put Cromer (no quotes) in weewx.conf.

On Jun 20, 2024, at 4:08 AM, philip....@gmail.com <philip....@gmail.com> wrote:

Sorry bad wording on my part. Didnt move anything just went into different sun-directories from the terminal prompt.

philip....@gmail.com

unread,
Jun 20, 2024, 2:25:25 PM (14 days ago) Jun 20
to weewx-user
Changed weewx.conf
Deleted forecast.sdb
Restarted weewx
Still no change after about 3hrs
Still no data available
new5.txt

John Kline

unread,
Jun 20, 2024, 2:44:52 PM (14 days ago) Jun 20
to weewx...@googlegroups.com
I just installed the non-free xtide data package and set my location to Cromer, England.

    [[XTide]]
        location = Cromer, England
        prog = /home/jkline/software/xtide-2.15.5/tide

It works perfectly:
2024-06-20T11:35:03.159036-07:00 judygirldog5 weewxd[2845024]: INFO user.forecast: XTideThread: XTide: generating tides from 2024-06-20 00:00:00 PDT (1718866800) to 2024-07-18 00:00:00 PDT (1721286000)
2024-06-20T11:35:03.326879-07:00 judygirldog5 weewxd[2845024]: INFO user.forecast: XTideThread: XTide: saved 109 forecast records
2024-06-20T11:35:03.352681-07:00 judygirldog5 weewxd[2845024]: INFO user.forecast: XTideThread: XTide: deleted forecasts prior to 1716489303

You would see your results if it could not find the harmonic data.  When you redid the setup, did you remember to create the /etc/xtide.conf file?  What are its contents?

On mine, the file contains “/usr/share/xtide”
In turn, /usr/share/xtide contains:
harmonics-dwf-20100529-nonfree.tcd  harmonics-dwf-20191229-free.tcd


On Jun 20, 2024, at 11:25 AM, philip....@gmail.com <philip....@gmail.com> wrote:

Changed weewx.conf

philip....@gmail.com

unread,
Jun 20, 2024, 3:28:46 PM (14 days ago) Jun 20
to weewx-user
/usr/share/xtide contains harmonics-dwf-20100529-nonfree and harmonics-dwf-20191229-free-tcd
and /etc/xtide.conf  has /usr/share/xtide in.

John Kline

unread,
Jun 20, 2024, 3:38:15 PM (14 days ago) Jun 20
to weewx...@googlegroups.com
The only other thing I can think of is permissions.  I assume you are running as phil when you try it manually and have it working.  What user is weewx running as?  If it isn’t phil, can you try manually as the the weewx user?  If that’s not easy for you, you can send the permission (ls -l) on file and directory that we need to access.

In particular, starting with bookworm, a user’s home directory is not acessible by other users.  As such,
ls -ld /home/phil
would be particularly useful command to run. 

On Jun 20, 2024, at 12:28 PM, philip....@gmail.com <philip....@gmail.com> wrote:

/usr/share/xtide contains harmonics-dwf-20100529-nonfree and harmonics-dwf-20191229-free-tcd

philip....@gmail.com

unread,
Jun 20, 2024, 4:22:47 PM (14 days ago) Jun 20
to weewx-user
Not familiar with much to do with permissions but as a starting point is this what you meant
phil@raspberrypi:~ $ ls -l
total 604
drwxr-xr-x 2 phil phil   4096 Mar 15 15:05 Bookshelf
drwxr-xr-x 2 phil phil   4096 Jun 18 16:43 Desktop
drwxr-xr-x 2 phil phil   4096 Jun 18 16:43 Documents
drwxr-xr-x 2 phil phil   4096 Jun 19 16:28 Downloads
drwxr-xr-x 2 phil phil   4096 Jun 18 16:43 Music
drwxr-xr-x 2 phil phil   4096 Jun 20 16:05 Pictures
drwxr-xr-x 2 phil phil   4096 Jun 18 16:43 Public
drwxr-xr-x 2 phil phil   4096 Jun 18 16:43 Templates
drwxr-xr-x 2 phil phil   4096 Jun 18 16:43 Videos
drwxrwxrwx 8 phil phil   4096 Jun 18 22:06 xtide-2.15.5
-rw-r--r-- 1 phil phil 574972 May 11  2022 xtide-2.15.5.tar.xz
phil@raspberrypi:~ $ ls -id /home/phil
1046530 /home/phil

You will have to talk me through anything deeper

John Kline

unread,
Jun 20, 2024, 4:33:52 PM (14 days ago) Jun 20
to weewx...@googlegroups.com
It’s unfortunate that you didn’t tell me what user weewx runs as.

Also, you did an ‘eye-dee’ instead of an “ell-dee”.
please run the following (perhaps cut and paste it):
ls -ld /home/phil

After you do the ls -ld (so you can send me the answer), please run the following:
chmod 755 /home/phil

And then see if the tides populate on the next run.

On Jun 20, 2024, at 1:22 PM, philip....@gmail.com <philip....@gmail.com> wrote:

Not familiar with much to do with permissions but as a starting point is this what you meant

philip....@gmail.com

unread,
Jun 20, 2024, 4:52:03 PM (14 days ago) Jun 20
to weewx-user
phil@raspberrypi:~ $ ls -ld /home/phil
drwx------ 15 phil phil 4096 Jun 20 20:31 /home/phil

phil@raspberrypi:~ $ chmod 755 /home/phil


phil@raspberrypi:~ $ ls -ld /home/phil
drwxr-xr-x 15 phil phil 4096 Jun 20 20:31 /home/phil

and the last 3 lines from the log
2024-06-20T21:45:19.234716+01:00 raspberrypi weewxd[1323]: INFO weewx.manager: Added record 2024-06-20 21:45:19 BST (1718916319) to database 'forecast.sdb'
2024-06-20T21:45:20.082129+01:00 raspberrypi weewxd[1323]: INFO user.forecast: XTideThread: XTide: saved 108 forecast records
2024-06-20T21:45:20.082229+01:00 raspberrypi weewxd[1323]: INFO user.forecast: XTideThread: XTide: deleted forecasts prior to 1716497120
So thanks for your patience as for what weewx runs as sorry i didnt know and didnt know how to find out
So thanks again
Phil

philip....@gmail.com

unread,
Jun 20, 2024, 5:11:41 PM (14 days ago) Jun 20
to weewx-user
Debian 12 was freshly installed onto a new sd card and then I loaded weewx v5 using Installation on Debian systems and ran it in simulator mode
Forecast / xtide was loaded next so wondered what could have done as far as permissions were concerned.

John Kline

unread,
Jun 20, 2024, 5:24:38 PM (14 days ago) Jun 20
to weewx...@googlegroups.com
It’s really about being familiar with the OS.  You’re installing something in your home directory tree.  Clearly (since it works now), weewx is running as another user.  Weewx is attempting to access the tide program.  To do so, it must traverse through your home directory.  You either have to allow that, or put xtide somewhere else where the weewx user does have access.  We took the easiest path to resolve the issue.  If you did it all over again, you would have to do the same thing.  I did add the chmod 755 instruction to the readme.

On Jun 20, 2024, at 2:11 PM, philip....@gmail.com <philip....@gmail.com> wrote:

Debian 12 was freshly installed onto a new sd card and then I loaded weewx v5 using Installation on Debian systems and ran it in simulator mode
Reply all
Reply to author
Forward
0 new messages