Domain Objects

The modules in tempoiq.protocol contain definitions for all the domain objects in the TempoIQ API. Complete descriptions of these objects can be found in the general (non-Python-specific) API reference.

class tempoiq.protocol.device.Device(key, name='', attributes={}, sensors=[])[source]

Representation of a Device in TempoIQ.

Parameters:
  • key (string) –
  • name (string) –
  • attributes (dict) –
  • sensors (list) –
class tempoiq.protocol.sensor.Sensor(key, name='', attributes={})[source]

Representation of a Sensor in TempoIQ.

Parameters:
  • key (string) –
  • name (string) –
  • attributes (dict) –
class tempoiq.protocol.point.Point(timestamp, value)[source]
class tempoiq.protocol.row.Row(row_json)[source]

Data from one or more sensors at a single timestamp. Returned when reading sensor data.

Example values dict of a row with a single sensor, temperature, on a single device, test1

{'test1': {'temperature': 500.0} }
Variables:
  • timestamp – DateTime of the sensor data
  • values – dict mapping device key to a dict of sensor keys to values