It took most of this summer to get my tide clock to predict accurately, using NOAA harmonic constituents data crammed into an Arduino, a GPS module, and published formulas.
Take a look:
https://digitalhorology.etsy.com/listing/4345582508