Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5009

General discussion • Re: GUI Web Server for Pi GPIO

$
0
0
Here are a couple of things which you might find useful, for considering the Python route. Python is essentially descended from C in the evolution of languages, so you'll find some familiar territory here and there if you're a seasoned C coder. There will be a learning curve, but it's well documented with plenty of examples.

PEP 3333 – Python Web Server Gateway Interface v1.0.1 (WSGI)
Physical Computing with Python

Google App Engine uses Python/WSGI as one of its environments, so there are plenty of examples out there for using it for the server side of a web app. JavaScript running in the web browser can essentially do the equivalent of a Remote Procedure Call (RPC) into Python code running on the server. You can setup WSGI under either Apache or nginx HTTP servers, amongst others, on the Pi.

Lots more Python GPIO Pi code tutorials/examples here:

https://projects.raspberrypi.org/en/pro ... components

General Python learning with a Pi theme:

https://projects.raspberrypi.org/en/collections/python

All the Python official docs, including tutorials:

https://docs.python.org/

Statistics: Posted by Murph9000 — Sat Aug 31, 2024 3:08 am



Viewing all articles
Browse latest Browse all 5009

Trending Articles