arena-py API v1.0.1
arena .scene
Gives access to an ARENA scene. Can create and execute various user-defined functions/tasks.
Parameters
- str host: Hostname of the ARENA webserver (required).
- str realm: Reserved topic fork for future use (optional).
- str namespace: Username of authenticated user or other namespace (automatic).
- str scene: The name of the scene, without namespace (required).
- int network_latency_interval: Interval (in ms) to run network graph latency update. Default value is 10000 (10 secs). Ignore this parameter.
- func on_msg_callback: Called on all MQTT messages received. Default = None.
- func new_obj_callback: Called on object 'create' MQTT messages received. Default = None.
- func user_join_callback: Called on user id 'new' MQTT messages received. Default = None.
- func user_left_callback: Called on user id 'leave' MQTT messages received. Default = None.
- func delete_obj_callback: Called on object 'delete' MQTT messages received. Default = None.
- func end_program_callback: Called on MQTT disconnect. Default = None.
- bool video: If true, request permissions for video conference. Default = False.
- bool debug: If true, print a log of all publish messages from this client. Default = False.
- bool cli_args: If true, require CLI standardized parameters. Default = False.
- bool headless: If true, force limited input device auth flow. Default = False.
Reusable command-line options to give apps flexible options to avoid hard-coding locations.
Publishes an custom event. Could be user or library defined
Publishes an click event
Returns a dictionary for a persisted object.
If object is known by arena-py, return local object, not persisted
Returns a dictionary of persisted objects.
If object is known by arena-py, return our local object, not persisted Silently fails/skip objects without object_id and object_type (except programs) Instantiates generic Object if object_type is given but unknown to arena-py
Returns a dictionary for scene-options. [TODO] wrap the output as a BaseObject
Request list of scene names for logged in user account that user has publish permission for. Returns: list of scenes.
Callback when program stats are updated; publish program object update
Inherited Members
- arena.arena_mqtt.ArenaMQTT
- scene
- device
- auth
- debug
- username
- remote_auth_token
- mqttc_id
- config_url
- config_data
- mqtt_host
- topicParams
- latency_topic
- ignore_topic
- can_publish_obj
- mqttc
- on_msg_callback
- end_program_callback
- event_loop
- mqtt_connect_evt
- subscriptions
- msg_queue
- generate_client_id
- network_latency_update
- run_once
- run_after_interval
- run_async
- run_forever
- run_tasks
- stop_tasks
- sleep
- do_subscribe
- on_subscribe
- on_disconnect
- disconnect
- message_callback_add
- message_callback_remove
- rcv_queue_len
- pub_queue_len
- client_id
Another name for Scene.
Inherited Members
- Scene
- Scene
- telemetry
- connected_evt
- cmd_interpreter
- parse_cli
- exit
- on_connect
- on_message
- on_message_private
- on_publish
- process_message
- callback_wrapper
- generate_custom_event
- generate_click_event
- manipulate_camera
- look_at
- teleport_to_landmark
- all_objects
- add_object
- add_objects
- update_object
- update_objects
- delete_object
- delete_attributes
- run_animations
- create_delayed_task
- get_persisted_obj
- get_persisted_objs
- get_persisted_scene_option
- get_writable_scenes
- get_user_list
- get_rcv_pub_queue_len
- run_info_update
- arena.arena_mqtt.ArenaMQTT
- scene
- device
- auth
- debug
- username
- remote_auth_token
- mqttc_id
- config_url
- config_data
- mqtt_host
- topicParams
- latency_topic
- ignore_topic
- can_publish_obj
- mqttc
- on_msg_callback
- end_program_callback
- event_loop
- mqtt_connect_evt
- subscriptions
- msg_queue
- generate_client_id
- network_latency_update
- run_once
- run_after_interval
- run_async
- run_forever
- run_tasks
- stop_tasks
- sleep
- do_subscribe
- on_subscribe
- on_disconnect
- disconnect
- message_callback_add
- message_callback_remove
- rcv_queue_len
- pub_queue_len
- client_id