{"id":2806,"date":"2013-10-13T12:44:47","date_gmt":"2013-10-13T17:44:47","guid":{"rendered":"http:\/\/www.summet.com\/blog\/?p=2806"},"modified":"2013-10-13T20:21:26","modified_gmt":"2013-10-14T01:21:26","slug":"using-a-raspberry-pi-as-a-reprap-print-host-with-webcam","status":"publish","type":"post","link":"https:\/\/www.summet.com\/blog\/2013\/10\/13\/using-a-raspberry-pi-as-a-reprap-print-host-with-webcam\/","title":{"rendered":"Using a Raspberry Pi as a RepRap print host with webcam"},"content":{"rendered":"<p>I set up a Raspberry Pi as a print host for my RepRap (using the Pi Camera Board as a webcam to view the print status). Here are my summary steps:<\/p>\n<ol>\n<li>Install Rasberrian and update it.<\/li>\n<li>Configure your system to enable wifi (if used) and camera board (if used) and enable the SSH server if you want to remotely administer the pi board using the &#8220;sudo raspi-config&#8221; command (you may also want to tweak your overclocking settings here, I&#8217;m using &#8220;Moderate&#8221;)<\/li>\n<li>Install OctoPrint following directions here: https:\/\/github.com\/foosel\/OctoPrint\/wiki\/Setup-on-a-Raspberry-Pi-running-Raspbian<\/li>\n<li>If you have a camera board, you may need to update your pi firmware (sudo apt-get install rpi-update; sudo rpi-update)<\/li>\n<li>To get the camera board set up as a streaming webcam, install mjpg-streamer experimental version from here:<br \/>\n&#8220;git clone https:\/\/github.com\/jacksonliam\/mjpg-streamer&#8221;<\/li>\n<li>You can compile it on the Pi using these instructions:<br \/>\nhttp:\/\/www.instructables.com\/id\/Create-an-internet-controlled-robot-using-Livebots\/step5\/Get-the-webcam-streamer-for-Raspberry-Pi\/  (ignoring the step to download from sourceforge.net)\n<\/li>\n<li>Install the plugins to \/usr\/local\/lib with &#8220;sudo make install&#8221;. Copy the www directory to the same location.<\/li>\n<li>Start the webcam streamer:  mjpg_streamer -o &#8220;\/usr\/local\/lib\/output_http.so -w \/usr\/local\/lib\/www&#8221; -i &#8220;\/usr\/local\/lib\/input_raspicam.so  -x 640 -y 480&#8221; <\/li>\n<li>Start OctoPrint (&#8220;OctoPrint\/run&#8221;)<\/li>\n<li>Test it by pointing your browser to your raspberry pi&#8217;s IP address, port 8080 for the mjpg-stream and port 5000 for OctoPrint<\/li>\n<li>When all that works, put some commands in your \/etc\/rc.local file to start them both up whenever your Pi boot sup. I used: su pi -c &#8216;\/home\/pi\/OctoPrint\/run&#8217; &#038;  AND  su pi -c &#8216;\/usr\/local\/bin\/mjpg_streamer  -o &#8220;\/usr\/local\/lib\/output_http.so -w \/usr\/local\/lib\/www&#8221; -i &#8220;\/usr\/local\/lib\/input_raspicam.so  -x 640 -y 480&#8221; &#8216; &#038; <\/li>\n<\/ol>\n<p>My Thoughts: Everything works great on a wired (ethernet) connection, but my wifi adapter is performing extremely poorly for streaming video of the printer.  Also, why can&#8217;t the camera board just have V4L support out of the box?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I set up a Raspberry Pi as a print host for my RepRap (using the Pi Camera Board as a webcam to view the print status). Here are my summary steps: Install Rasberrian and update it. Configure your system to &hellip; <a href=\"https:\/\/www.summet.com\/blog\/2013\/10\/13\/using-a-raspberry-pi-as-a-reprap-print-host-with-webcam\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,3,13],"tags":[],"class_list":["post-2806","post","type-post","status-publish","format-standard","hentry","category-commentary","category-linux","category-projects"],"_links":{"self":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/2806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/comments?post=2806"}],"version-history":[{"count":0,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/posts\/2806\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/media?parent=2806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/categories?post=2806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.summet.com\/blog\/wp-json\/wp\/v2\/tags?post=2806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}