How unclecamswaterplans/blesstherains works
BlessTheRains is a Next.js app for exploring historical Australian daily rainfall from SILO. The main workflow loads station metadata, lets a user choose a station on the map or enter its number, fetches a selected month or year of rainfall through an app route, and displays an intensity-coloured chart. A separate station directory supports search and state filtering; About and Contact are additional pages. The map also requests OpenStreetMap tiles. The supplied excerpts show these core routes and components; unsampled page details are represented only as documented in the README.
Main entry points: Header.tsx Navigation header · app/page.tsx Home route · HomeClient.tsx Map and chart panel · stations/page.tsx Stations route
Components 17
User experience
- Home route
app/page.tsx - Map and chart panel
app/components/HomeClient.tsx - Station map
app/components/StationsMap.tsx
Station directory
- Stations route
app/stations/page.tsx - Searchable directory
app/components/StationsTable.tsx - Stations API
app/api/stations/route.ts - Station fetch and parse
app/lib/stations.ts
Rainfall exploration
- Rainfall controls and chart
app/components/PlotlyChart.tsx - Rainfall API
app/api/rainfall/route.ts
App shell
- Navigation header
app/components/Header.tsx - Footer
app/components/Footer.tsx - Root layout
app/layout.tsx - About page
app/about/page.tsx - Contact page
app/contact/page.tsx
Other components
- Visitor
- OpenStreetMap tiles
- SILO climate data
Connections 20
- Visitor → Home route: opens
README.md - Home route → Station fetch and parse: loads stations
app/page.tsx - Home route → Map and chart panel: renders
app/page.tsx - Map and chart panel → Station map: renders
app/components/HomeClient.tsx - Map and chart panel → Rainfall controls and chart: renders
app/components/HomeClient.tsx - Station map → Map and chart panel: selects station
app/components/HomeClient.tsx - Station map → OpenStreetMap tiles: loads tiles
app/components/StationsMap.tsx - Visitor → Stations route: opens
README.md - Stations route → Station fetch and parse: loads stations
app/stations/page.tsx - Stations route → Searchable directory: renders
app/stations/page.tsx - Stations API → Station fetch and parse: calls
app/api/stations/route.ts - Station fetch and parse → SILO climate data: fetches metadata
app/lib/stations.ts - Rainfall controls and chart → Rainfall API: requests rainfall
app/components/PlotlyChart.tsx - Rainfall API → SILO climate data: fetches records
app/api/rainfall/route.ts - Root layout → Navigation header: renders
app/layout.tsx - Root layout → Footer: renders
app/layout.tsx - Navigation header → Home route: links to
app/components/Header.tsx - Navigation header → Stations route: links to
app/components/Header.tsx - Navigation header → About page: links to
app/components/Header.tsx - Navigation header → Contact page: links to
app/components/Header.tsx