https://github.com/cletqui/tide
Dive into Tide Clock: Catch the Wave of French Harbor Tides! ๐๐ฐ๏ธ
https://github.com/cletqui/tide
analog-clock clock cloudflare cloudflare-pages github-pages tide
Last synced: 26 days ago
JSON representation
Dive into Tide Clock: Catch the Wave of French Harbor Tides! ๐๐ฐ๏ธ
- Host: GitHub
- URL: https://github.com/cletqui/tide
- Owner: cletqui
- License: mit
- Created: 2023-11-03T18:42:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-20T15:13:52.000Z (over 2 years ago)
- Last Synced: 2025-02-06T05:42:38.018Z (over 1 year ago)
- Topics: analog-clock, clock, cloudflare, cloudflare-pages, github-pages, tide
- Language: JavaScript
- Homepage: https://tide.pages.dev/
- Size: 35.2 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tide Clock
A minimalist tide clock for French harbours. The clock hand shows where you are in the current tidal cycle โ no numbers needed.
[](https://github.com/cletqui/tide/actions/workflows/pages/pages-build-deployment)
**Live:** [cletqui.github.io/tide](https://cletqui.github.io/tide) ยท [tide.pages.dev](https://tide.pages.dev)
## How it works
The hand rotates between high tide (12 o'clock) and low tide (6 o'clock), showing elapsed time within the current tidal cycle. The info panel (toggle with โน๏ธ) reveals exact times and tidal coefficient.
Tide data is fetched from [data.cybai.re](https://github.com/cletqui/data) โ a personal Cloudflare Worker that scrapes [maree.info](https://maree.info) and caches results for 12 hours.
## Features
- Analog clock hand representing the tidal cycle
- Search any French harbour by name
- Dropdown suggestions for ambiguous searches
- PM / BM tide times and tidal coefficient (morte-eau โ vive-eau exceptionnelle)
- Dark / light theme (persisted across sessions)
- Fullscreen mode
- Responsive layout
## Project structure
```
tide/
โโโ css/style.css
โโโ icons/
โโโ js/script.js
โโโ index.html
```
## API
Tide data comes from `GET https://data.cybai.re/tide?id={harbourId}`.
Response includes `last_tide`, `next_tide`, `forecast` (full week), `coeff_label`, and a `cached` flag.
## License
MIT โ see [LICENSE](LICENSE).