X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2FCOMMANDS.txt;h=76041fea507cfeca223d71df6ec7da9a761770a3;hb=44da1f523dcdaf2fef158076f138ac8be5cb89fe;hp=ced3a29cac42b4791a4a85e8c2334341debcf1e9;hpb=7554adf9414d7baf351f0b1ae11a9007f2532095;p=svn42.git diff --git a/powersensordaemon/COMMANDS.txt b/powersensordaemon/COMMANDS.txt index ced3a29..76041fe 100644 --- a/powersensordaemon/COMMANDS.txt +++ b/powersensordaemon/COMMANDS.txt @@ -1,17 +1,21 @@ == Commands accepted by daemon == -COMMAND:= power $LICHTID (on|off) | listen $EVENT | sample $SAMPLEDEV -LICHTID:= werkzeug | stereo | labor | schreibtisch | logo | idee -EVENT:= all | temp | movement | button -SAMPLEDEV:=temp[0-9]+ +COMMAND:= power $POWERID (on|off) | listen $EVENT | sample $SAMPLEDEV | log +POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee +EVENT:= all | request | temp | photo | movement | button | none +SAMPLEDEV:=temp[0-9]+ | photo[0-9]+ + +Notes: + * subscription to events is cummulativ + * the "sample" command instructs the daemon to immediately get new sensor data of device $SAMPLEDEV == 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) -LISTENERDATA:=temp[0-9]+ [0-9]{1,3}\.[0-9]{2} | 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]