climateapp script¶
climateapp¶
-
class
climateapp.CommandlineAppDisplay(app)[source]¶ Bases:
object-
aircondition_state¶
-
broker_connectionstatus¶
-
enginespeed¶
-
indoortemperature¶
-
resource_online¶
-
vehiclespeed¶
-
-
class
climateapp.GraphicalAppDisplay(app)[source]¶ Bases:
climateapp.CommandlineAppDisplay-
DISPLAY_TITLE= 'Climate app'¶
-
TEMPLATE_AIRCONDITION= 'Air condition: {}'¶
-
TEMPLATE_CONNECTION= 'Connection status: {}'¶
-
TEMPLATE_ENGINESPEED= 'Engine speed: {:.0f} RPM'¶
-
TEMPLATE_TEMPERATURE= 'In-car temperature: {:.1f} deg C'¶
-
TEMPLATE_VEHICLESPEED= 'Vehicle speed: {:.1f} km/h'¶
-
-
climateapp.on_broker_connectionstatus_info(app, broker_connected)[source]¶ Callback for use when the broker connection status info is available.