<div dir="ltr"><div><div><div><div>Sending the events to a file turned turned out to be easier than I imagined. I just put the following in the NOTIFYCMD shell script:<br><br></div>echo $(date) "$*" >> /home/john/upsmon_events.txt <br></div><br>and the events are logged to the file. I did CHMOD 666 on the file so I can delete old events. Don't need notify-send. YEAH ! I do occasionally us the PyNUT app to run battery test and look at the health of the ups. And yes, if it is running I get 'notify-send' type messages. Butr again, if I am present it doesn't really matter. It's what happens when I am away that I want to know about. The 'logger' will get me what I want. <br><br></div>Thanks,<br></div>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 23, 2015 at 6:37 AM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sep 22, 2015, at 11:27 AM, Thomas Charron <<a href="mailto:twaffle@gmail.com">twaffle@gmail.com</a>> wrote:<br>
><br>
> On Tue, Sep 22, 2015 at 9:56 AM, John Hart <<a href="mailto:jsamcr@gmail.com">jsamcr@gmail.com</a>> wrote:<br>
>> notify-send<br>
><br>
> notify-send needs a DBUS_SESSION_BUS_ADRESS to work right. Look around for code snippets to get this.<br>
<br>
</span>Ah, that notify-send. Another option is to launch the PyNUT app in your xsession (or equivalent) - it will also display GUI notifications. In Debian, it is in the package "nut-monitor". I haven't used this personally, though.<br>
<br>
Either way, please let us know what we can do to expand the NUT documentation on this topic.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Charles Lepple<br>
clepple@gmail<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>