Skip to content

BlankRiser/mausam

Repository files navigation

Mausam

Mausam is a weather application that displays weather data on a map. The application uses the Synoptic Data API to fetch weather data and Mapbox for the map.

Getting Started

  • Get api keys from Mapbox and Synoptic Data.
  • Rename .env.example to .env and add the api keys.
  • Run npm install to install the dependencies.
  • Run npm run dev to start the development server.

Built With

  • React
  • Tailwind
  • React-map-gl

Implementation Notes

When getting a map instance, use the id attribute provided to <Map/> component from react-map-gl. Dont forget to wrap the parent with <MapProvider/> component.

// map is the "id" attribute of <Map/>
// https://visgl.github.io/react-map-gl/docs/api-reference/use-map
const { mapInstanceA, mapInstanceB } = useMap();

//...

return (
    <Map id="mapInstanceA" />
    <Map id="mapInstanceB" />
)

All the dates that are not unit timestamp follow ISO 8601 format.

Creentials Needed

Dev Note

Test Stations

About

Visualize weather data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published