Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 412 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 412 Bytes

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.