sabaatworld / HyperionScreenCap

Screen capture program for Hyperion ambilight. Updated to support DirectX 11, multiple displays and multiple Hyperion servers.
MIT License
120 stars 20 forks source link

HTTP Request Toggle On/Off? #50

Closed JeedHome44 closed 3 years ago

JeedHome44 commented 3 years ago

Can we do http request to start/stop screen capture?

I need to add it in Home assistant to say to Alexa start or stop ambilight ;)

Like:

http://IP-PC:PORT-HSC/toggle

http://IP-PC:PORT-HSC/start

http://IP-PC:PORT-HSC/stop

Possible to add this or it's already possible?

JeedHome44 commented 3 years ago

Ambimod said me:

http://localhost:9191/API?command=ON&force=false

or

http://localhost:9191/API?command=OFF&force=false

But if we change localhost to local IP PC, we have error 400 Invalid Hostname. Why?

I need to send command with a Raspberry Pi to my LAN