<div dir="ltr"><div>Hi Charles and the list,<br><br></div><br><div><div><div class="gmail_extra"><div class="gmail_quote">2015-03-30 11:05 GMT+02:00 Arnaud Quette <span dir="ltr"><<a href="mailto:arnaud.quette@gmail.com" target="_blank">arnaud.quette@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Charles,<div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-03-29 0:44 GMT+01:00 Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span>On Mar 25, 2015, at 4:11 AM, Arnaud Quette <<a href="mailto:arnaud.quette@gmail.com" target="_blank">arnaud.quette@gmail.com</a>> wrote:<br>
<br>
> 1) Keep the legacy CHRG / DISCHRG status bits for ups.status, along with the complementary ones for battery.charger.status. And advocate (document) for the use of / switch to the latter, that is more suitable for publishing such information. All that with an impact on all the NUT driver, and a transition period to address that cleanly.<br>
<br>
</span>I prefer this option, for what it's worth. Let's not make ups.status more cluttered.<span><font color="#888888"><br>
</font></span></blockquote></div><br></div></div></div><div class="gmail_extra">so do I.<br></div><div class="gmail_extra">FYI, the patch I committed for ABM use either one or the other.<br></div><div class="gmail_extra">I.e., if ABM support is enabled, status are published on battery.charger.status and CHRG/DISCHRG are not pushed to ups.status.<br></div><div class="gmail_extra">And conversely if ABM is disabled.<br clear="all"></div><span class=""><div class="gmail_extra">
</div></span></div>
</blockquote></div><br>For the sake of completion, I've slightly modified the implementation to provide backward compatibility.<br><br></div><div class="gmail_extra">So, now:<br></div><div class="gmail_extra">- when ABM is enabled, we both publish the following as per the ABM information:<br> * the 5 status bits {charging, discharging, floating, resting, off) under battery.charger.status<br></div><div class="gmail_extra"> * the 2 historical status bits {CHRG, DISCHRG} under ups.status<br></div><div class="gmail_extra">- when ABM is disabled, we just publish the 2 historical status bits {CHRG, DISCHRG} under ups.status, as per UPS.PowerSummary.PresentStatus.{<span class="">Charging<span class="">,Disc</span></span><span class="">harging}, as done previously.<span class=""></span></span></div><div class="gmail_extra"><br></div><div class="gmail_extra">I will complete the implementation and related code documentation notes over the day.<br></div><div class="gmail_extra">I also plan to create a specific user documentation related to that.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">cheers,<br clear="all"></div><div class="gmail_extra">Arno<br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr">Eaton Data Center Automation - Opensource Leader<br>NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br><br></div></div>
</div></div></div></div>