# HG changeset patch # User drewp@bigasterisk.com # Date 1554369288 25200 # Node ID d495d4382a07fa7f9d896a40b9aa2a20ca08f2e1 # Parent ab8cd52552e764932972020e686afaa32865c084 comments and console layout Ignore-this: b45fcf8177a1200c126b80bf9f43aafa diff -r ab8cd52552e7 -r d495d4382a07 service/frontDoorLock/front_door_lock.py --- a/service/frontDoorLock/front_door_lock.py Sat Mar 30 23:56:08 2019 -0700 +++ b/service/frontDoorLock/front_door_lock.py Thu Apr 04 02:14:48 2019 -0700 @@ -1,3 +1,11 @@ +""" +:frontDoorLock :state :locked/:unlocked +is the true state of the lock, maintained in this process. + +put :frontDoorLock :state ?s to this /output to request a change. + +reasoning can infer :frontDoorLock :putState ?s to do that put request. +""" from docopt import docopt from patchablegraph import PatchableGraph, CycloneGraphHandler, CycloneGraphEventsHandler from rdflib import Namespace, URIRef, Literal, Graph diff -r ab8cd52552e7 -r d495d4382a07 service/frontDoorLock/index.html --- a/service/frontDoorLock/index.html Sat Mar 30 23:56:08 2019 -0700 +++ b/service/frontDoorLock/index.html Thu Apr 04 02:14:48 2019 -0700 @@ -3,6 +3,7 @@ front door lock + @@ -42,13 +43,17 @@ min-height: 40px; } div#form { - margin: 20px; + margin: 2px; background: #dff5e5; padding: 10px; - line-height: 40px; + line-height: 30px; text-align: center; border: 2px groove white; } + .invis-true { + visibility: hidden; + } +