GreenIQ - Model B - Irrigation and PiBeacon

Posted on
Tue Apr 30, 2019 9:51 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: GreenIQ - Model B - Irrigation and PiBeacon

the new release (.276) should add the option to set RELAYS on if gpio ==0 or ==1
set in sprinkler device edit

Karl

Posted on
Tue Apr 30, 2019 10:21 am
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: GreenIQ - Model B - Irrigation and PiBeacon

Thanks! Will give it a go Friday when im home to check.


Sent from my iPhone using Tapatalk

Posted on
Fri May 03, 2019 7:07 am
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: GreenIQ - Model B - Irrigation and PiBeacon

Yep that works. Thanks!.

I was using GPIO-ON/OFF devices to trigger the zone valves and a variable that changed when any one was turned on or off and a trigger on that variable to turn the pump on and off in the interim. Worked well.
The Sprinkler device seems to take about 60 seconds to turn on my valves and they never seem to obey their limit. Will keep playing, must being doing something silly but the new version with the box unchecked works perfectly for 0=off and 1=on.

Thanks!

Posted on
Fri May 03, 2019 2:00 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: GreenIQ - Model B - Irrigation and PiBeacon

"The Sprinkler device seems to take about 60 seconds to turn on my valves and they never seem to obey their limit. "
to better understand: could you post or send the sprinkler device config? and the sprinkler action.

Karl

Posted on
Mon May 06, 2019 10:04 am
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: GreenIQ - Model B - Irrigation and PiBeacon

OK the time limit think may be me being dumb. I was just selecting the zone from the Indigo gui and assuming that it would obey the maximum times set.

It does seem that it takes so long to send the command that using the Action "Run Schedule" does nothing as the amount of time I run each zone for is less than the time it must take to actually action the command on the Pi.

I can see the action sequentially triggering each zone according to the scedule but nothing actually happens. Valves to not get triggered and master pump does not get turned on.

If i turn on the zone from indigo gui, it will eventually start the pump and open the valve but it does take many mins. If i do the same via OUTPUY-GPIO-1-On/Off then it takes seconds to turn the GPIO on or Off.

So this is my config of the Sprinkle And Schedule Action:
Attachments
Screenshot 2019-05-06 at 16.58.33.png
Schedule Action
Screenshot 2019-05-06 at 16.58.33.png (47.11 KiB) Viewed 2518 times
Screenshot 2019-05-06 at 16.37.00.png
Config
Screenshot 2019-05-06 at 16.37.00.png (51.43 KiB) Viewed 2518 times

Posted on
Mon May 06, 2019 10:17 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: GreenIQ - Model B - Irrigation and PiBeacon

first do not use "one wire pin" and also the "DHT pin" can act up.. But if your hardware is "hardwired" make sure that unwire protocol is disabled (in sudo raps-config, .. interfaces).
here my dev config and my action ...

don't see anything wrong. if you "manually" run a zone in the sprinkler device (run schedule or next zone). how long does it take.. mine takes < 1 secs to start.

