{"id":3698,"date":"2023-08-11T18:11:46","date_gmt":"2023-08-11T22:11:46","guid":{"rendered":"https:\/\/dft.wiki\/?p=3698"},"modified":"2024-04-26T21:03:13","modified_gmt":"2024-04-27T01:03:13","slug":"octoprint-tip-and-tricks","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=3698","title":{"rendered":"OctoPrint Tip and Tricks"},"content":{"rendered":"<p><strong>OctoPrint<\/strong> is most commonly used in a Raspbery Pi using an specific-purpose OS called <strong>OctoPi<\/strong> (nothing more than a Raspbian with OctoPrint installed out-of-the-box) [<a href=\"https:\/\/octoprint.org\/download\/\">Link<\/a>].<\/p>\n<p>Although it can run on any Linux distribution, running on a RPi is much more convenient because it is compact, low-power consumption, and there are camera modules like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3712 size-medium\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/07\/Screenshot-from-2023-07-20-17-03-13-300x187.png\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/07\/Screenshot-from-2023-07-20-17-03-13-300x187.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/07\/Screenshot-from-2023-07-20-17-03-13.png 589w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>To deploy OctoPi in a Reaspberry Pi using official Imager go to <strong>Choose OS &gt; Other Specific-Purpose OS &gt; 3D Printing &gt;<\/strong> then, select <strong>OctoPi<\/strong>.<\/p>\n<p>To install on a Linux host:<\/p>\n<pre>sudo apt install git -y\r\ngit clone https:\/\/github.com\/paukstelis\/octoprint_deploy.git\r\nsudo octoprint_deploy\/octoprint_deploy.sh<\/pre>\n<p>To install as a Docker container:<\/p>\n<pre>sudo apt install git docker.io docker-compose -y \r\ngit clone https:\/\/github.com\/OctoPrint\/octoprint-docker.git\r\ncd octoprint-docker\r\ndocker-compose up -d<\/pre>\n<p>Then, navigate to <strong>http:\/\/127.0.0.1:5000\/<\/strong> or <strong>http:\/\/127.0.0.1\/<\/strong>.<\/p>\n<p><strong>Note:<\/strong> change the loopback IP address accordingly. Port <strong>5000<\/strong> is to access it directly or default port if using a reverse proxy. Check the official documentation to see how to allow the Docker container to get access to the webcam or the USB-Serial port.<\/p>\n<hr \/>\n<p><strong>BASIC UNDERSTANDING<\/strong><\/p>\n<p>OctoPrint is more than just an application but it is a framework where developers can build their <strong>Plugins<\/strong> (extension like applications) on top.<\/p>\n<p>Most popular Plugins:<\/p>\n<ul>\n<li><strong>Bed Visualizer<\/strong>\n<ul>\n<li>Allow one to visualise and read the values of the misalignment and distortion of the printing bad for best adjustment.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Octolapse<\/strong>\n<ul>\n<li>It replaces the native timelapse feature enhancing the existing feature with much more control and capabilities for a great image stabilisation and tailored parameters.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>There are two ways of <strong>printing through Octoprint<\/strong>. From SD (memory card inserted to the printed) or Local (internal storage of the Octopi or Linux host).<\/p>\n<ul>\n<li>Printing from SD\n<ul>\n<li>Does not require to be connected during the whole process because it instructs the printer to work autonomously while it simple supervise the metrics.<\/li>\n<li>Many features are not allowed on this mode because Octoprint hands over the control to the printer.<\/li>\n<li>When transferring files to the SD via Octoprint, the bandwidth of the USB connection is limited to the 115,200 of the serial connection (extremely slow).<\/li>\n<\/ul>\n<\/li>\n<li>Printing from Local\n<ul>\n<li>It requires the Octoprint to be connected and operating all time while printing.<\/li>\n<li>Octoprint will be send each position command to the printer via USB as it does its job.<\/li>\n<li>When transferring files to the local memory it works as fast as the host&#8217;s hardware is capable of.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>There is a section in the configuration called <strong>Event Manager<\/strong> that allows executing shell commands when specific events happen.<\/p>\n<p>In my case I have a PiHat that has RGB LEDs that I use to visually inform what is the current status of the printer or the printing process plus sending me email when it completes or fails (virtually, anything you want):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3787\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/08\/Screenshot-from-2023-08-11-18-04-25.png\" alt=\"\" width=\"984\" height=\"699\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/08\/Screenshot-from-2023-08-11-18-04-25.png 984w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/08\/Screenshot-from-2023-08-11-18-04-25-300x213.png 300w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/08\/Screenshot-from-2023-08-11-18-04-25-768x546.png 768w\" sizes=\"auto, (max-width: 984px) 100vw, 984px\" \/><\/p>\n<hr \/>\n<p><strong>BONUS<\/strong><\/p>\n<p>In <strong>Octolapse<\/strong>, this is the profile parameters that worked for me for an Ender 3 V2 Neo with PLA to stop drooping and strings when travelling for image stabilisation:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3786 size-full\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/08\/Screenshot-from-2023-08-11-17-41-18.png\" alt=\"\" width=\"438\" height=\"501\" srcset=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/08\/Screenshot-from-2023-08-11-17-41-18.png 438w, https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/08\/Screenshot-from-2023-08-11-17-41-18-262x300.png 262w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3791\" src=\"https:\/\/dft.wiki\/wp-content\/uploads\/sites\/15\/2023\/08\/ezgif.com-SpoolSupport.gif\" alt=\"\" width=\"600\" height=\"450\" \/><\/p>\n<hr \/>\n<p><strong>READ MORE<\/strong><\/p>\n<p>3D Printing Tips and Tricks [<a href=\"https:\/\/dft.wiki\/?p=3696\">Link<\/a>]<\/p>\n<p>Motorizing Pan Tilt on Celestron Telescope [<a href=\"https:\/\/dft.wiki\/?p=3714\">Link<\/a>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OctoPrint is most commonly used in a Raspbery Pi using an specific-purpose OS called OctoPi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-3698","post","type-post","status-publish","format-standard","hentry","category-3d-printing"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3698"}],"version-history":[{"count":6,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3698\/revisions"}],"predecessor-version":[{"id":4208,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/3698\/revisions\/4208"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}