Control your Raspberry Pi GPIO pins using a socket server interface
1.1K
Tiny socket server build in nodejs, using node-rpio (https://www.npmjs.com/package/rpio) to interface with the GPIO pins of your Raspberry Pi.
Raspberry Pi with Docker installed
$ docker run -it --rm --privileged -p 7695:7695 jgivoni/rpi-gpio-server
Send commands on a socket using json like this
$ telnet <host> 7695
{"open": [7, 1]}
{"write": [7, 1]}
{"open": [12, 0]}
{"read": [12]}
on port 7695 to control the Raspberry.
The first part of the command is the method of the rpio object and the rest are the parameters passed to the method.
The source code can be found here: https://github.com/jgivoni/rpi-projects/tree/master/gpio
Content type
Image
Digest
Size
65 MB
Last updated
about 7 years ago
docker pull jgivoni/rpi-gpio-server