2016 Jun 09, 08:36 PM
Thank you so much for the reply. The pigpio thing as I understand it which is not much is due to the latest OS release. I got the workaround here. https://www.raspberrypi.org/forums/viewt...jXE7pCMmzA. As you can see from the screen shot I still had to apply the "fix" even following your instructions. Am I missing something like having to set up WEB services before running SPI? I can set my router to always hand out the same IP address I just thought SIP needed to see a static IP set up in the OS. As you can see I'm still getting an IP address of 0.0.0.0:80 from SPI. I did see something new. After running SPI at the end you see a port number of 8080.
pi@raspberrypi:~ $ hostname -I
192.168.0.200 192.168.0.29
pi@raspberrypi:~ $ cd SIP
pi@raspberrypi:~/SIP $ sudo python sip.py
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at localhost(8888)
Did you start the pigpio daemon? E.g. sudo pigpiod
Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Traceback (most recent call last):
File "sip.py", line 16, in <module>
import gv
File "/home/pi/SIP/gv.py", line 48, in <module>
from helpers import password_salt, password_hash, load_programs, station_names
File "/home/pi/SIP/helpers.py", line 26, in <module>
from gpio_pins import GPIO, pin_rain_sense, pin_relay
File "/home/pi/SIP/gpio_pins.py", line 71, in <module>
pi.set_mode(pin_rain_sense, pigpio.INPUT)
File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1053, in set_mode
return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode))
File "/usr/lib/python2.7/dist-packages/pigpio.py", line 848, in _pigpio_command
sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))
AttributeError: 'NoneType' object has no attribute 'send'
pi@raspberrypi:~/SIP $ sudo pigpiod
pi@raspberrypi:~/SIP $ pigs pigpv
50
pi@raspberrypi:~/SIP $ pigs hwver
10620993
pi@raspberrypi:~/SIP $ sudo python sip.py
plugins loaded:
mobile_app
plugin_manager
relay_board
signaling_examples
system_update
http://0.0.0.0:80/
Starting timing loop
8080
pi@raspberrypi:~ $ hostname -I
192.168.0.200 192.168.0.29
pi@raspberrypi:~ $ cd SIP
pi@raspberrypi:~/SIP $ sudo python sip.py
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Can't connect to pigpio at localhost(8888)
Did you start the pigpio daemon? E.g. sudo pigpiod
Did you specify the correct Pi host/port in the environment
variables PIGPIO_ADDR/PIGPIO_PORT?
E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Did you specify the correct Pi host/port in the
pigpio.pi() function? E.g. pigpio.pi('soft', 8888))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Traceback (most recent call last):
File "sip.py", line 16, in <module>
import gv
File "/home/pi/SIP/gv.py", line 48, in <module>
from helpers import password_salt, password_hash, load_programs, station_names
File "/home/pi/SIP/helpers.py", line 26, in <module>
from gpio_pins import GPIO, pin_rain_sense, pin_relay
File "/home/pi/SIP/gpio_pins.py", line 71, in <module>
pi.set_mode(pin_rain_sense, pigpio.INPUT)
File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1053, in set_mode
return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode))
File "/usr/lib/python2.7/dist-packages/pigpio.py", line 848, in _pigpio_command
sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))
AttributeError: 'NoneType' object has no attribute 'send'
pi@raspberrypi:~/SIP $ sudo pigpiod
pi@raspberrypi:~/SIP $ pigs pigpv
50
pi@raspberrypi:~/SIP $ pigs hwver
10620993
pi@raspberrypi:~/SIP $ sudo python sip.py
plugins loaded:
mobile_app
plugin_manager
relay_board
signaling_examples
system_update
http://0.0.0.0:80/
Starting timing loop
8080