Skip to content

Simple REST API for controlling a local USB Denkovi Relay Board

License

Notifications You must be signed in to change notification settings

escomputers/usbAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Denkovi USB Relay Boards RestAPI

Simple REST API for controlling a local USB Denkovi Relay Board

Requirements

  1. Check your paths inside usbapi.service file (especially the Python virtual environment path)

  2. Set your Relay Board type and HTTP Port inside helpers/common.py file (Optional)

Install

bash install.sh

Usage

curl http://localhost:8000/1/status
# or
curl http://localhost:8000/1/on
curl http://localhost:8000/1/off