Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobvanluijt/rly08b-controller
RLY08B controller
https://github.com/bobvanluijt/rly08b-controller
Last synced: 6 days ago
JSON representation
RLY08B controller
- Host: GitHub
- URL: https://github.com/bobvanluijt/rly08b-controller
- Owner: bobvanluijt
- License: mit
- Created: 2017-11-17T13:13:12.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2017-11-19T11:28:00.000Z (about 7 years ago)
- Last Synced: 2024-12-15T11:57:12.508Z (8 days ago)
- Language: Go
- Size: 35.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# USB-RLY08B - 8 relay outputs controller
1. http://www.robot-electronics.co.uk/htm/usb_rly08btech.htm
2. http://www.robot-electronics.co.uk/products/relay-modules/usb-relay/usb-rly08b-8-channel-relay-module.htmlNeeded lib: `usblib`
# Getting binaries
Don't want to compile? No worries, bins are here: https://github.com/bobvanluijt/RLY08B-controller/tree/master/dist
# Running from command line
`$ ./RLY08B -help` for help
Example:
`$ ./RLY08B -command=100 -device="/dev/cu.usbmodem00036401"`Commands can be found here: http://www.robot-electronics.co.uk/htm/usb_rly08btech.htm
Find your device by running:
# Running as a webservice
You can also run this package as a webservice.
`$ ./RLY08B -webservice=true`
You can now POST to `http://localhost/command/xxx` where xxx = commands: https://github.com/bobvanluijt/RLY08B-controller/releases
Example: `http://localhost/command/100` (turns on all relays)
To set a custom device add the HEADER: "device" with the path to the device.
Example: `device="/dev/cu.usbmodem00036401"`