Skip to content

stefan-lippl/iot-serial-relais-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Relais Control

Via API

1. Install dependiencies

pip install -r requirements.txt

2. Create an object of the control class

serialmanager = SerialManager()

3.) Do Actions

Get all available USB ports

ports = serialmanager.get_connected_ports()

Set the state of the port to on or off

serialmanager.set_serial(number=port, on_or_off=state)


Via CLI

Get the available ports

python relais.py -a get

Set the state

python relais.py -a set -p <Port-Number> -s <State: on | off>

About

Controls a serial relais and turns it on or off

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages