X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=powersensordaemon%2FCOMMANDS.txt;h=a0837f5e75070b7e9edc05c927321c4bc4055677;hb=2c075d279f61bf548e22b2715d82d58fc1f16f76;hp=a748b86aae3c6abaf7680d85b795bceaf352727c;hpb=dce00a6aae49a640719f0c3ce782a72c5a85a2a8;p=svn42.git diff --git a/powersensordaemon/COMMANDS.txt b/powersensordaemon/COMMANDS.txt index a748b86..a0837f5 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 (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 == -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} | [0-9]+: | movement | button[0-9]