Skip to content

evanmoring/GPIOGUI-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPIOGUI-server

A webserver for controlling GPIO pins

Installation and starting the server:

I packaged everything you will need including the node modules and the node executable into the gpioserver.tar.gz. So far I have tested this on a Pi0 and 2GB Pi4 with clean installs of Buster. I can't guarantee these instructions will work on other Rasbian versions.

To download the files to your home directory and run the program you can enter these commands in your terminal on your pi:

cd ~
wget https://raw.githubusercontent.com/evanmoring/GPIOGUI-server/master/GPIOGUI-server.tar.gz
tar -xzvf GPIOGUI-server.tar.gz
cd GPIOGUI-server
./node server.js

cd ~ takes you to your home folder. The wget command pulls the compressed archive off of github. The tar command unpacks the tar.gz file into your current directory. cd GPIOGUI-server navigates to the newly created folder. ./node server.js runs server.js with the program node which I included for your convenience.

When it is ready (<5 seconds for pi4, about 10 seconds for pi0), the console will say "listening on port 3000".

At this point you can navigate to this address in a web browser. If you are accessing the interface from the pi, you can navigate to 127.0.0.1:3000.. To navigate to the interface from another computer in your network, find your pi's ip address using ifconfig. Use that address with ":3000" added to the end.

I've tested the program on a pi0 and a pi4. If you have a different pi, let me know how it works!

Feel free to email me with any questions, suggestions, or comments.

About

A web server for controlling GPIO pins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published