https://github.com/confy/go-swim
Tide Notifications
https://github.com/confy/go-swim
eventbridge go lambda terraform tides
Last synced: 2 months ago
JSON representation
Tide Notifications
- Host: GitHub
- URL: https://github.com/confy/go-swim
- Owner: confy
- License: mit
- Created: 2024-03-28T23:11:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-09T23:26:13.000Z (about 1 year ago)
- Last Synced: 2024-04-10T01:14:55.644Z (about 1 year ago)
- Topics: eventbridge, go, lambda, terraform, tides
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GO SWIM!
Go swim is a simple program that checks tide predictions before sending alerts with the best time to swim.

## Why?
I go for a swim in the ocean everyday. For a while I wouldn't check the tides and would sometimes end up taking a pretty terrible swim at a very shallow beach. Lately I've been checking the tides manually, but I thought it would be fun to automate the process.## How?
The program is run in a Lambda function, triggered every morning by an EventBridge scheduler. It reaches out to the [Canadian Hydrographic Service](https://tides.gc.ca/en/web-services-offered-canadian-hydrographic-service) API to get local tide predictions for the day. It then filters results into windows of time where the tide is above 2.25M. Finally, it sends a notification to my phone with [ntfy.sh](https://ntfy.sh/).Deployment is done via terraform, and the code is written in Go. ie *GO* Swim!