Management Commands

class festivalgrid.management.commands.check_config.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Check Festival Grid configuration.'
class festivalgrid.management.commands.festivalgrid_worker.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
broadcast_message(id, title, message, node=None, payload={})[source]
cache_node_templates()[source]
handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'FestivalGrid worker'
influx_client = None
monitor_nodes()[source]
node_last_message = {}
nodes_template = {}
on_connect(client, userdata, flags, result_code)[source]
on_disconnect(mosq, userdata, rc)[source]
on_message(mosq, userdata, msg)[source]
poll_devices()[source]
schedule_timers()[source]
timer_action(timer)[source]
festivalgrid.management.commands.festivalgrid_worker.broadcast_gotify_message(title, message, node, payload)[source]
class festivalgrid.management.commands.provision_devices.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Provision devices'
class festivalgrid.management.commands.update_devices.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]
add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Scan for devices'