Enhancement xtide #104

Closed
opened 2026-10-05 01:22:40 +02:00 by adam · 14 comments
Owner

Can this project refactor the current 'tide' command in modules/locationdata.py

And optimally use Linux local program xtide for data calculations offline

https://flaterco.com/xtide/

Ideally this would be a new module xtide.py and the current method can determine if enabled and use it versus the API

Config.ini have a section to enable

Here is an example of it being used in a similar project https://github.com/chaunceygardiner/weewx-xtide/blob/main/bin/user/xtide.py

Can this project refactor the current 'tide' command in modules/locationdata.py And optimally use Linux local program xtide for data calculations offline https://flaterco.com/xtide/ Ideally this would be a new module xtide.py and the current method can determine if enabled and use it versus the API Config.ini have a section to enable Here is an example of it being used in a similar project https://github.com/chaunceygardiner/weewx-xtide/blob/main/bin/user/xtide.py <!-- github-sync-id:3561815459 -->
adam closed this issue 2026-10-05 01:22:40 +02:00
Author
Owner

I would like to have tide data for as global as possible see

https://github.com/windcrusader/tidepredict

Perhaps an option for xtide or this

I would like to have tide data for as global as possible see https://github.com/windcrusader/tidepredict Perhaps an option for xtide or this <!-- github-comment-id:3456771670 -->
Author
Owner

I'm not sure if https://github.com/sam-cox/pytides

Will globally work well or not

I do know this may have more requirements and so a new xtide module is for sure good to minimally impact the project overall

Consideration for which modules to include should be no regex and well maintained secure imports

I'm not sure if https://github.com/sam-cox/pytides Will globally work well or not I do know this may have more requirements and so a new xtide module is for sure good to minimally impact the project overall Consideration for which modules to include should be no regex and well maintained secure imports <!-- github-comment-id:3456784285 -->
Author
Owner

Another one to consider

https://github.com/pyTMD/pyTMD

Another one to consider https://github.com/pyTMD/pyTMD <!-- github-comment-id:3456801660 -->
Author
Owner

xtide probably isn't the answer as it doesn't work outside the US and the others are a bit of a mixed bag. Tidepredict looks pretty simple though. Simple is good

xtide probably isn't the answer as it doesn't work outside the US and the others are a bit of a mixed bag. Tidepredict looks pretty simple though. Simple is good <!-- github-comment-id:3458236647 -->
Author
Owner

xtide probably isn't the answer as it doesn't work outside the US and the others are a bit of a mixed bag. Tidepredict looks pretty simple though. Simple is good

Thanks

So https://github.com/windcrusader/tidepredict

Might be the best for global use

> xtide probably isn't the answer as it doesn't work outside the US and the others are a bit of a mixed bag. Tidepredict looks pretty simple though. Simple is good Thanks So https://github.com/windcrusader/tidepredict Might be the best for global use <!-- github-comment-id:3458843413 -->
Author
Owner

xtide probably isn't the answer as it doesn't work outside the US and the others are a bit of a mixed bag. Tidepredict looks pretty simple though. Simple is good

@g7kse can you test this branch and let me know what you think

I was concerned the data isn't good ? I might have bad timezone?

https://github.com/SpudGunMan/meshing-around/pull/248

> xtide probably isn't the answer as it doesn't work outside the US and the others are a bit of a mixed bag. Tidepredict looks pretty simple though. Simple is good @g7kse can you test this branch and let me know what you think I was concerned the data isn't good ? I might have bad timezone? https://github.com/SpudGunMan/meshing-around/pull/248 <!-- github-comment-id:3459706810 -->
Author
Owner

I tried a fresh install and was getting an error with the install script. didn't seem to clear itself from an aborted install so manually removed the config.ini

Meshing Around Installer
########################

This script will try and install the Meshing Around Bot and its dependencies.
Installer works best in raspian/debian/ubuntu or foxbuntu embedded systems.
If there is a problem, try running the installer again.

Checking for dependencies...

