Mercurial > code > home > repos > homeauto
comparison service/frontDoorLock/front_door_lock.py @ 425:d495d4382a07
comments and console layout
Ignore-this: b45fcf8177a1200c126b80bf9f43aafa
author | drewp@bigasterisk.com |
---|---|
date | Thu, 04 Apr 2019 02:14:48 -0700 |
parents | 67cebf7a14de |
children | bfe555dd0c91 |
comparison
equal
deleted
inserted
replaced
424:ab8cd52552e7 | 425:d495d4382a07 |
---|---|
1 """ | |
2 :frontDoorLock :state :locked/:unlocked | |
3 is the true state of the lock, maintained in this process. | |
4 | |
5 put :frontDoorLock :state ?s to this /output to request a change. | |
6 | |
7 reasoning can infer :frontDoorLock :putState ?s to do that put request. | |
8 """ | |
1 from docopt import docopt | 9 from docopt import docopt |
2 from patchablegraph import PatchableGraph, CycloneGraphHandler, CycloneGraphEventsHandler | 10 from patchablegraph import PatchableGraph, CycloneGraphHandler, CycloneGraphEventsHandler |
3 from rdflib import Namespace, URIRef, Literal, Graph | 11 from rdflib import Namespace, URIRef, Literal, Graph |
4 from rdflib.parser import StringInputSource | 12 from rdflib.parser import StringInputSource |
5 from twisted.internet import reactor, task | 13 from twisted.internet import reactor, task |