COMPLETE Octoprint: Add Shutdown command

Discussion in 'Guides, Mods, and Upgrades' started by Madeinoz67, Mar 8, 2016.

  1. Madeinoz67

    Madeinoz67 Active Member

    Joined:
    Sep 8, 2015
    Messages:
    38
    Likes Received:
    12
    Octoprint out of the box does not come configured with the shutdown command.

    You will need to shutdown octoprint cleanly before cycling power or shutting down the BigBox else you risk file corruption on the RaspberryPi (at least backup up once you finish configuring Octoprint)

    Do do this add the following:

    [​IMG]
     
    Old_Tafr and Stefan like this.
  2. Stefan

    Stefan Well-Known Member

    Joined:
    Feb 17, 2016
    Messages:
    323
    Likes Received:
    43
    Nice tipp, but I think I will install one of these http://cw2.de/piusv/

    Sometimes you can get the none + version for 10 Euro and they work fine for my raspberry 2 b+ ( the one with 40 pins)


    PI UPS I have the none + version... which looks like have a battery drain issue, maybe the pi ups+ is better or this one MoPowerUPS
     
    #2 Stefan, Mar 8, 2016
    Last edited: Mar 8, 2016
  3. Madeinoz67

    Madeinoz67 Active Member

    Joined:
    Sep 8, 2015
    Messages:
    38
    Likes Received:
    12
    a much better solution
     
  4. JohnEsc

    JohnEsc Well-Known Member

    Joined:
    Sep 4, 2015
    Messages:
    229
    Likes Received:
    144
    I added this based on this screenshot... Does this mean that if it was blank before and I was using the shutdown command from the System dropdown menu that it wasn't properly shutting down before?
     
  5. Stefan

    Stefan Well-Known Member

    Joined:
    Feb 17, 2016
    Messages:
    323
    Likes Received:
    43
    I tested it... with an empty "shutdown command" and...

    Code:
    64 bytes from 8.8.8.8: icmp_req=22 ttl=45 time=31.7 ms
    64 bytes from 8.8.8.8: icmp_req=23 ttl=45 time=33.5 ms
    
    Broadcast message from root@octopi (Sat Apr 30 15:38:08 2016):
    
    The system is going down for system halt NOW!
    64 bytes from 8.8.8.8: icmp_req=24 ttl=45 time=34.0 ms
    
    also fährt der Pi normal runter....

    Oh :) the Pi shuts down normally, so no command is needed by default, maybe this is for special setup, but I think it does no harm to have it.
    bye
     
    Madeinoz67 and JohnEsc like this.

Share This Page