Clock

DateTime

This plugin provides the Date and Time

This plugin is not loaded by default, so to use it you will first need to add it to your VCPs YAML config file.

YAML configuration:

data_plugins:
  clock:
    provider: qtpyvcp.plugins.clock:Clock
class qtpyvcp.plugins.clock.Clock[source]

Clock Plugin

time

The current time, updated every second.

Parameters:format (str) – Format spec. Defaults to %I:%M:%S %p. See http://strftime.org for supported formats.
Returns:MM:SS AM
Return type:The current time as a formatted string. Default HH

Channel syntax:

clock:time
clock:time?string
clock:time?string&format=%S
date

The current date, updated every second.

Parameters:format (str) – Format spec. Defaults to %m/%d/%Y. See http://strftime.org for supported formats.
Returns:The current date as a formatted string. Default MM/DD/YYYY

Channel syntax:

clock:date
clock:date?string
clock:date?string&format=%Y
initialise()[source]

Initialize the plugin.

This method is called after the main event loop has started. Any timers or threads used by the plugin should be started here.

This method should set self._initialized to true if successfully.