X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2FCOMMANDS.txt;h=a0837f5e75070b7e9edc05c927321c4bc4055677;hb=8d8a2269a1d6e35085fb73f39dc2488216961f3f;hp=d3367af3ddb9f06a72ca9cec9b797c902bc8b04f;hpb=ed597ef0626e65e4a996541e80886c425e24ea96;p=svn42.git diff --git a/powersensordaemon/COMMANDS.txt b/powersensordaemon/COMMANDS.txt index d3367af..a0837f5 100644 --- a/powersensordaemon/COMMANDS.txt +++ b/powersensordaemon/COMMANDS.txt @@ -1,15 +1,14 @@ == Commands accepted by daemon == -COMMAND:= power $POWERID (on|off) | listen $EVENT | sample $SAMPLEDEV +COMMAND:= power (on|off) $POWERID | listen $EVENT | sample $SAMPLEDEV | log POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee -EVENT:= all | temp | photo | movement | button -SAMPLEDEV:=temp[0-9]+ | photo[0-9]+ +EVENT:= all | request | sensor | movement | button | none +SAMPLEDEV:=temp[0-9]+ | photo[0-9]+ | [0-9]+ Notes: * subscription to events is cummulativ * the "sample" command instructs the daemon to immediately get new sensor data of device $SAMPLEDEV - * if listeners for sensors (temp | photo) exist, the daemon should periodically get and distribute sample data without waiting for a "sample" command == Replys of daemon == @@ -19,4 +18,4 @@ 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} | [0-9]+: | movement | button[0-9]