arena-py API v1.3.0
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 (optional).
- func on_msg_callback: Called on all MQTT messages received (optional).
- func new_obj_callback: Called on object 'create' MQTT messages received (optional).
- func user_join_callback: Called on user id 'new' MQTT messages received (optional).
- func user_left_callback: Called on user id 'leave' MQTT messages received (optional).
- func delete_obj_callback: Called on object 'delete' MQTT messages received (optional).
- func end_program_callback: Called on MQTT disconnect (optional).
- func on_chat_callback: Called on chat messages received (optional).
- bool video: If true, request permissions for video conference (optional).
- bool debug: If true, print a log of all publish messages from this client (optional).
- bool cli_args: If true, require CLI standardized parameters (optional).
- bool headless: If true, force limited input device auth flow (optional).
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.
Request list of scene names for logged in user account that user has publish permission for.
:returns list: list of scenes.
Callback when program stats are updated; publish program object update.
Upload a file to the filestore using the user's Google account.
Parameters
- str src_file_path: Local path to the file to upload (required).
- str dest_file_path: Destination file path, can include dirs. Defaults to filename from src_file_path (optional).
Returns
Url address of successful file upload location, or None if failed.
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
- get_private_objects
- reset_private_objects
- add_object
- add_objects
- update_object
- update_objects
- delete_object
- delete_user_objects
- delete_program
- 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
- upload_store_file
- 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