You are reading a single comment by @user105886 and its replies.
Click here to read the full conversation.
-
So I did something similar to what you are suggesting and it works too for anyone looking for a solution: I created a Python script to collect and clean the data from the leapmotion websocket on my local machine. Then I hosted a websocket from my esp8266 and sent the information to that websocket through my computer.
The leap socket is listening only on the loopback port, to make the socket accessible from the outside execute these commands on Windows (on Linux it's different):
However, it might be easier to run a local nodejs server on your computer (easier development and debugging). That server would read the leap motion data from the websocket, then interpret it provide a new webpage for the ESP8266 to control the servos directly. Logging and debugging would be much easier this way, and since you need to have the computer running anyway it's basically no extra cost.