so i got this file
https://github.com/boelle/Panel-Monitor ... oolmain.py
i have just adjusted the poollib file it imports to this:
https://pastebin.com/4D9jmJpm
this is so its uses RPi.GPIO and not wiringpi
poolmain runs fine but when i fire up poolweb.py i get this error
anyone that can point me in the right direction?
https://github.com/boelle/Panel-Monitor ... oolmain.py
i have just adjusted the poollib file it imports to this:
https://pastebin.com/4D9jmJpm
this is so its uses RPi.GPIO and not wiringpi
poolmain runs fine but when i fire up poolweb.py i get this error
Code:
pi@testpanel:~/pool $ sudo python3 poolweb.pyTraceback (most recent call last): File "/home/pi/pool/poolweb.py", line 34, in <module> import poollib as p File "/home/pi/pool/poollib.py", line 53, in <module> GPIO.setup(relay, GPIO.OUT) # Sets pin 11 as output ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/RPi/GPIO/__init__.py", line 704, in setup initial = _check(lgpio.gpio_read(_chip, gpio)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/lgpio.py", line 903, in gpio_read return _u2i(_lgpio._gpio_read(handle&0xffff, gpio)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/lgpio.py", line 458, in _u2i raise error(error_text(v))lgpio.error: 'GPIO not allocated'Statistics: Posted by boelle — Sat May 24, 2025 4:09 pm — Replies 1 — Views 49