-

CommentStreams:86aa55f41d1cd3f6104cbdc7155fed47

From Geekworm Wiki
Jump to navigation Jump to search

I get this output when running the fan control script on Raspbian, any help would be appreciated. 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 "/home/pi/x735-v2.5/pwm_fan_control.py", line 8, in <module>
   pwm.set_mode(servo, pigpio.OUTPUT)
 File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1376, in set_mode
   return _u2i(_pigpio_command(self.sl, _PI_CMD_MODES, gpio, mode))
 File "/usr/lib/python2.7/dist-packages/pigpio.py", line 1025, in _pigpio_command
   sl.s.send(struct.pack('IIII', cmd, p1, p2, 0))

AttributeError: 'NoneType' object has no attribute 'send'