could you enable debug "output" and check when the command gets send - ie time stamp .. in the logfile. (or just double click the logfile ) (in ... indigo 7 x/Logs/pibeacon../plugin.log if you use one of the latest versions .

Karl
Ps one of my temp sensor is bad (-228F)
have not run anything in the last weeks as we had plenty of rain > 15 cm, but I tried to run just now and it works fine ..
Attachments
Screen Shot 2019-05-06 at 11.11.43.png
Screen Shot 2019-05-06 at 11.11.43.png (128.63 KiB) Viewed 2547 times
Screen Shot 2019-05-06 at 11.07.45.png
Screen Shot 2019-05-06 at 11.07.45.png (105.34 KiB) Viewed 2547 times
Screen Shot 2019-05-06 at 11.08.34.png
Screen Shot 2019-05-06 at 11.08.34.png (32.47 KiB) Viewed 2547 times

Posted on
Mon May 06, 2019 10:57 am
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: GreenIQ - Model B - Irrigation and PiBeacon

OK so it takes about 80-120 seconds to start a zone manually. To stop all zones, about 20 seconds. If i do the commands directly via OUTPUT-GPIO-1-On/Off it takes about 3 seconds...(this is an old pi B)

I had already disabled onewire but double checked/answered "no" to enabling onewire in interfaces.

This is from the plugin log:

Code: Select all
06 17:50:07 sendGPIOCommand-s-: [{"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "17"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "18"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "27"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "22"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "23"}]
06 17:50:07 sendtoRPI sending to  192.168.124.7; command-string=[{"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "17"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "18"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "27"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "22"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "23"}];  calledFrom:sendGPIOCommand
06 17:50:07

##=======use this as a python script in an action group action :=====
plug = indigo.server.getPlugin("com.karlwachs.piBeacon")
plug.executeAction("setPins" , props ={u
    "outputDev":"Sprinkler"
   ,"device":"OUTPUTgpio-1"
   ,"restoreAfterBoot":0
   ,"startAtDateTime":"0"
   ,"cmd":"pulseUp"
   ,"pulseUp":"60.0"
   ,"pulseDown":"0.0"
   ,"rampTime":"0.0"
   ,"analogValue":"0.0"
   ,"GPIOpin":"24"})
##=======  end  =====


06 17:50:07 sendGPIOCommand: [{"restoreAfterBoot": "0", "startAtDateTime": 0, "command": "pulseUp", "pin": "24", "device": "OUTPUTgpio-1", "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 60.0, "nPulses": 0}, "inverseGPIO": true, "devId": 1128735305}]
06 17:50:07 sendtoRPI sending to  192.168.124.7; command-string=[{"restoreAfterBoot": "0", "startAtDateTime": 0, "command": "pulseUp", "pin": "24", "device": "OUTPUTgpio-1", "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 60.0, "nPulses": 0}, "inverseGPIO": true, "devId": 1128735305}];  calledFrom:sendGPIOCommand
06 17:50:08

##=======use this as a python script in an action group action :=====
plug = indigo.server.getPlugin("com.karlwachs.piBeacon")
plug.executeAction("setPins" , props ={u
    "outputDev":"Sprinkler"
   ,"device":"OUTPUTgpio-1"
   ,"restoreAfterBoot":0
   ,"startAtDateTime":"0"
   ,"cmd":"pulseUp"
   ,"pulseUp":"60.0"
   ,"pulseDown":"0.0"
   ,"rampTime":"0.0"
   ,"analogValue":"0.0"
   ,"GPIOpin":"4"})
##=======  end  =====


06 17:50:08 sendGPIOCommand: [{"restoreAfterBoot": "0", "startAtDateTime": 0, "command": "pulseUp", "pin": "4", "device": "OUTPUTgpio-1", "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 60.0, "nPulses": 0}, "inverseGPIO": true, "devId": 1128735305}]
06 17:50:08 sendtoRPI sending to  192.168.124.7; command-string=[{"restoreAfterBoot": "0", "startAtDateTime": 0, "command": "pulseUp", "pin": "4", "device": "OUTPUTgpio-1", "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 60.0, "nPulses": 0}, "inverseGPIO": true, "devId": 1128735305}];  calledFrom:sendGPIOCommand
06 17:51:52 sendGPIOCommand-s-: [{"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "4"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "17"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "18"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "27"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "22"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "23"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "24"}]
06 17:51:52 sendtoRPI sending to  192.168.124.7; command-string=[{"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "4"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "17"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "18"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "27"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "22"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "23"}, {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "24"}];  calledFrom:sendGPIOCommand
.

17:50.08 is when i sent the command... 17.51.52 is a few seconds after the pump actually turns on and i turn it off by using all zones off.

Really odd.

Posted on
Mon May 06, 2019 1:25 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: GreenIQ - Model B - Irrigation and PiBeacon

I guess i have a double negative:

"pulseUp": 60.0, "nPulses": 0}, "inverseGPIO": true,

cancels each other it should be
"pulseUp": 60.0, "nPulses": 0}, "inverseGPIO": false

that should be say to fix.

so for you right now the sprinkler starts when it should goe off and stays on
that explains the behaviors.

Karl

Posted on
Mon May 06, 2019 2:22 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: GreenIQ - Model B - Irrigation and PiBeacon

could you try this one:

https://www.dropbox.com/s/eydnqjyobysaup9/piBeacon.indigoPlugin.zip?dl=1

SHOULD do it correctly

Karl

Posted on
Mon May 06, 2019 2:38 pm
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: GreenIQ - Model B - Irrigation and PiBeacon

Quick test before bed confirms that it now takes about 20 seconds to turn on zone and pump which us a huge improvement. Turning all off seemed slower but only about 30 seconds.

Will dig out the logs in the morning as i have an early start. Thanks for all your help so far!


Sent from my iPhone using Tapatalk

Posted on
Mon May 06, 2019 3:14 pm
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

GreenIQ - Model B - Irrigation and PiBeacon

So it goes on and off as setup, just with 20 sec delay?

That could be the rpi clock

Could you check
Ssh pi@....
date

And check if the rpi has the right time.


Sent from my iPhone using Tapatalk

Posted on
Tue May 07, 2019 2:09 am
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: GreenIQ - Model B - Irrigation and PiBeacon

Yes. Now goes on and off with only 20 seconds delay. Time is exactly the same on the Pi as it is on the Mac Mini running indigo viewed using "date" command on both.

Will try schedules again to see if that makes any difference to doing it from the gui. Not back again now till thursday or friday but can access remote just not listen out for the pump remote (well i can but camera in the garden is laggy).

Posted on
Tue May 07, 2019 8:26 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: GreenIQ - Model B - Irrigation and PiBeacon

you can follow the action remotely on the RPI:
in config set debug RPI output to max
wait ~ 1 minute to get the par meter file send too the rpis and read
Code: Select all
ssh pi@192..
cd pibeacon
sudo python master.py
tail -F  /run/user/1000/pibeacon/receiveGPIOcommands.log
#should show you the commands received
tail -F  /run/user/1000/pibeacon/execcommands.log
#should show you the commands managed
tail -F  /run/user/1000/pibeacon/setGPIO.log
#should show you the GPIO commands executed


Karl

Posted on
Tue May 07, 2019 8:49 am
AndyVirus offline
Posts: 257
Joined: Mar 18, 2014
Location: Newport Pagnell, UK

Re: GreenIQ - Model B - Irrigation and PiBeacon

recieveGPIOcimmnds.log shows instant recive of the commands from indigo
Code: Select all
20190507-15:40:06 len of buffer:409
20190507-15:40:06 len of buffer:0
20190507-15:40:06 len of package:409
20190507-15:40:06  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "4"}
20190507-15:40:06  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "17"}
20190507-15:40:07  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "27"}
20190507-15:40:07  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "22"}
20190507-15:40:07  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "23"}
20190507-15:40:07 len of buffer:235
20190507-15:40:08 len of buffer:0
20190507-15:40:08 len of package:235
20190507-15:40:08  cmd= {"restoreAfterBoot": "0", "startAtDateTime": 0, "pin": "24", "inverseGPIO": false, "devId": 1128735305, "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 600.0, "nPulses": 0}, "device": "OUTPUTgpio-1", "command": "pulseUp"}
20190507-15:40:08 len of buffer:235
20190507-15:40:08 len of buffer:0
20190507-15:40:08 len of package:235
20190507-15:40:08  cmd= {"restoreAfterBoot": "0", "startAtDateTime": 0, "pin": "18", "inverseGPIO": false, "devId": 1128735305, "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 600.0, "nPulses": 0}, "device": "OUTPUTgpio-1", "command": "pulseUp"}
20190507-15:40:21 len of buffer:573
20190507-15:40:21 len of buffer:0
20190507-15:40:21 len of package:573
20190507-15:40:21  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "4"}
20190507-15:40:22  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "17"}
20190507-15:40:22  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "18"}
20190507-15:40:22  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "27"}
20190507-15:40:22  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "22"}
20190507-15:40:22  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "23"}
20190507-15:40:23  cmd= {"device": "OUTPUTgpio-1", "inverseGPIO": false, "command": "down", "pin": "24"}


execcommands.log shows at that time:
Code: Select all
20190507-15:40:14 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'4'}
20190507-15:40:14 next cmd: "down"
20190507-15:40:14  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240014.34", "values": {}, "pin": "4", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:14 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'17'}
20190507-15:40:14 next cmd: "down"
20190507-15:40:14  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240014.73", "values": {}, "pin": "17", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:15 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'27'}
20190507-15:40:15 next cmd: "down"
20190507-15:40:15  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240015.44", "values": {}, "pin": "27", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:15 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'22'}
20190507-15:40:15 next cmd: "down"
20190507-15:40:15  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240015.52", "values": {}, "pin": "22", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:15 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'23'}
20190507-15:40:15 next cmd: "down"
20190507-15:40:15  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240015.99", "values": {}, "pin": "23", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:16 next command: {u'restoreAfterBoot': u'0', u'startAtDateTime': 0, u'pin': u'24', u'inverseGPIO': False, u'devId': 1128735305, u'values': {u'analogValue': 0.0, u'pulseDown': 0.0, u'pulseUp': 600.0, u'nPulses': 0}, u'device': u'OUTPUTgpio-1', u'command': u'pulseUp'}
20190507-15:40:16 next cmd: "pulseUp"
20190507-15:40:16  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": 1557240016.95966, "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 600.0, "nPulses": 0}, "pin": "24", "debug": 3, "inverseGPIO": false, "cmd": "pulseUp", "devId": 1128735305, "PWM": 1}' &
20190507-15:40:17 next command: {u'restoreAfterBoot': u'0', u'startAtDateTime': 0, u'pin': u'18', u'inverseGPIO': False, u'devId': 1128735305, u'values': {u'analogValue': 0.0, u'pulseDown': 0.0, u'pulseUp': 600.0, u'nPulses': 0}, u'device': u'OUTPUTgpio-1', u'command': u'pulseUp'}
20190507-15:40:17 next cmd: "pulseUp"
20190507-15:40:17  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": 1557240017.396226, "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 600.0, "nPulses": 0}, "pin": "18", "debug": 3, "inverseGPIO": false, "cmd": "pulseUp", "devId": 1128735305, "PWM": 1}' &
20190507-15:40:35 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'4'}
20190507-15:40:35 next cmd: "down"
20190507-15:40:35  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240035.26", "values": {}, "pin": "4", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:35 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'17'}
20190507-15:40:35 next cmd: "down"
20190507-15:40:35  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240035.5", "values": {}, "pin": "17", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:35 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'18'}
20190507-15:40:35 next cmd: "down"
20190507-15:40:35  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240035.61", "values": {}, "pin": "18", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:35 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'27'}
20190507-15:40:35 next cmd: "down"
20190507-15:40:35  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240035.79", "values": {}, "pin": "27", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:36 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'22'}
20190507-15:40:36 next cmd: "down"
20190507-15:40:36  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240036.26", "values": {}, "pin": "22", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:36 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'23'}
20190507-15:40:36 next cmd: "down"
20190507-15:40:36  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240036.28", "values": {}, "pin": "23", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &
20190507-15:40:36 next command: {u'device': u'OUTPUTgpio-1', u'inverseGPIO': False, u'command': u'down', u'pin': u'24'}
20190507-15:40:36 next cmd: "down"
20190507-15:40:36  cmd= python /home/pi/pibeacon/setGPIO.py '{"startAtDateTime": "1557240036.64", "values": {}, "pin": "24", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}' &


