Added Functional Audio Alert Node

This commit is contained in:
2025-04-10 21:11:30 -06:00
parent 98e36ad9f0
commit 275d9f0cb3
4 changed files with 335 additions and 11 deletions

View File

@ -65,7 +65,7 @@ def provision_agent():
# ----------------------------------------------
# Canvas Image Feed Viewer for Screenshot Agents
# ----------------------------------------------
@app.route("/api/agent/<agent_id>/screenshot")
@app.route("/api/agent/<agent_id>/screenshot/live")
def screenshot_viewer(agent_id):
if agent_configurations.get(agent_id, {}).get("task") != "screenshot":
return "<h1>Agent not provisioned as Screenshot Collector</h1>", 400
@ -173,8 +173,6 @@ def screenshot_viewer(agent_id):
</html>
"""
@app.route("/api/agent/<agent_id>/screenshot/raw") # Fallback Non-Live Screenshot Preview Code for Legacy Purposes
def screenshot_raw(agent_id):
entry = latest_images.get(agent_id)