The Weather Stations module manages physical weather monitoring stations that track water levels. Each station can have an associated image for visual monitoring.
- Purpose: Represents a physical weather monitoring station
- Fields:
name
: Station namelatitude
: Geographic latitudelongitude
: Geographic longitudeimage
: Optional image of the stationcurr_waterlevel
: Current water level reading
- Purpose: Historical water level data for each station
- Fields:
station
: Foreign key to WeatherStationwaterlevel
: Water level measurementtimestamp
: Time of measurement
Lists all weather stations with their current water levels
Retrieves detailed information for a specific station
Gets historical water level data for all stations
Gets historical water level data for a specific station
- Weather stations report water level readings
- Data is stored in Waterlevel_Data model
- Current water level is updated in WeatherStation model
- API endpoints provide access to current and historical data
- Station images are stored in 'weatherstation_images/' directory
- Images help in visual verification of water levels
- Supported formats: JPEG, PNG
- Maximum file size: 5MB