<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Nov 14, 2014, at 6:16 AM, Greg Vickers <<a href="mailto:daehenoc@iinet.net.au">daehenoc@iinet.net.au</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite">
  

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi all,<br>
    <br>
    I've finally gotten around to setting up the netbook that controls
    my UPS and I would like to make sure that I've got the metacode
    correct before configuring nut :)<br>
    <br>
    Here's what I've got:<br>
    Belkin UPS F6C120auUNV<br>
    <ul>
      <li>Batteries recently replaced</li>
      <li>On battery: 24 port switch, PoE AP, antenna power booster,
        ADSL modem, MythTV server, 19" monitor</li>
      <li>
        On surge protection: Netbook (details below)</li>
      <li>I would like the UPS to turn off at 20% battery capacity</li></ul></div></blockquote><div>I'm assuming the "120" means "1200 VA", like this model:</div><div><br></div><div><a href="http://buildbot.networkupstools.org/~buildbot/cayman/docs/latest/ddl/Belkin/Universal_UPS_F6C120-UNV.html">http://buildbot.networkupstools.org/~buildbot/cayman/docs/latest/ddl/Belkin/Universal_UPS_F6C120-UNV.html</a></div><div><br></div>Depending on the UPS settings, you might be able to use upsrw to directly tell the UPS to shut off at 20%, or you might need the "ignorelb" flag:</div><div><br></div><div>   <a href="http://www.networkupstools.org/docs/man/ups.conf.html">http://www.networkupstools.org/docs/man/ups.conf.html</a><br><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000"><ul>
    </ul>
    Netbook with Debian 7.7.0, <br>
    <ul>
      <li>Attached via USB to Belkin UPS</li>
      <li>Battery in netbook lasts three hours, it will outlast the UPS
        by a fair way, so does not need UPS battery supply</li>
      <li>‘master’ where upsd runs</li>
      <li>runs upsc, upsd, upsmon, upsc, nut-cgi, apache, nagios<br></li></ul></div></blockquote><div bgcolor="#FFFFFF" text="#000000"><div>Seems reasonable. One question which you may have already answered: what if the UPS battery gets to 20% and upsmon signals a shutdown - how does the netbook know how to turn back on later?</div><div><br></div><div>If the netbook doesn't have a way to boot back up automatically when the power comes back, you might be able to find a cheap SBC or WiFi router with a USB port, that can run NUT and act as the master. (A few people have discussed using a Raspberry Pi for this.)</div><div><br></div></div><blockquote type="cite"><div bgcolor="#FFFFFF" text="#000000">
    MythTV server with Ubuntu 14.04<br>
    <ul>
      <li>plugged into Belkin UPS</li>
      <li>to be turned off within 5 minutes of loss of supply</li>
      <li>to be turned back on after 15 minutes of return of supply
        (WOL?)<br>
      </li>
      <li>2xSSD drives, 1x4Tb 3.5”, 1x250Gb 2.5”</li>
      <li>‘slave’ system</li>
    </ul>
    I'm digging through the nut documentation now, I'm sure that I can
    configure nut to do all of this... right?<br></div></blockquote><br></div><div>I think you want upsmon to trigger upssched for the "off after 5 minutes" requirement. I don't use upssched myself; hopefully someone else can offer help if needed. If nothing else, we do have source code :-)</div><div><br></div><div>The soft shutdown/WOL part seems possible.</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br></body></html>