stationdata module¶
This module provides interface for extracting station data from JSON objects fetched from the Internet and updating their water levels
-
stationdata.
build_station_list
(use_cache=True)¶ Build and return a list of all river level monitoring stations based on data fetched from the Environment agency. Each station is represented as a MonitoringStation object.
The available data for some station is incomplete or not available.
Parameters: use_cache (bool, optional) – Whether to use cached data Returns: List of stations (MonitoringStation Object) Return type: list
-
stationdata.
update_water_levels
(stations)¶ Attach level data contained in measure_data to stations
Parameters: stations (list) – List of stations (MonitoringStation Object)