1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Web enabled Robo3d using Raspberry Pi and Octoprint

Discussion in 'Mods and Upgrades' started by sjreggel, Feb 19, 2014.

  1. ssshake

    ssshake Member

    Joined:
    Mar 15, 2014
    Messages:
    109
    Likes Received:
    17
    I'm curious, in matter control there's "start gcode" of:

    G28 ; home all axes
    G1 Z5 F5000 ; lift nozzle
    M109 S[temperature] ; set the extruder temp and wait
    G28 Z0 ; Home Z again in case there was filament on nozzle
    M565 Z0
    G29 ; probe the bed

    Where might I set stuff like this in octoprint?

    Also FWIW you don't have to use a webcam you can use an IP cam if you happen to have one around like I did. Just put in the full url to the webcam mjpeg stream including http://user:password@
     
  2. lemuba

    lemuba Active Member

    Joined:
    Jun 22, 2014
    Messages:
    127
    Likes Received:
    135
    There is no need put this stuff in octoprint - it's saved via your slicer as mattercontrol or smplify3d in the gcode file octoprint use to print...
     
  3. ssshake

    ssshake Member

    Joined:
    Mar 15, 2014
    Messages:
    109
    Likes Received:
    17
    Cool so I just go "queue options" -> export gcode?
     
  4. ssshake

    ssshake Member

    Joined:
    Mar 15, 2014
    Messages:
    109
    Likes Received:
    17
    BTW this program might have changed my life.

    I've implemented 3 things that are pretty great.

    1) I've added custom commands under the system menu to power down and power up my printer. I'm accomplishing this through my existing home automation system (x10 in my case). I'm using a three prong appliance module and an api call to be able to toggle the power going to the printer.

    2) I've set up an event to power down my printer 5 minutes after a print has finished. I would like to improve this so that the countdown can be interrupted but haven't decided how best to do that

    3) I've checked all the config in .octoprint in a local git repository so now I have revision control and comments on any changes/tweaks I've made. I think this is going to significantly improve my tuning rather than messing around in desktop software and making mental notes. It will be especially useful because I can correlate the timestamps of the changes relative to the timestamp on the time-lapse video that octoprint creates.

    And of course the simple fact that I can monitor and intervene on really long prints from say my desk at work is going to change how I do things. Thanks for bringing this program up.
     
  5. Yanez

    Yanez Member

    Joined:
    Oct 15, 2014
    Messages:
    48
    Likes Received:
    18
     
  6. ssshake

    ssshake Member

    Joined:
    Mar 15, 2014
    Messages:
    109
    Likes Received:
    17
    I do the same thing network share wise. It's great. Can you provide your yaml config for the custom buttons?
     
  7. Yanez

    Yanez Member

    Joined:
    Oct 15, 2014
    Messages:
    48
    Likes Received:
    18
    well now im re writing the sd card. i got mad so deleted everything in the yaml file to see what it would do. didn't quite work out lol.
     
  8. lemuba

    lemuba Active Member

    Joined:
    Jun 22, 2014
    Messages:
    127
    Likes Received:
    135
    Hello - here it is:

    controls:
    - children:
    - command: M106 S%(speed)s
    input:
    - default: 255
    name: Speed (0-255)
    parameter: speed
    name: Enable Fan
    type: parametric_command
    name: Fan
    type: section
    - children:
    - command: M220 S%(speed)s
    input:
    - default: 100
    name: Speed (50-200)
    parameter: speed
    name: Adjust Speed
    type: parametric_command
    name: Printspeed
    type: section
    - children:
    - command: M221 S%(speed)s
    input:
    - default: 100
    name: Speed (50-150)
    parameter: speed
    name: Adjust Speed
    type: parametric_command
    name: Extruderspeed
    type: section

    But this should also work..???:

    https://github.com/foosel/OctoPrint/wiki/Cookbook:-Custom-Controls
     
    2 people like this.
  9. Yanez

    Yanez Member

    Joined:
    Oct 15, 2014
    Messages:
    48
    Likes Received:
    18
    well here is my fail
     

    Attached Files:

  10. Yanez

    Yanez Member

    Joined:
    Oct 15, 2014
    Messages:
    48
    Likes Received:
    18
    yup thank you for posting your setup. but still no good. I
    1. log in through terminal
    2. cd ~/.octoprint
    3. sudo nano octoprint
    4. paste in before cura
    5. ctrl+o to write
    6. ctrl+x to exit
    7. sudo service octoprint restart
    8. try to log in to octoprint or shutdown the pi reboot and try to log in
    regardless i still get 503 service not available?
     
  11. Yanez

    Yanez Member

    Joined:
    Oct 15, 2014
    Messages:
    48
    Likes Received:
    18
    Ha got it. thank God.
     

    Attached Files:

  12. Tony Janus

    Tony Janus Member

    Joined:
    Mar 30, 2014
    Messages:
    54
    Likes Received:
    31
    Hey all, so I've managed to get this working while on the same network, but how would I access it if I were out of network?
     
  13. Yanez

    Yanez Member

    Joined:
    Oct 15, 2014
    Messages:
    48
    Likes Received:
    18
    Easiest way or at least the way that it works for me is set up port forwarding on your router. Either 80 for both octoprint and camera 5000 for just octoprint or 8080 for the camera. And then set up the dynamic DNS I went with DynDNS.com because that's the only one that my router supported $25 a year.
     
  14. Tony Janus

    Tony Janus Member

    Joined:
    Mar 30, 2014
    Messages:
    54
    Likes Received:
    31
    Hey, thanks so much for the advice. I had no idea about any of this tech. Ended up using http://www.noip.com/ and it worked right off the bat no issues. Much easier than I had originally thought. Definite recommended upgrade, especially with the camera.

    Funny thing, it's very cold here and the air is very dry. Static discharge occurs regularly here, very strong ones, and somehow I shocked my XXL LCD (through the case...) and fried the lcd screen itself. The SD reader is still recognized and accessible by octopi, but the screen is all messed up. This basically just replaced it, and I dont have to spend a dime to repair. Yay!
     
    2 people like this.
  15. drandolph

    drandolph Member

    Joined:
    Aug 15, 2014
    Messages:
    35
    Likes Received:
    24
    So I finally got around to doing Octoprint on my printer and it's great. I've got a bunch of mods I'm doing for power and G-Code but I noticed one thing while setting up access control and I'm curious if anyone else noticed this and might have a fix. The camera and it's stream is always on and not password protected and is on the control page even when you are not logged in. So I won't dare pass it through my firewall because it would just allow anyone to have a camera view into my house. Anyone know if there is a way to lock down the stream and camera view?
     
  16. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,912
    Likes Received:
    7,338
    I just added some strategic cardboard blockers :)
     
  17. drandolph

    drandolph Member

    Joined:
    Aug 15, 2014
    Messages:
    35
    Likes Received:
    24
    OK so I think I found my answer on how to turn off the camera. Check out AmedeeBulle script at the end. The only little change I made is that I put the raspi_streamer.sh into ~/mjpg-streamer and the biggest problem is that sometimes it doesn't start back up right away and I might have to restart octoprint or in some rare cases just reboot. This allows it so you have to log in to start or stop the stream. So it's a start.


    https://github.com/foosel/OctoPrint/issues/441
     
    2 people like this.
  18. bryson bishop

    bryson bishop Member

    Joined:
    Dec 14, 2014
    Messages:
    63
    Likes Received:
    24
    Which version of the raspberry pi is being used for this?
     
  19. Yanez

    Yanez Member

    Joined:
    Oct 15, 2014
    Messages:
    48
    Likes Received:
    18
    I use the b+ but I guess the b works too. 3D printing guides: Getting started with OctoPrin…:
     
  20. drandolph

    drandolph Member

    Joined:
    Aug 15, 2014
    Messages:
    35
    Likes Received:
    24
    I've tried it on the B and B+ and no problems. I want to try it on the A+ to see if less ram is a problem. Personally I like the B+ because it has 4 USB ports which makes it a lot easier to setup. 1 for WiFi one for RAMPS and two for mouse and keyboard while I'm doing the initial setup.
     
    2 people like this.

Share This Page