weboob.capabilities.gauge

class weboob.capabilities.gauge.Gauge(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

Gauge class.
Variables:
  • name – (unicode) Name of gauge
  • city – (unicode) City of the gauge
  • object – (unicode) What is evaluate
  • sensors – (list) List of sensors on the gauge
class weboob.capabilities.gauge.GaugeSensor(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

GaugeSensor class.
Variables:
  • name – (unicode) Name of the sensor
  • unit – (unicode) Unit of values
  • forecast – (unicode) Forecast
  • address – (unicode) Address
  • lastvalue – (GaugeMeasure) Last value
  • history – (list) Value history
  • gaugeid – (unicode) Id of the gauge
class weboob.capabilities.gauge.GaugeMeasure(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

Measure of a gauge sensor.
Variables:
  • level – (float) Level of measure
  • date – (date, datetime) Date of measure
  • alarm – (unicode) Alarm level
class weboob.capabilities.gauge.CapGauge

Bases: weboob.capabilities.base.Capability

get_last_measure(id)

Get last measures of a sensor.

Parameters:id (str) – ID of the sensor.
Return type:GaugeMeasure
iter_gauge_history(id)

Get history of a gauge sensor.

Parameters:id (str) – ID of the gauge sensor
Return type:iter[GaugeMeasure]
iter_gauges(pattern=None)

Iter gauges.

Parameters:pattern (str) – if specified, used to search gauges.
Return type:iter[Gauge]
iter_sensors(id, pattern=None)

Iter instrument of a gauge.

Param:ID of the gauge
Parameters:pattern (str) – if specified, used to search sensors.
Return type:iter[GaugeSensor]
exception weboob.capabilities.gauge.SensorNotFound

Bases: weboob.capabilities.base.UserError

Not found a sensor