Wednesday, August 13, 2014

Cubietruck + Octoprint

Octoprint Cubietruck

Install subversion at get pyserial for the Ramps 1.4 to connect with Cubietruck:

sudo apt-get install subversion
svn checkout svn:// pyserial-code
cd pyserial-code
cd pyserial
python build
sudo python install

Install Python related packages and clone the Octoprint devel source for the latest development.

cd ~
sudo apt-get install python-pip python-dev git
git clone
cd OctoPrint
git pull
git checkout devel
sudo python install

After that, ./run to run the Octoprint server. It will be hosted in locally on the Cubietruck. You can also access it through other devices by replacing the with the Cubietruck IP.

Additionally, you can also add webcam to stream the video of the print. Install the related packages and clone mjpg-streamer:

cd ~
sudo apt-get install subversion libjpeg8-dev imagemagick libav-tools cmake
git clone
cd mjpg-streamer/mjpg-streamer-experimental

To test out the video stream:

./mjpg_streamer -i "./ -y" -o "./ -w ./www"

You should be able to get the life feed from your USB webcam using port 8080 with the Cubietruck IP or locally in Cubietruck.

No comments:

Post a Comment