Skip to content

aseemTRANS/rain_weather_alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 

Repository files navigation

Rain Radar Map (Leaflet + RainViewer)

A lightweight, static web app that visualises live rain radar around the world using RainViewer tiles on a dark basemap. Built with vanilla HTML/CSS/JS and Leaflet. No build step, deployable with GitHub Pages.

Live demo: https://aseemtrans.github.io/rain_weather_alert/weather

Features

  • 🌧️ Live radar from RainViewer (past + nowcast frames)
  • ▶️ Timeline controls: play/pause, step, slider
  • 🕒 Timestamp of the displayed frame (local time)
  • 🗺️ Basemap: Esri World Dark Gray (with optional OSM toggle)
  • 📏 Legend for radar intensity + scale bar
  • ♿ Accessible labels and ARIA live regions
  • ⚠️ Graceful error handling (network/CORS)

Tech stack

How it works (RainViewer timeline)

  • On load, the app fetches: https://api.rainviewer.com/public/weather-maps.json

  • It concatenates radar.past + radar.nowcast frames and builds a single timeline.

  • Each frame supplies a {host} and {path} used to construct a Leaflet tile URL: {host}{path}/{tileSize}/{z}/{x}/{y}/{colorScheme}/{smooth}_{brightness}.png

  • The app updates a single L.tileLayer via setUrl(...) when stepping through frames.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors