guiguiabloc / rpisurv-api

API for rpisurv
MIT License
2 stars 3 forks source link

rpisurv-api

API for rpisurv (https://github.com/SvenVD/rpisurv)

Simple API to simulate keyboard press for changing screen

Request :

pip3 install flask

pip3 install keyboard

sudo nohup python3 rpisurv-api.py > log.txt 2>&1 &

http call example:

curl http://api-ip:5000/camera/pause

curl http://api-ip:5000/camera/resume

curl http://api-ip:5000/camera/1

curl http://api-ip:5000/camera/2

curl http://api-ip:5000/camera/3

curl http://api-ip:5000/camera/4