d3367af3ddb9f06a72ca9cec9b797c902bc8b04f
[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 Notes:
10   * subscription to events is cummulativ
11   * the "sample" command instructs the daemon to immediately get new sensor data of device $SAMPLEDEV
12   * if listeners for sensors (temp | photo) exist, the daemon should periodically get and distribute sample data without waiting for a "sample" command
13
14 == Replys of daemon ==
15
16 CMDREPLY:= OK | Error: $ERRORSTR
17 ERRORSTR:=no connection | unknown device | ....
18
19 == Listener Data from Daemon ==
20 (Temperature Data in Degrees Celsius)
21
22 LISTENERDATA:=temp[0-9]+: [0-9]{1,3}\.[0-9]{2} |  photo[0-9]+: [0-9]{1,3} | movement | button[0-9]