I am familiarizing myself with the GPIO pins on the Raspberry pi and was wondering what the easiest way to control them would be using HTML and javascript over a webpage. My intent is to have a button on the main HTML page (accessed from a remote computer over the web) that, when clicked, calls a javascript function which runs a script (bash?) to set an output high or low. I know this is possible using PHP but I was hoping to be able to do it using a bash script, or even a python script instead. Do I need to install any special software before this would be possible? I've read about "WiringPi" but I'd like to keep this as simple as possible, with as little extra software as I can. Right now this is just a proof of concept, so I don't feel the need to go all out yet. At this point I'm mainly just trying to find a script I can use to set the pin state right out of the box, without requiring PHP or Wiringpi. If I must use Wiringpi, then so be it, I just want to keep things as simple and self-contained as possible.
Take the 2-minute tour
×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.
closed as off-topic by Dave Tweed♦ Jan 15 at 12:14
|
|||
|