Skip to content

mccwdev/devantech-ethernet-relay-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

devantech-ethernet-relay-control

Control your Devantech programmable Ethernet Relay such as http://www.robot-electronics.co.uk/ds1242.html

Usage

Example, turn on relay 1:

$ relay_control.py 1 on

Commandline options

$ relay_control.py [-h] [--host HOST] [--port PORT] relay_id command
 
Control Devantech Ethernet Relays
 
positional arguments:
  relay_id     ID number of relay
  command      Command: 'on' or 'off'
 
optional arguments:
  -h, --help   show this help message and exit
  --host HOST  Hostname or IP-address of Ethernet Relay Control device
  --port PORT  Control port of Ethernet Relay Control device

Advanced relay control

See updatecron.py for an implementation example. Control external lights

About

Control your Devantech programmable Ethernet Relay such as http://www.robot-electronics.co.uk/ds1242.html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages