redvypr.redvypr¶
- class redvypr.redvypr(*args: Any, **kwargs: Any)¶
This is the redvypr heart. Here devices are added/threads are started and data is interchanged
- __init__(parent=None, config=None, hostname='redvypr', hostinfo_opt={}, nogui=False)¶
Methods
__init__([parent, config, hostname, ...])add_device([devicemodulename, deviceconfig, ...])Function adds a device to redvypr
adddevicepath(folder)Adds a path to the devicepathlist
device_loglevel(device[, loglevel])Returns the loglevel of the device
get_all_subscriptions()- returns:
List containing two lists of equal length, the first with all subscriptions, the second the device address
get_config()Creates a configuration dictionary out of the current state.
get_datastream_info(datastream)Gets additional information to the datastream
get_datastreams([local])- param local:
get_deviceaddresses([local, publishes, ...])Returns a list of redvypr_addresses of all devices.
get_deviceinfo([publishes, subscribes])- param publishes:
get_devices([publishes, subscribes])Returns a list of all devices of this redvypr instance.
get_known_devices()List all known devices that can be loaded by redvypr
parse_configuration([redvypr_config])Parses a dictionary with a configuration, if the file does not exists it will return with false, otherwise self.config will be updated
print_status()process_subscription_changed()Process the subscription changed signals of the devices Returns:
rem_device(device)Removes a device, after the removal a signal for device change is sent :param device: redvypr_device
remdevicepath(folder)start_device_thread(device)Functions starts the device thread that is the core of each device :param device: Device is either a Device class defined in the device module or a dictionary containing the device class (when called from infodevicewidget in redvypr.py)
status()Creates a statusstr of the devices
stop_device_thread(device)Functions stops a thread, to process the data (i.e.
update_status()Attributes
device_path_changeddevice_removeddevice_status_changed_signalhostconfig_changed_signalstatus_update_signal