X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2FCOMMANDS.txt;h=76041fea507cfeca223d71df6ec7da9a761770a3;hb=44da1f523dcdaf2fef158076f138ac8be5cb89fe;hp=a748b86aae3c6abaf7680d85b795bceaf352727c;hpb=dce00a6aae49a640719f0c3ce782a72c5a85a2a8;p=svn42.git diff --git a/powersensordaemon/COMMANDS.txt b/powersensordaemon/COMMANDS.txt index a748b86..76041fe 100644 --- a/powersensordaemon/COMMANDS.txt +++ b/powersensordaemon/COMMANDS.txt @@ -1,22 +1,21 @@ == Commands accepted by daemon == -COMMAND:= power $POWERID (on|off) | listen $EVENT | sample $SAMPLEDEV +COMMAND:= power $POWERID (on|off) | listen $EVENT | sample $SAMPLEDEV | log POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee -EVENT:= all | temp | photo | movement | button +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 - * 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 == -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} | 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} | movement | button[0-9]