TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: DRUCK
from: A. DUMAS
date: 2018-02-03 09:18:00
subject: Re: How to enable cgi scr

On 02/02/2018 20:51, druck wrote:
> On 01/02/2018 14:16, A. Dumas wrote:
>> Simply have the server side script (cgi, python, php, whatever works
>> on your web server) call the "gpio" program. See "man gpio".
>
> If you are familiar with twiddling gpio from Python, you use that for
> both the I/O and generating HTML. To be able to run python scripts in
> cgi-bin you need to install uwsgi.

That's right, of course: if, like Python on Raspberry Pi, the language
already has a library for gpio access then no need to call the external
'gpio.' I'm not sure how python-gpio permissions work nowadays, though.
Will every user (like www-data in this case) be able to manipulate gpio
pins from python without using sudo on the process?

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.