Forums

Flask application that controls a raspberry pi

Hello , maybe my question is an OFFTOPIC but i m a beginner that wants to know how to host a flask web app that uses RPi.GPIO in pythonanywhere , i m getting " PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/RPi.GPIO-0.6.3.dist-info'" when i want to install GPIO (i understand why). The WebApp works very fine locally , my question is :"is there any method to host this application here ?"

Thank you

Sorry, but I don't see the point. There are no GPIOs on PythonAnywhere because it's not a RaspberryPi.

opix777 using paythonanywhere you can create a web APP which accepts API post requests from your Raspberry Pi. I think that is what you are looking for.

exactly, but i don't know how

your pythonanywhere web app still won't be able to talk directly to the gpio on your raspberry pi though, so there's no point in trying to install rpi.gpio here... what exactly is it that you're trying to do?