5 ms·
Where did you get the data for the tides?
by noja 2y ago
Where did you get the data for the tides?
- cbsks 2y agoThere’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. https://tidesandcurrents.noaa.gov/tide_predictions.html https://tidesandcurrents.noaa.gov/tide_predictions.html https://api.tidesandcurrents.noaa.gov/api/prod/ https://api.tidesandcurrents.noaa.gov/api/prod/
- somewhatoff 2y agoCasio do have a tide watch, which presumably uses that algorithm: https://www.greatwatches.co.uk/collections/men/products/casio-w-753-2av-blue-moon-and-tide-graph-dual-time-4-alarms-watch https://www.greatwatches.co.uk/collections/men/products/casi...
- zardo 2y agoAnd 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)
- cbsks 2y agoNOAA 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_constituents.html https://tidesandcurrents.noaa.gov/about_harmonic_constituent...
- pjpweaver 2y agoDid you publish your simple solution anywhere?