changeset 3:89d47e203fc2

redo the plan
author drewp@bigasterisk.com
date Sun, 27 Aug 2023 13:18:06 -0700
parents 76cec592435c
children d0fa3638de2a
files front_door_lock.py
diffstat 1 files changed, 8 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/front_door_lock.py	Sun Aug 27 13:17:50 2023 -0700
+++ b/front_door_lock.py	Sun Aug 27 13:18:06 2023 -0700
@@ -1,20 +1,16 @@
 """
-When a client requests
-  PUT /output
-    body room:unlocked
-    head x-foaf-agent: <uri>
-
-Then send
+Output mqtt messages:
   frontdoorlock/switch/strike/command 'ON'
-
-Then after a time send
   frontdoorlock/switch/strike/command 'OFF'
 
-Also report on
-  frontdoorlock/status 'online'
---
+Simple command mode:
+  PUT /api/simple/unlock
+  PUT /api/simple/lock
+  PUT /api/simple/stayUnlocked
 
-Plus, for reliability, a simpler web control ui.
+Planned rdf mode:
+  Watch a collector graph that includes the graph from the fingerprint service.
+  When that graph contains 'unlockRequest' and an agent, we do our unlock command.
 """
 
 import asyncio