Mercurial > code > home > repos > homeauto
diff service/frontDoorLock/front_door_lock.py @ 1228:a72e9245cc72
comments and console layout
Ignore-this: b45fcf8177a1200c126b80bf9f43aafa
darcs-hash:b8e98c1f37102c6400ed508d09f81900e33b8c75
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 04 Apr 2019 02:14:48 -0700 |
parents | c87e5c8eb8ab |
children | bfe555dd0c91 |
line wrap: on
line diff
--- 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