Author Topic: XTide  (Read 297 times)

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +35/-0
    • View Profile
    • Blonde Guy
XTide
« on: January 17, 2026, 03:54:07 pm »
The XTide program shows the tide table for a particular location. It worked for years, but stopped a couple of weeks ago when the harmonics fiie expired.

http://hobbesarchive.com/?dir=%2F&stype=all&sort=type_name&search=xtide&submit=Search


It's still under development here:
https://flaterco.com/xtide/files.html

But there is no longer any OS/2 version.

Although it is an X program, there is also a command line version, tide.exe, which was more useful for OS/2.

Is there any hope for building the current release; at least the command line version?
« Last Edit: January 18, 2026, 02:27:27 am by Martin Iturbide »
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5663
  • Karma: +144/-1
    • View Profile
Re: Re: General Software Testing
« Reply #1 on: January 17, 2026, 05:28:51 pm »
Martin, can you split Neil's xtide comment into a separate thread?
Also perhaps create git archives of https://flaterco.com/files/xtide/libtcd-2.2.7-r3.tar.xz and https://flaterco.com/files/xtide/xtide-2.15.6.tar.xz

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5663
  • Karma: +144/-1
    • View Profile
Re: XTide
« Reply #2 on: January 18, 2026, 05:06:26 am »
Hi Neil, can you test tide.exe. Need https://flaterco.com/files/xtide/harmonics-dwf-20251228-free.tar.xz along with SET HFILE_PATH=location/of/harmonics-dwf-20251228-free.tcd adjusted to your install. Not sure of the expected dir separator in the SET statement. I'll include the man page.
Still working on the web server, stupid IPv6 stuff and how to handle daemon. Might try the xtide too.
Edit: The missing DLL
« Last Edit: January 18, 2026, 05:08:39 am by Dave Yeo »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5603
  • Karma: +50/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: XTide
« Reply #3 on: January 18, 2026, 02:32:55 pm »
Hello Dave

I created this repo: https://github.com/OS2World/APP-SCIENCE-XTide
Let me know if you think that way is fine (the program and the library), otherwise, just delete the files and set it as you like it.

Also, a quick tutorial on how it works would be appreciated just to test it out.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1167
  • Karma: +35/-0
    • View Profile
    • Blonde Guy
Re: XTide
« Reply #4 on: January 18, 2026, 03:49:24 pm »
I unzipped the program files into a directory. I downloaded and extracted the harmonics file

https://flaterco.com/files/xtide/harmonics-dwf-20251228-free.tar.xz

I set and environment variable to the location of my harmonics file

Code: [Select]
set hfile_path=\suntanv6\apps\xtide\dist\harmonics-dwf-20251228-free.tcd
I ran the program, but I now get a message about time zone support.

Code: [Select]
tide -l "Santa Cruz"

Indexing \suntanv6\apps\xtide\dist\harmonics-dwf-20251228-free.tcd...
XTide Fatal Error:  BROKEN_ZONEINFO
Your platform appears to have broken time zone support.  You need to have a
reasonably modern version of the time zone database that is available from
http://www.iana.org/time-zones.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5663
  • Karma: +144/-1
    • View Profile
Re: XTide
« Reply #5 on: January 18, 2026, 06:55:45 pm »
Interesting, I wasn't sure how to run it, as well as not having the local tide database for here. There's a whole rabbit hole on the tidal databases. Seems they were public domain but no more and my government is worried about commercial use :(
I am curious about the local tides, I'm perhaps 30 miles upstream from the ocean and the railroad bridge in town is considered the end of tidal waters.
I'll have to read up on the time zone support and whether x:\sys\apps\timeset\tz_en.lst that is installed by AOS is good enough. Seems it should be taken care off by the operating system and ideally installed in %ETC%
Then there is the rabbit hole of when the time zones change. Here the Province passed a law to switch to DST when ever you guys get around to it.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5663
  • Karma: +144/-1
    • View Profile
Re: XTide
« Reply #6 on: Today at 05:20:56 am »
Hello Dave

I created this repo: https://github.com/OS2World/APP-SCIENCE-XTide
Let me know if you think that way is fine (the program and the library), otherwise, just delete the files and set it as you like it.

Also, a quick tutorial on how it works would be appreciated just to test it out.

Regards

It's fine. At first I had git problems much like earlier. Went down the rabbit hole of restoring backups and screwing around. On that install, the latest libc update broke git.
Ended up using a different install and things work. Still can't update git due to a CVS dependency with no cvs.rpm. Need to open a ticket but github has become so hard to use on OS/2.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5663
  • Karma: +144/-1
    • View Profile
Re: XTide
« Reply #7 on: Today at 05:29:41 am »
Working on time support. Downloaded tzdb and did some editing of the makefile. There are a lot of options but first step is compiling.
The problems I've run into is first a static vs non-static problem,
Code: [Select]
c99 -DHAVE_GETRESUID=0 -DHAVE_GETEUID=0 -DHAVE_ISSETUGID=0   -c -o localtime.o localtime.c
localtime.c:388:1: error: static declaration of 'issetugid' follows non-static declaration
  388 | issetugid(void)
      | ^~~~~~~~~
In file included from private.h:266,
                 from localtime.c:16:
M:/usr/lib/gcc/i686-pc-os2-emx/9/include-fixed/unistd.h:525:6: note: previous declaration of 'issetugid' was here
  525 | int  issetugid(void);
      |      ^~~~~~~~~
make: *** [<builtin>: localtime.o] Error 1

I can remove the static but then get a duplicate symbol error,
Code: [Select]
c99 -o zdump -DHAVE_GETRESUID=0 -DHAVE_GETEUID=0 -DHAVE_ISSETUGID=0 -Zexe -Zomf -Zhigh-mem -Zmap zdump.o localtime.o strftime.o -lintl
weakld: H:\tmp\ldconv_strftime_o_8da5696ed544186c40.obj - error: Duplicate symbol '_issetugid' ('_issetugid').
weakld: H:\tmp\ldconv_localtime_o_8da5696ed544184d00.obj - error: Symbol previously defined in this module.

Even if and when I get it built, have to figure out how to install/use it