datalogd.plugins.sensorpaneldatafilter module

class datalogd.plugins.sensorpaneldatafilter.LogWidget(parent=None)[source]

Bases: SensorWidgetBase

TOOL_TIP = 'A widget to display raw sensor data in text form'
XML = "<ui language='c++'><widget class='LogWidget' name='logWidget'></widget></ui>"
clear()[source]
update_data(data={})[source]
class datalogd.plugins.sensorpaneldatafilter.SensorPanel(*args: Any, **kwargs: Any)[source]

Bases: QWidget

closeEvent(event)[source]
data_input_queue

Queue object for receiving data through.

data_output_queue

Queue object for sending data through.

panel

The loaded UI panel widget which is placed inside this SensorPanel.

send(data)[source]

Receive data from subwidgets and place onto our output queue for SensorPanelDataFilter to handle.

showEvent(event)[source]
sink

Sink data sent from subwidgets through our own send() method

timer

QTimer to periodically check for data on the Queue.

update_sensorwidget_mapping()[source]

Rebuild the map of sensor indentifiers to SensorWidget objects.

This should be run any time a SensorWidget is dynamically added or removed from the panel.

class datalogd.plugins.sensorpaneldatafilter.SensorPanelDataFilter(sinks=[], **kwargs)[source]

Bases: DataFilter

A panel of SensorWidgets to display sensor data.

app_process

Process to run the SensorDataPanel QApplication.

close()[source]

Signal the Qt application to close when the system is shutting down.

panel_input_queue

A Queue for placing data to be sent to the SensorDataPanel process.

panel_output_queue

A Queue for the SensorDataPanel process to place data on.

receive(data)[source]

Accept the provided data and pass it to the SensorPanel to display.

class datalogd.plugins.sensorpaneldatafilter.SensorWidget(parent=None)[source]

Bases: SensorWidgetBase

BLACK = '#000000'
GREEN = '#26a269'
GREEN_LIGHT = '#8ff0a4'
GREY = '#241f31'
GREY_LIGHT = '#77767b'
ORANGE = '#e66100'
ORANGE_LIGHT = '#ffbe6f'
RED = '#c01c28'
RED_LIGHT = '#f66151'
TOOL_TIP = 'A widget to display sensor data'
XML = "<ui language='c++'><widget class='SensorWidget' name='sensorWidget'></widget></ui>"
YELLOW = '#e5a50a'
YELLOW_LIGHT = '#f9f06b'
icon(icon='')
identifier(id='')
name(name='')
update_data(data={})[source]
class datalogd.plugins.sensorpaneldatafilter.SensorWidgetBase(parent=None)[source]

Bases: object

Base class for all SensorPanel widgets describing basic functionality.

identifier(id='')
update_data(data={})[source]
class datalogd.plugins.sensorpaneldatafilter.WatchdogWidget(parent=None)[source]

Bases: SensorWidgetBase

TOOL_TIP = 'A widget to display sensor watchdog status and history'
XML = "<ui language='c++'><widget class='WatchdogWidget' name='watchdogWidget'></widget></ui>"
identifier(id='')
name(name='')
update_data(data={})[source]
datalogd.plugins.sensorpaneldatafilter.build_sensorwidget_tooltip(data)[source]
datalogd.plugins.sensorpaneldatafilter.format_data(x, html=False, newline=False)[source]