Re:Casio F91w at 5KM underwater – watches of espionage
by noja on Friday January 31, 2025 @07:55AM
(#42887184)
Where did you get the data for the tides?
[ Parent
| on HN ]
Re:Casio F91w at 5KM underwater – watches of espionage
by cbsks on Friday January 31, 2025 @08:05AM
(#42887257)
There’s an algorithm you can use to calculate future tides but it’s complex and I wasn’t sure it would even run fast enough on the watch. I gave up after a few hours and ended up generating an array of high/low tide levels and times for the next few years. NOAA has all the tide data you could possibly want, and an api to grab it.
Re:Casio F91w at 5KM underwater – watches of espionage
by somewhatoff on Friday January 31, 2025 @09:18AM
(#42887915)
Casio do have a tide watch, which presumably uses that algorithm:
https://www.greatwatches.co.uk/collections/men/products/casi...
Re:Casio F91w at 5KM underwater – watches of espionage
by zardo on Friday January 31, 2025 @11:57AM
(#42889324)
And this approach actually works for inland waters since NOAA predictions are accounting for geographic effects. (e.g. the tide in Seattle is drastically different in timing and magnitude from the Pacific Coast)
Re:Casio F91w at 5KM underwater – watches of espionage
by cbsks on Friday January 31, 2025 @04:56PM
(#42892649)
NOAA publishes the harmonic coefficients for each tide station, so if you hard code those constants into your program you should be able to generate accurate tide predictions. I looked into it a bunch before it started to feel less fun and more like “real work”.
https://tidesandcurrents.noaa.gov/about_harmonic_constituent...
Re:Casio F91w at 5KM underwater – watches of espionage
by pjpweaver on Friday January 31, 2025 @12:46PM
(#42889762)
Did you publish your simple solution anywhere?