Smogonet
documentation
Models
There are models listed below:
- Station
- Type
- Measurement
Station
Station supports few methods. cls means that method is static, self means non-static method. All methods are asynchronous.
def __init__(self, api_station_id, city, longitude, latitude, name, station_id=None):
def get(cls, station_id):
def save(self):
def get_all(cls):
Type
def __init__(self, shortname, unit, norm, longname, description, type_id=None):
def get(cls, type_id):
def save(self):
def get_all(cls):
Measurement
def __init__(self, station, pollution_type, value, time, measurement_id=None):
def get(cls, measurement_id):
def save(self):
def get_last(cls, station, pollution_type):