remoteio - Remote GPIO control
Project description
remoteio
A Raspberry Pi GPIO remote control based on gpiozero
https://github.com/gpiozero/gpiozero
Install remote server as deamon
Use this all-in-one command to install remoteio as deamon on port 8509
.
If remoteio is already installed, this command will update all files.
bash -c "$(wget -qLO - https://github.com/schech1/remoteio/raw/master/install.sh)"
Install using pip
pip install remoteio
When using pip, the server needs to be set up manually. See the examples below.
Server usage
Start a remote server on port 1234
.
If no port is specified default port 8509
will be used
from remoteio import run_server
if __name__ == "__main__":
run_server(port=1234)
Client usage
from remoteio import RemoteServer
if __name__ == "__main__":
server_ip = "192.168.1.38"
server_port = 1234
remote_server = RemoteServer(server_ip, server_port)
remote_pin = remote_server.pin(7, 'b')
remote_pin.on(time_ms=2000) # Time until switch off
remote_pin.blink() # Blink LED
remote_pin.pulse() # Pulse LED
remote_pin.off()
remote_server.close()
Use Board numbering
remote_pin = remote_server.pin(7, 'b') # Use physical board numbering
Use GPIO numbering
remote_pin = remote_server.pin(4, 'g') # Use GPIO numbering (e.g. GPIO4)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
remoteio-1.0.12.tar.gz
(15.9 kB
view hashes)
Built Distribution
remoteio-1.0.12-py3-none-any.whl
(16.5 kB
view hashes)
Close
Hashes for remoteio-1.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7236ad7667ab66b9c2d73925318027b89cc334ef7837ea04f39cdbe9c1840440 |
|
MD5 | 31abbc3226c5c4bb2e4d39ff7dc09681 |
|
BLAKE2b-256 | d9027c8ebe74796fa2a629c280aafc0d9abe4dc1ccb12563f6c44385ec7642db |