Detected existing installation, please backup and remove existing installation before proceeding```



<!-- github-comment-id:3460760273 -->
I tried a fresh install and was getting an error with the install script. didn't seem to clear itself from an aborted install so manually removed the config.ini ```######################## Meshing Around Installer ######################## This script will try and install the Meshing Around Bot and its dependencies. Installer works best in raspian/debian/ubuntu or foxbuntu embedded systems. If there is a problem, try running the installer again. Checking for dependencies... Detected existing installation, please backup and remove existing installation before proceeding``` <!-- github-comment-id:3460760273 -->
Author
Owner

Ok.. another little pest

you have to use pip install tidepredict --break-system-packages with RPi otherwise it throws an error. I do this all the time on single use machines but can you confirm that you got tidepredict to work with an arm board?

      error: command 'aarch64-linux-gnu-gcc' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for timezonefinder
Failed to build timezonefinder
ERROR: Failed to build installable wheels for some pyproject.toml based projects (timezonefinder)```

<!-- github-comment-id:3461875605 -->
Ok.. another little pest you have to use ``` pip install tidepredict --break-system-packages``` with RPi otherwise it throws an error. I do this all the time on single use machines but can you confirm that you got tidepredict to work with an arm board? ``` aarch64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -Itimezonefinder/inside_poly_extension -I/usr/include/python3.13 -c build/temp.linux-aarch64-cpython-313/timezonefinder.inside_polygon_ext.c -o build/temp.linux-aarch64-cpython-313/build/temp.linux-aarch64-cpython-313/timezonefinder.inside_polygon_ext.o error: command 'aarch64-linux-gnu-gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for timezonefinder Failed to build timezonefinder ERROR: Failed to build installable wheels for some pyproject.toml based projects (timezonefinder)``` <!-- github-comment-id:3461875605 -->
Author
Owner

Last one. Tried to install on Ubuntu machine and the error is to do with tidepredict python: can't open file '/home/alex/tidepredict': [Errno 2] No such file or directory

So nothing to do with meshbot, but to do with the library

Last one. Tried to install on Ubuntu machine and the error is to do with tidepredict ```python: can't open file '/home/alex/tidepredict': [Errno 2] No such file or directory``` So nothing to do with meshbot, but to do with the library <!-- github-comment-id:3461908794 -->
Author
Owner

Last one. Tried to install on Ubuntu machine and the error is to do with tidepredict python: can't open file '/home/alex/tidepredict': [Errno 2] No such file or directory

So nothing to do with meshbot, but to do with the library

Correct I am not installing the package and it needs installed with pip or pipx

It's about 500mb

Documents here as well https://github.com/SpudGunMan/meshing-around/blob/copilot/refactor-tide-command-xtide/modules/xtide.md

> Last one. Tried to install on Ubuntu machine and the error is to do with tidepredict ```python: can't open file '/home/alex/tidepredict': [Errno 2] No such file or directory``` > > So nothing to do with meshbot, but to do with the library Correct I am not installing the package and it needs installed with pip or pipx It's about 500mb Documents here as well https://github.com/SpudGunMan/meshing-around/blob/copilot/refactor-tide-command-xtide/modules/xtide.md <!-- github-comment-id:3463315451 -->
Author
Owner

I did load it all up on a new pi

I did load it all up on a new pi <!-- github-comment-id:3463317760 -->
Author
Owner

@g7kse can you just test this locally?

python -m tidepredict -l "Port Angeles"

But use a local name I wanna know if the data is any good - it seems no to me

@g7kse can you just test this locally? `python -m tidepredict -l "Port Angeles" ` But use a local name I wanna know if the data is any good - it seems no to me <!-- github-comment-id:3463621762 -->
Author
Owner

Doesn't want to work for me. I'm away for the next couple of days but I'm not convinced the library is functional.

Did you get an output?

Doesn't want to work for me. I'm away for the next couple of days but I'm not convinced the library is functional. Did you get an output? <!-- github-comment-id:3463865638 -->
Author
Owner

Doesn't want to work for me. I'm away for the next couple of days but I'm not convinced the library is functional.

Did you get an output?

Yes it works for me @g7kse just has one high and low a day and I don't think it's good info it could be a demo only?

> Doesn't want to work for me. I'm away for the next couple of days but I'm not convinced the library is functional. > > Did you get an output? Yes it works for me @g7kse just has one high and low a day and I don't think it's good info it could be a demo only? <!-- github-comment-id:3464249308 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#104