setGPIO.log shows
Code: Select all
20190507-15:40:23 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240014.34", "values": {}, "pin": "4", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:24 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240014.73", "values": {}, "pin": "17", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:24 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240015.52", "values": {}, "pin": "22", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:24 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240015.44", "values": {}, "pin": "27", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:25 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240015.99", "values": {}, "pin": "23", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:27 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": 1557240016.95966, "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 600.0, "nPulses": 0}, "pin": "24", "debug": 3, "inverseGPIO": false, "cmd": "pulseUp", "devId": 1128735305, "PWM": 1}']
20190507-15:40:27 msg: 161x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240026.8}}

20190507-15:40:28 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240027.34}}

20190507-15:40:28 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": 1557240017.396226, "values": {"analogValue": 0.0, "pulseDown": 0.0, "pulseUp": 600.0, "nPulses": 0}, "pin": "18", "debug": 3, "inverseGPIO": false, "cmd": "pulseUp", "devId": 1128735305, "PWM": 1}']
20190507-15:40:29 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240028.19}}

20190507-15:40:29 msg: 161x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240028.3}}

20190507-15:40:30 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240029.23}}

20190507-15:40:44 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240035.26", "values": {}, "pin": "4", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:45 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240035.61", "values": {}, "pin": "18", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:45 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240035.5", "values": {}, "pin": "17", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:45 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240035.79", "values": {}, "pin": "27", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:45 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240036.28", "values": {}, "pin": "23", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:46 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240036.64", "values": {}, "pin": "24", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:46 setGPIO  command :['/home/pi/pibeacon/setGPIO.py', '{"startAtDateTime": "1557240036.26", "values": {}, "pin": "22", "debug": 3, "inverseGPIO": false, "cmd": "down", "devId": 0, "PWM": 1}']
20190507-15:40:47 killing setGPIO.py  "pin": "18",
20190507-15:40:47 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240046.99}}

20190507-15:40:47 killing setGPIO.py  "pin": "24",
20190507-15:40:47 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240047.36}}

20190507-15:40:47 msg: 161x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240047.3}}

20190507-15:40:48 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240047.56}}

20190507-15:40:48 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240047.73}}

20190507-15:40:48 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240048.03}}

20190507-15:40:48 msg: 162x-6-api_IN_4x-6-a{"outputs":{"OUTPUTgpio-1-ONoff":{"0":{"actualGpioValue":"low"}}},"program":"setGPIO","ipAddress":"192.168.124.7","pi":"4","ts":{"tz":"BST","time":1557240048.09}}


It takes about 15 seconds for anything to appear in the setgpio.log while it takes less that 1 second to hit the recieveGPIOcommands.log.

Posted on
Tue May 07, 2019 9:08 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

GreenIQ - Model B - Irrigation and PiBeacon

Good info, I can trace that

Again what kind of rpi?


Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 15 guests