CoNXTroll3r is a self contained python based web server for controlling your EV3 remotely over the internet. It relies on MJPG-streamer for video streaming.
Other than MJPG-streamer, CoNXTroll3r relies only on
You can get this package directly from the ev3dev repositories using apt-get.
sudo apt-get update sudo apt-get upgrade sudo apt-get install python-ev3dev
Once it is finished installing you can test CoNXTroll3r by running
This should start a webserver on port 8081 you can visit using the URL
ev3dev for your EV3's hostname or
IP address as necessary).
After you've confirmed the python server is working correctly, it is time to set up MJPG-streamer for the live video feed.
Start by downloading all the prerequisites for download and compilation.
sudo apt-get install unzip make gcc libjpeg-dev
Next you'll need to grab the source archive from the project's SourceForge.
Now you can unzip the source and compile it using
This should only take a minute or two, even on the EV3's slow processor.
unzip mjpg-streamer-code-182.zip cd mjpg-streamer-code-182/mjpg-streamer make
You can test the resulting binaries using the following command. This will open a server on port 8080 that can be viewed from a web browser.
./mjpg_streamer -i "./input_uvc.so -y -n" -o "./output_http.so -w ./www"
I've used the flags
-y -n on the input plugin because my webcam seems to
only support YUV video, and has no support for pan/tilt/zoom.