projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added key value storage
[svn42.git]
/
powersensordaemon
/
COMMANDS.txt
diff --git
a/powersensordaemon/COMMANDS.txt
b/powersensordaemon/COMMANDS.txt
index
26d6ee0
..
5419633
100644
(file)
--- a/
powersensordaemon/COMMANDS.txt
+++ b/
powersensordaemon/COMMANDS.txt
@@
-1,19
+1,21
@@
== Commands accepted by daemon ==
== Commands accepted by daemon ==
-COMMAND:= power $POWERID (on|off) | listen $EVENT | sample $SAMPLEDEV
+COMMAND:= power (on|off) $POWERID | listen $EVENT | sample $SAMPLEDEV | log <logtext>
POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee
POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee
-EVENT:= all | temp | photo | movement | button
+EVENT:= all | request | temp | photo | movement | button | none
SAMPLEDEV:=temp[0-9]+ | photo[0-9]+
SAMPLEDEV:=temp[0-9]+ | photo[0-9]+
-(subscription to events is cummulativ)
+Notes:
+ * subscription to events is cummulativ
+ * the "sample" command instructs the daemon to immediately get new sensor data of device $SAMPLEDEV
== Replys of daemon ==
== Replys of daemon ==
-CMDREPLY:= ok | error $ERRORSTR
+CMDREPLY:= OK | Error: $ERRORSTR
ERRORSTR:=no connection | unknown device | ....
== Listener Data from Daemon ==
(Temperature Data in Degrees Celsius)
ERRORSTR:=no connection | unknown device | ....
== Listener Data from Daemon ==
(Temperature Data in Degrees Celsius)
-LISTENERDATA:=temp[0-9]+: [0-9]{1,3}\.[0-9]{2} | photo[0-9]+: [0-9]{1,3} | movement | button[0-9]
\ No newline at end of file
+LISTENERDATA:=temp[0-9]+: [0-9]{1,3}\.[0-9]{2} | photo[0-9]+: [0-9]{1,3} | movement | button[0-9]