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.c.ow...@gmail.com> wrote:

/usr/share/xtide contains harmonics-dwf-20100529-nonfree and harmonics-dwf-20191229-free-tcd
and /etc/xtide.conf  has /usr/share/xtide in.

On Thursday, June 20, 2024 at 7:44:52 PM UTC+1 John Kline wrote:
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
Deleted forecast.sdb
Restarted weewx
Still no change after about 3hrs
Still no data available


On Thursday, June 20, 2024 at 2:48:18 PM UTC+1 John Kline wrote:
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.

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.
On Wednesday, June 19, 2024 at 11:17:50 PM UTC+1 John Kline wrote:
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.
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.


On Wednesday, June 19, 2024 at 10:25:16 PM UTC+1 John Kline wrote:
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:


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

On Tuesday, June 18, 2024 at 10:31:58 PM UTC+1 John Kline wrote:
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


On Tuesday, June 18, 2024 at 10:13:45 PM UTC+1 philip....@gmail.com wrote:
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


On Tuesday, June 18, 2024 at 9:52:46 PM UTC+1 John Kline wrote:
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

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 $ 

On Tuesday, June 18, 2024 at 8:01:12 PM UTC+1 John Kline wrote:
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


On Tuesday, June 18, 2024 at 3:49:28 PM UTC+1 philip....@gmail.com wrote:
OOPs  Yes I did
Oh well 3rd time luck

On Tuesday, June 18, 2024 at 2:42:45 PM UTC+1 John Kline wrote:
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
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 ??


On Monday, June 17, 2024 at 7:17:49 PM UTC+1 philip....@gmail.com wrote:
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 

On Monday, June 17, 2024 at 6:07:01 PM UTC+1 John Kline wrote:
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
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


On Monday, June 17, 2024 at 5:00:58 PM UTC+1 John Kline wrote:
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

/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 ?

On Monday, June 17, 2024 at 3:27:32 PM UTC+1 John Kline wrote:
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
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

On Monday, June 17, 2024 at 2:26:28 PM UTC+1 John Kline wrote:
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
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


On Monday, June 17, 2024 at 10:23:15 AM UTC+1 philip....@gmail.com wrote:
Thought that your file needs to be an executable so from the xtide-2.15.5 directory


On Monday, June 17, 2024 at 10:15:51 AM UTC+1 philip....@gmail.com wrote:
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
On Sunday, June 16, 2024 at 9:39:16 PM UTC+1 John Kline wrote:
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.

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

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

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

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

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

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

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

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

--
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/edcd457f-83a9-4de4-8651-32b1ab992f2an%40googlegroups.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.

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

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

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f4bc899b-cd59-4ef3-9979-f9097280c3cbn%40googlegroups.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/DDBBB8D5-21CD-41B3-9AB9-F1A92878107F%40johnkline.com.

Reply via email to