Difference between revisions of "OctoPrint"
Jump to navigation
Jump to search
Line 77: | Line 77: | ||
cd mjpg-streamer/mjpg-streamer-experimental | cd mjpg-streamer/mjpg-streamer-experimental | ||
make | make | ||
+ | </source> | ||
+ | |||
+ | == Autostart == | ||
+ | === .config/autostart/octoprint.desktop=== | ||
+ | <source lang='bash'> | ||
+ | [Desktop Entry] | ||
+ | Type=Application | ||
+ | Name=OctoPrint | ||
+ | Comment=OctoPrint service | ||
+ | NoDisplay=true | ||
+ | Exec=/home/wf/bin/octoprint | ||
</source> | </source> | ||
Revision as of 17:06, 24 February 2019
Installation on existing raspbian
Installation from source
see the five steps described in the "Installing from source" section of
Installing Python2.7 including pip and virtual env
python --version
Python 2.7.13
pip install virtualenv
Collecting virtualenv
Downloading https://files.pythonhosted.org/packages/7e/1b/6c00d57127608793e16e8b7f813e64d58a1938505c42fe190d1386ab41e1/virtualenv-16.4.0-py2.py3-none-any.whl (2.0MB)
100% |████████████████████████████████| 2.0MB 134kB/s
Installing collected packages: virtualenv
Successfully installed virtualenv-16.4.0
virtualenv will not be available via command line at this point so the instructions from the forum article will provide virtualenv.
sudo apt install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential
Obtaining the octoprint source
git clone https://github.com/foosel/OctoPrint.git
Creating a virtual environment
wf@pito:~/source/python/OctoPrint $ virtualenv venv
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/wf/source/python/OctoPrint/venv/bin/python2
Also creating executable in /home/wf/source/python/OctoPrint/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
Installing OctoPrint into that virtual environment
wf@pito:~/source/python/OctoPrint $ ./venv/bin/python setup.py install
running install
running bdist_egg
running egg_info
creating src/OctoPrint.egg-info
...
Adding pytz 2018.9 to easy-install.pth file
Installed /home/wf/source/python/OctoPrint/venv/lib/python2.7/site-packages/pytz-2018.9-py2.7.egg
Finished processing dependencies for OctoPrint==1.3.10
Start OctoPrint Server
./venv/bin/octoprint serve
Finish Install via Webbrowser
Octoprint listens on port 5000 by default:
http://<octoprintserver>:5000/
Will bring up the Setup Wizard
CuraEngine
sudo apt-get -y install gcc-4.7 g++-4.7
git clone -b legacy https://github.com/Ultimaker/CuraEngine.git
cd CuraEngine
make
Webcam
see .g.
- https://plastikjunkies.de/raspberry-octoprint-webcam/4/
- https://community.octoprint.org/t/available-mjpg-streamer-configuration-options/1106
MJpegStreamer
sudo apt-get install libjpeg-dev libjpeg8-dev imagemagick libav-tools cmake
git clone https://github.com/jacksonliam/mjpg-streamer.git
cd mjpg-streamer/mjpg-streamer-experimental
make
Autostart
.config/autostart/octoprint.desktop
[Desktop Entry]
Type=Application
Name=OctoPrint
Comment=OctoPrint service
NoDisplay=true
Exec=/home/wf/bin/octoprint