Thermometer_Server(name, description, thermometer, history)¶
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.
Extract values from temperature history
granularity – minimum gap between two samples (in seconds or datetime.timedelta)
duration – time span from now in the past (in seconds or datetime.timedelta)
Initiate a background temperature reading and return immediately. When reading completes, the temperature is added to the history with timestamp.