From 14de350dad8a0e2785e056fbdf9ff7ea59728e77 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 5 Mar 2010 00:22:57 +0000 Subject: [PATCH] commands for photoresistor --- powersensordaemon/COMMANDS.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/powersensordaemon/COMMANDS.txt b/powersensordaemon/COMMANDS.txt index ced3a29..26d6ee0 100644 --- a/powersensordaemon/COMMANDS.txt +++ b/powersensordaemon/COMMANDS.txt @@ -1,10 +1,12 @@ == 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 +POWERID:= werkzeug | stereo | labor | schreibtisch | logo | idee +EVENT:= all | temp | photo | movement | button +SAMPLEDEV:=temp[0-9]+ | photo[0-9]+ + +(subscription to events is cummulativ) == Replys of daemon == @@ -14,4 +16,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} | 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] \ No newline at end of file -- 1.7.10.4