to github
[svn42.git] / powersensordaemon / COMMANDS.txt
1
2 == Commands accepted by daemon ==
3
4 COMMAND:= power (on|off) $POWERID | listen $EVENT | sample $SAMPLEDEV | log <logtext>
5 POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee
6 EVENT:= all | request | sensor | movement | button | none
7 SAMPLEDEV:=temp[0-9]+ | photo[0-9]+ | <sensor???>[0-9]+
8
9 Notes:
10   * subscription to events is cummulativ
11   * the "sample" command instructs the daemon to immediately get new sensor data of device $SAMPLEDEV
12
13 == Replys of daemon ==
14
15 CMDREPLY:= OK | Error: $ERRORSTR
16 ERRORSTR:=no connection | unknown device | ....
17
18 == Listener Data from Daemon ==
19 (Temperature Data in Degrees Celsius)
20
21 LISTENERDATA:=temp[0-9]+: [0-9]{1,3}\.[0-9]{2} |  photo[0-9]+: [0-9]{1,3} | <sensor???>[0-9]+: <data> | movement | button[0-9]