Most active commenters
  • jakear(4)

←back to thread

1901 points l2silver | 13 comments | | HN request time: 0.904s | source | bottom

Maybe you've created your own AR program for wearables that shows the definition of a word when you highlight it IRL, or you've built a personal calendar app for your family to display on a monitor in the kitchen. Whatever it is, I'd love to hear it.
1. jakear ◴[] No.35730261[source]
A website to see a map of the world's tides, and bidirectional predictions for individual stations (edit: worldwide too, forgot I added that). The UI/UX is... archaic, but that's just how I wanted it. It works fully offline. https://solunar.pages.dev

Most fun part was transcribing 70+ year old NOAA tide calculation mathematic/astronomic/hydrologic research papers into modern TypeScript. Approach is semi-documented here: https://github.com/JacksonKearl/solunar

replies(7): >>35735907 #>>35737713 #>>35738117 #>>35738142 #>>35738556 #>>35741554 #>>35753516 #
2. geoffreypoirier ◴[] No.35735907[source]
That's just cool.
3. itake ◴[] No.35737713[source]
that is cool, but I'm curious when the highest tide vs lowest tide of the year is.
replies(1): >>35741046 #
4. wxce ◴[] No.35738117[source]
That is really cool!
5. steve_adams_86 ◴[] No.35738142[source]
I’ve wanted to do this with Canadian data for years! My wife works for the organization which tracks our national tide data and builds our prediction models. It’s extremely fascinating stuff.

I’m looking forward to digging into your work. I haven’t really known where to start, but I can probably get a lot of inspiration here. Nice work!

replies(2): >>35741200 #>>35764368 #
6. RheingoldRiver ◴[] No.35738556[source]
I use MouseGestures so I often get fun surprises on projects like this when I right-click and then drag my cursor to close the tab. Yours might have been the best one yet!
7. jakear ◴[] No.35741046[source]
It will change station to station, but if you open the station details page, adjust X Range to something like 28/180 days, then tune low pass to filter out all the high frequency (daily) fluctuations, you might get your answer. Some stations don't have strong Solar contributions, and won't change much on an annual basis, you can enable the Harmonics toggle and see if any show up on the outside in yellow (disable Sun).

I did consider adding a "max finding" mode of some sort, but that's never really been my use case.

8. jakear ◴[] No.35741200[source]
Cool! Would love to have some extra datapoints. This is what the raw data I use looks like https://tidesandcurrents.noaa.gov/harcon.html?id=9410580#
9. ggforpp ◴[] No.35741554[source]
It's a very nice, UI. The "viewing port" concept is very nice. A slider for timescale in the viewing window would be great! Also would be great to see worldwide cities tides :) edit: using the x-range view is an interesting time slider - I found the options toggle
10. tlamponi ◴[] No.35753516[source]
Looks nice, would love something like that for Europe.
replies(1): >>35755430 #
11. jakear ◴[] No.35755430[source]
Unfortunately while US's NOAA provides all the data needed free of charge (with an API to boot), the UK government's equivalent charges an MSRP of £38.30 and requires finding and contacting an authorized distributor, though the data does seem to be more worldwide. I haven't seen other offerings.

https://www.admiralty.co.uk/publications/publications-and-re...

12. andrewirwin ◴[] No.35764368[source]
If you are OK with R, there is some good code here that makes predictions from harmonics: https://dankelley.github.io/oce/reference/tidedata.html

Of course, you can download the predictions from DFO too, e.g., https://api-iwls.dfo-mpo.gc.ca/swagger-ui/index.html

replies(1): >>35765569 #
13. steve_adams_86 ◴[] No.35765569{3}[source]
Hey, thanks! I didn’t realize they have a prediction API. I assumed I’d need to produce a lot of this data myself from a giant csv or similar. This is awesome!