26d6ee096ec44ff3ceb0443b94bfd0af1c69350e
[svn42.git] / powersensordaemon / COMMANDS.txt
1
2 == Commands accepted by daemon ==
3
4 COMMAND:= power $POWERID (on|off) |  listen $EVENT | sample $SAMPLEDEV
5 POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee
6 EVENT:= all | temp | photo | movement | button
7 SAMPLEDEV:=temp[0-9]+ | photo[0-9]+
8
9 (subscription to events is cummulativ)
10
11 == Replys of daemon ==
12
13 CMDREPLY:= ok | error $ERRORSTR
14 ERRORSTR:=no connection | unknown device | ....
15
16 == Listener Data from Daemon ==
17 (Temperature Data in Degrees Celsius)
18
19 LISTENERDATA:=temp[0-9]+: [0-9]{1,3}\.[0-9]{2} |  photo[0-9]+: [0-9]{1,3} | movement | button[0-9]