[Nut-upsuser] Using NUT to detect a normally closed circuit opening

James Smith james.smith at jofco.com
Wed Jun 22 12:40:37 UTC 2011


I looked at the docs for the generic ups and I get how to configure the driver, my problem is I cant seem to get the sensor to change any of the pin states when it opens - not being an electronics genius, I was hoping somebody who was could tell me what to wire to where to get the pins to change state when the contact opens

Thx



-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com] 
Sent: Tuesday, June 21, 2011 7:18 AM
To: James Smith
Cc: 'nut-upsuser at lists.alioth.debian.org'
Subject: Re: [Nut-upsuser] Using NUT to detect a normally closed circuit opening

On Jun 20, 2011, at 2:09 PM, James Smith wrote:

> I have a temperature sensor (normally closed) that opens when it 
> reaches a pre-defined temp. what I am trying to do is use NUT to look 
> for the circuit opening and trigger an action (email or whatever). Is 
> there a NUT ups driver I can use to do this? If so, does anybody know 
> which pins on the serial I should connect the sensor to?
>
Someone else might have some suggestions about which pins to use, but the genericups driver is the one which allows you to choose which pins map to various states:

http://www.networkupstools.org/docs/man/genericups.html#_custom_configurations

You probably want to map the sensor to the on line/on battery states, since the low battery state is meant to be a one-way trip to shutting down the system. The OL and OB states mentioned in the genericups man page will trigger the first two notifications listed here:

http://www.networkupstools.org/docs/man/upsmon.html#_notify_events




More information about the Nut-upsuser mailing list