Skip to content

cletqui/tide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tide Clock

A minimalist tide clock for French harbours. The clock hand shows where you are in the current tidal cycle β€” no numbers needed.

pages-build-deployment

Live: cletqui.github.io/tide Β· 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 β€” a personal Cloudflare Worker that scrapes 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.

About

French harbour tide forecasts 🌊

Topics

Resources

License

Stars

Watchers

Forks

Contributors