lukasbindreiter / enternot-pi

Enternot is a home security system powered by the Raspberry PI
MIT License
0 stars 0 forks source link

Move camera based on commands received from the app #5

Open lukasbindreiter opened 6 years ago

lukasbindreiter commented 6 years ago

The same websocket endpoint used in #1 should be able to send commands to the pi with which the camera gets moved

Here we have to ensure that we limit the movement to some degree, in order to avoid the camera rotating around its own axis too many times and therefore the cable to cause any troubles.

lukasbindreiter commented 6 years ago

its not a websocket endpoint, just a simple POST /camera/position see swagger docs for detail

Shynixn commented 6 years ago

Doesn't it need a vertical and a horizontal angle value?

lukasbindreiter commented 6 years ago
{
  "x-angle": 12.5, 
  "y-angle": -12.5
}