Raspberry pi Octoprint
From emboxit
Contents
Installing Python 2.7 including pip
sudo apt-get install python-dev curl -O http://python-distribute.org/distribute_setup.py python distribute_setup.py curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py python get-pip.py sudo pip install virtualenv
not everything worked from above so next installs setup.py
mkdir python-setuptools cd python-setuptools wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python
Octoprint from source
git clone https://github.com/foosel/OctoPrint.git
In the source code folder from the command line:
python setup.py install
Start from the command line
octoprint
2016-02-02 14:14:32,009 - octoprint.server - INFO - Starting OctoPrint 1.2.8 (master branch) 2016-02-02 14:14:32,013 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.octoprint/plugins, /usr/local/lib/python2.7/dist-packages/OctoPrint-1.2.8-py2.7.egg/octoprint/plugins and installed plugin packages... 2016-02-02 14:14:32,183 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available 2016-02-02 14:14:32,186 - octoprint.plugin.core - INFO - Found 5 plugin(s) providing 5 mixin implementations, 2 hook handlers 2016-02-02 14:14:32,192 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads... 2016-02-02 14:14:32,194 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully. 2016-02-02 14:14:32,208 - octoprint.plugin.core - INFO - Initialized 5 plugin implementation(s) 2016-02-02 14:14:32,232 - octoprint.plugin.core - INFO - 5 plugin(s) registered with the system: | CuraEngine (<= 15.04) (bundled) = /usr/local/lib/python2.7/dist-packages/OctoPrint-1.2.8-py2.7.egg/octoprint/plugins/cura | Discovery (bundled) = /usr/local/lib/python2.7/dist-packages/OctoPrint-1.2.8-py2.7.egg/octoprint/plugins/discovery | Plugin Manager (bundled) = /usr/local/lib/python2.7/dist-packages/OctoPrint-1.2.8-py2.7.egg/octoprint/plugins/pluginmanager | Software Update (bundled) = /usr/local/lib/python2.7/dist-packages/OctoPrint-1.2.8-py2.7.egg/octoprint/plugins/softwareupdate | Virtual Printer (bundled) = /usr/local/lib/python2.7/dist-packages/OctoPrint-1.2.8-py2.7.egg/octoprint/plugins/virtual_printer 2016-02-02 14:14:32,235 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue... 2016-02-02 14:14:32,237 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue 2016-02-02 14:14:32,238 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets... 2016-02-02 14:14:32,240 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache... 2016-02-02 14:14:32,582 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on raspberrypi for SSDP 2016-02-02 14:14:32,810 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from http://plugins.octoprint.org/plugins.json 2016-02-02 14:14:32,874 - octoprint.server - INFO - Listening on http://0.0.0.0:5000 2016-02-02 14:15:44,387 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured yet or does not exist (currently set to None), Cura will not be selectable for slicing
from browser:
http://157.190.152.80:5000/
then in r-pi terminal (...after few seconds)
2016-02-02 14:15:45,761 - octoprint.server.util.sockjs - INFO - New connection from client: 157.190.54.31
USE
myself eoeoeo
How to reset Octoprint password
If Octoprint password is forgoten:
from R-Pi command line:
check if user.yaml exist:
ls -l ~/.octoprint/users.yaml
then edit:
nano ~/.octoprint/config.yaml
Find "firstRun: false" . Change that to "firstRun: true", save and exit. Then delete (or rename)
ls -l ~/.octoprint/users.yaml rm ~/.octoprint/users.yaml
Configure Octoprint printer profile
??
Configure Octoprint GPX plugin
Choose: Replicator 2X ?? Set home: x MAX, y MAX, z MIN Gcode dialect: MakerBot
Repetier Host + OctoPrint + Wanhao Dublicator4S
Usage: open STL in Repetier and slice. Export Gcode and then open it with Octoprint (need GPX plugin to translate Gcode to MakerBot commands)
- Configure Repetier Host Starting Gcode:
;---------WANHAO START GCODE BEGINS HERE G28 ; home all axes G92 X0 ; ABSOLUTE 0 FOR ALL AXES AT SWITCHES, DID NOT WORK IN A SINGLE COMMAND, SO 3 ARE USED G92 Y0 G92 Z0 G1 Z5 F5000 ; lift nozzle G1 X-240 Y-160 Z0 ; GOTO LEFT BOTTOM CORNER OF THE PLATFORM G92 X0 ; ABSOLUTE 0 FOR ALL AXES AT SWITCHES G92 Y0 G92 Z0 G1 Z5 F5000 ; lift nozzle M104 S210 T1 ; set temperature M116 ; WAIT EVERYTHING TO SET UP T1 ; USE EXRUDER 1 ;---------WANHAO START GCODE ENDS HERE
More Repetier Host settings:
filament diameter 1.75 extruder multiplier 0.7 Gcode dialect Makerbot (???Snailfish???) RS black filament temperature 210 first, 200 all other layers