D-Bus Objects

class openheating.dbus.thermometer.Thermometer_Server(name, description, thermometer, history)[source]

D-Bus object representing various aspects of a thermometer.

  • Thermometer: Current temperature, thermometer name and description.

  • Temperature history: keeps temperature values from the past, accessible for, for example, histogram generation, or gradient calculation.

  • Polling: a poll initiates a temperature read in the background; the call returns immediately. Reason: Onewire temperature reads take over a second, and the poller sure has other things to do in the meantime.

distill(granularity, duration)[source]

Extract values from temperature history

Parameters
  • granularity – minimum gap between two samples (in seconds or datetime.timedelta)

  • duration – time span from now in the past (in seconds or datetime.timedelta)

error

Signal.

get_description()[source]

Thermometer description

get_name()[source]

Thermometer name

get_temperature()[source]

Current temperature

poll(timestamp)[source]

Initiate a background temperature reading and return immediately. When reading completes, the temperature is added to the history with timestamp.

class openheating.dbus.thermometer_center.ThermometerCenter_Server(objects)[source]

D-Bus object that … well, sort of … maintains thermometer objects.

all_names()[source]
Returns

list strings; names of maintained thermometers.

error

Signal.

poll(timestamp)[source]

Polls all maintained thermometers.