woob.capabilities.gauge
¶
- class Gauge(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Gauge class.
- class GaugeSensor(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
GaugeSensor class.
- Variables:
url – (
str
) urlname – (
str
) Name of the sensorunit – (
str
) Unit of valuesforecast – (
str
) Forecastlocation – (
PostalAddress
) Address of the sensorgeo – (
GeoCoordinates
) Geo address of the sensorlastvalue – (
GaugeMeasure
) Last valuehistory – (
list
) Value historygaugeid – (
str
) Id of the gauge
- property address¶
- property latitude¶
- property longitude¶
- class GaugeMeasure(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Measure of a gauge sensor.
- class CapGauge[source]¶
Bases:
Capability
- iter_sensors(id, pattern=None)[source]¶
Iter instrument of a gauge.
- Param:
ID of the gauge
- Parameters:
pattern (str) – if specified, used to search sensors. (default:
None
)- Return type:
iter[
GaugeSensor
]
- iter_gauge_history(id)[source]¶
Get history of a gauge sensor.
- Parameters:
id (str) – ID of the gauge sensor
- Return type:
iter[
GaugeMeasure
]