Вы находитесь на странице: 1из 3

2015/11/23

This repository

CuraIntegrationfoosel/OctoPrintWiki
Search

Pull requests

Issues

Gist

foosel / OctoPrint

Watch

Star

232

Cura Integration

1,089

Edit

Fork

481

New Page

Gina Huge edited this page on 10 Jun 23 revisions

Pages

38

Note: The Cura Integration has changed massively with OctoPrint 1.2.0. It now directly
calls CuraEngine instead of the full Cura installation and runs as a plugin. Please see the
documentation of the Cura plugin for information on how to setup slicing via Cura if you
are running OctoPrint 1.2.0 or later. This page here is only for older versions.

1. Install the current master branch of Octoprint on Raspbian using the instructions here
2. Install Cura on your Raspberry Pi

Frequently Asked Questions

How to file a bug report

Documentation of the REST API,

Events and Plugins


Cookbooks:
Custom Controls
System Commands

Note: A binary of CuraEngine precompiled on Raspbian 2015-01-31 is available here.


This should be compatible to current OctoPi releases (0.11.0 and higher).
If you want to use this instead of compiling on your own, do the following instead of
steps a) and b):
cd
sudoaptgetinstallpythonwxgtk2.8pythonnumpy
gitclonehttps://github.com/daid/Cura.git
cdCura
mkdirCuraEngine
cdCuraEngine
wgetOCuraEnginehttp://octoprint.org/files/octopi/cura_engine_14.12/cura_engine
chmod+xCuraEngine
cd..
{echo'#!/bin/sh';echo'PYTHONPATH=.python2mCura.cura"$@"';}>cura.sh
chmod+xcura.sh

Useful Eventhooks
Translating OctoPrint

Clone this wiki locally


https://github.com/foosel/OctoPrint.wiki.git

Clone in Desktop

Use at your own risk.

a. If you use a stable raspbian, you will have to update your gcc/g++ to a version from
the testing repositories because CuraEngine uses -std=c++11.* THIS IS
ESSENTIAL!! You will need to update it from the jessie repo, not the wheezy repo.
You need gcc 4.8 as a minimum, although gcc 4.7 will also work if you manually
remove the link- time optimization flag (-flto) from the CuraEngine Makefile.
sudonano/etc/apt/sources.list

It should look this this:


debhttp://mirrordirector.raspbian.org/raspbian/wheezymaincontribnonfreerpi

Add another line for jessie so it looks like this:


debhttp://mirrordirector.raspbian.org/raspbian/wheezymaincontribnonfreerpi
debhttp://mirrordirector.raspbian.org/raspbian/jessiemaincontribnonfreerpi

https://github.com/foosel/OctoPrint/wiki/CuraIntegration

1/3

2015/11/23

CuraIntegrationfoosel/OctoPrintWiki

Next,
sudonano/etc/apt/preferences

This file should be empty. Add the following:


Package:*
Pin:releasen=wheezy
PinPriority:900
Package:*
Pin:releasen=jessie
PinPriority:300
Package:*
Pin:releaseo=Raspbian
PinPriority:10

Next,
sudoaptgetupdate
sudoaptgetinstalltjessiegccg++

Now you can run make on CuraEngine.


b. Install Cura and compile CuraEngine:
cd
sudoaptgetinstallpythonwxgtk2.8pythonnumpy
gitclonehttps://github.com/daid/Cura.git
cdCura
gitclonehttps://github.com/Ultimaker/CuraEngine.git
cdCuraEngine
make
cpbuild/*r./
cd..
{echo'#!/bin/sh';echo'PYTHONPATH=.python2mCura.cura"$@"';}>cura.sh
chmod+xcura.sh

3. On another computer with Cura installed, adjust the settings as needed and save
them as CuraConfig.ini by going to File > Save Profile.
4. Copy CuraConfig.ini to the Raspberry Pi and save it as
/home/pi/Cura/config/CuraConfig.ini

5. On another computer with Cura, set you machine settings as needed. Then copy the
file preferences.ini (located under ~/.cura/[version]/ if using Linux) to
/home/pi/.cura/dev/preferences.ini

6. Start Octoprint as normal


7. Open the Settings
8. Under "Features" there is now a "Cura" tab
9. You should see two settings that need to change
a. the location of Cura
b. the Cura configuration file you want to use when printing
10. Set those to
a. /home/pi/Cura/cura.sh
b. /home/pi/Cura/config/CuraConfig.ini
11. Fire up Octoprint and upload an STL instead of GCODE and wait. It is still fairly slow
compared to a faster machine (700MHz stock) but it will eventually complete. You'll
get a popup in OctoPrint when it does.
https://github.com/foosel/OctoPrint/wiki/CuraIntegration

2/3

2015/11/23

CuraIntegrationfoosel/OctoPrintWiki

There's also a YouTube video created by Ross Hendrickson explaining the steps above:
http://www.youtube.com/watch?v=wDj19lJqJnY

2015 GitHub, Inc.

Terms

Privacy

Security

Contact

Help

https://github.com/foosel/OctoPrint/wiki/CuraIntegration

Status

API

Training

Shop

Blog

About

Pricing

3/3

Вам также может понравиться