Comments on: Raspberry Pi Web Server using Flask to Control GPIOs https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 19 Sep 2025 10:04:30 +0000 hourly 1 https://wordpress.org/?v=6.8.5 By: Angelo https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-1099162 Fri, 19 Sep 2025 10:04:30 +0000 http://randomnerdtutorials.com/?p=18516#comment-1099162 In reply to Angelo.

Io dovrei avere risolto applicando la seguente procedura:
– installare manualmente la libreria: sudo apt install python3-rpi.gpio
– aggiungere il tuo utente al gruppo gpio: sudo usermod -a -G gpio pi
– riavviare poi verificare che la modifica sia stata applicata eseguendo il comando groups e controllando se gpio è presente nell’elenco.
Spero possa essere utile. Ciao

]]>
By: Angelo https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-1099158 Fri, 19 Sep 2025 09:38:53 +0000 http://randomnerdtutorials.com/?p=18516#comment-1099158 Ciao,
al run io ottengo l’errore: ‘ lgpio.error: ‘GPIO not allocated’ ‘
Potresti aggiornare questo progetto perchè sembra necessario passare da RPi.GPIO a una libreria basata su libgpiod su Bookworm.
Grazie

]]>
By: ars https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-1058038 Mon, 16 Jun 2025 10:55:05 +0000 http://randomnerdtutorials.com/?p=18516#comment-1058038 wich version of raspbbery OS and raspbbery here used ?

]]>
By: Tobbe https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-722755 Sun, 30 Jan 2022 15:35:01 +0000 http://randomnerdtutorials.com/?p=18516#comment-722755 how to start on boot?

]]>
By: Milan https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-717556 Fri, 07 Jan 2022 14:47:05 +0000 http://randomnerdtutorials.com/?p=18516#comment-717556 Hi,

First of all, I love your project. At this moment it works fine, but I have a small question.
Is there a way to change the order on the web page?
At this moment it is from top to bottom lamp 4, 2, 3 and 1.
Is it possible to change this to 1, 2, 3 and 4?

Thanks in advance.
Kind regards, Milan

]]>
By: sushil https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-429469 Sat, 15 Feb 2020 09:37:10 +0000 http://randomnerdtutorials.com/?p=18516#comment-429469 Well i have verified the code and it is working. thanks to the trainer.

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-355390 Fri, 08 Feb 2019 18:52:11 +0000 http://randomnerdtutorials.com/?p=18516#comment-355390 In reply to Frank G Marshall.

Hi Frank.
I’m really glad you got this project working.
Unfortunately, we don’t have any tutorial about controlling servos with slider for Raspberry Pi.
We have something about that, but it is with the ESP32: https://randomnerdtutorials.com/esp32-servo-motor-web-server-arduino-ide/
The Raspberry Pi camera streaming project can be found here: https://randomnerdtutorials.com/video-streaming-with-raspberry-pi-camera/

Thank you for your interest in our tutorials.
Regards,
Sara 🙂

]]>
By: Frank G Marshall https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-355347 Fri, 08 Feb 2019 12:38:31 +0000 http://randomnerdtutorials.com/?p=18516#comment-355347 This is my first Flask project that worked – thanks.

PLEASE offer a web page 2-slider control to steer two servos for a webcam.
A few sites offer help but none have worked for me – yours always work!

BTW mjpg-streamer seems by far the best webcam streamer and takes very little resource – I would (try to) add that to your servo control page.

]]>
By: Rui Santos https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-348606 Mon, 17 Dec 2018 16:13:01 +0000 http://randomnerdtutorials.com/?p=18516#comment-348606 In reply to swaroop goli.

Can you access the web server? What happens when you press the buttons (do you see any message in the Terminal window)? Can you double-check the pins? Can you try with another LED? Thanks!

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-web-server-using-flask-to-control-gpios/#comment-347507 Sun, 09 Dec 2018 14:33:58 +0000 http://randomnerdtutorials.com/?p=18516#comment-347507 In reply to Kevin Roach.

Hi Kevin.
You can do that if you set your Raspberry Pi as an access point.
Regards,
Sara 🙂

]]>