https://github.com/escomputers/usbapi
Simple REST API for controlling a local USB Denkovi Relay Board
https://github.com/escomputers/usbapi
denkovi ftdi linux python relay-board rest-api sbc usb
Last synced: about 1 year ago
JSON representation
Simple REST API for controlling a local USB Denkovi Relay Board
- Host: GitHub
- URL: https://github.com/escomputers/usbapi
- Owner: escomputers
- License: apache-2.0
- Created: 2023-05-01T10:40:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-09T10:57:35.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T22:41:22.196Z (about 1 year ago)
- Topics: denkovi, ftdi, linux, python, relay-board, rest-api, sbc, usb
- Language: Python
- Homepage:
- Size: 71.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Denkovi USB Relay Boards RestAPI
Simple REST API for controlling a local [USB Denkovi Relay Board](https://denkovi.com/relay-boards)
### Requirements
1. Check your paths inside [usbapi.service](usbapi.service) file (especially the Python virtual environment path)
2. Set your Relay Board type and HTTP Port inside [helpers/common.py file](helpers/common.py) (Optional)
### Install
```bash
bash install.sh
```
### Usage
```bash
curl http://localhost:8000/1/status
# or
curl http://localhost:8000/1/on
curl http://localhost:8000/1/off
```