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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
remoteio-1.0.11-py3-none-any.whl
(16.5 kB
view hashes)
Close
Hashes for remoteio-1.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68f4ee9c5b8c4f79cebbf9ef4158f464869506c08e6a9339a4843c592b47ea16 |
|
MD5 | 856908cf05a577f27fa7da05ea36049d |
|
BLAKE2b-256 | e2343e9fa6a0657d3009b32bb25299e7aae733373efe6d65677b91e039b1c6d8 |