Skip to content

Latest commit

 

History

History

async_control

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Async control

Asyncio calls through the generated REST client. Sends a single command to a shocker and handles each way the backend can refuse it (paused, no access, no permission).

pip install -r requirements.txt
export OPENSHOCK_API_TOKEN=your-api-token
python main.py <shocker-id> [vibrate|sound|shock] [intensity] [duration-ms]

Set OPENSHOCK_API_URL as well to use a self-hosted instance.