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

2011-06-22 Thread James Smith
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:clep...@gmail.com] 
Sent: Tuesday, June 21, 2011 7:18 AM
To: James Smith
Cc: 'nut-upsuser@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


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


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

2011-06-22 Thread James Smith
Ok.

I now have everything in place and I get an email when the temp sensor opens

Question - what do I set so the system doesn't shut down when the sensor stays 
open?

Can I just set SHUTDOWNCMD  ?

Or is there a cleaner way

thx


-Original Message-
From: Charles Lepple [mailto:clep...@gmail.com] 
Sent: Tuesday, June 21, 2011 7:18 AM
To: James Smith
Cc: 'nut-upsuser@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


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


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

2011-06-22 Thread Arjen de Korte

Citeren James Smith james.sm...@jofco.com:


I now have everything in place and I get an email when the temp sensor opens

Question - what do I set so the system doesn't shut down when the  
sensor stays open?


The system will only shutdown if you have an OB+LB event at the same  
time. As long as you make sure the system sees either OB or LB, but  
not both, you'll be fine.



Can I just set SHUTDOWNCMD  ?


This isn't needed.

Note that there is a fatal flaw in a setup where opening a contact  
triggers an event. You'll have no way to verify that there is not a  
short in your cable, short of raising the temperature periodically to  
see if you see something changing.


I wouldn't recommend using a temperature switch for anything else than  
a redundant over temperature kill switch, especially since USB  
connected temperature sensors are very cheap nowadays. This would  
allow you to monitor the health of your alarm system much easier.


Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)



___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


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

2011-06-22 Thread James Smith
So how do I make sure it never sees the LB event (or ignores it)? 

The sensor is in an oily boiler room that is prone to water spillages etc., our 
only semi reliable option was a mechanical thermostat style sensor strapped 
directly to a pipe, so usb is pretty much out of the question. 
All I am using this for is to email our maintenance crew if the temp in the 
cooling tower pipe goes over-range as it indicates a situation that can usually 
easily be remedied before it becomes an issue, it has no relation whatsoever to 
the power situation where the NUT software is, I'm just using a framework 
that's already there for something completely unrelated.

The point about the short is a valid one, but I don't think it will be an issue 
(if it ever does become an issue, I can change the sensor out for a normally 
open one and change the driver file accordingly)

-Original Message-
From: nut-upsuser-bounces+james.smith=jofco@lists.alioth.debian.org 
[mailto:nut-upsuser-bounces+james.smith=jofco@lists.alioth.debian.org] On 
Behalf Of Arjen de Korte
Sent: Wednesday, June 22, 2011 11:10 AM
To: nut-upsuser@lists.alioth.debian.org
Subject: Re: [Nut-upsuser] Using NUT to detect a normally closed circuit opening

Citeren James Smith james.sm...@jofco.com:

 I now have everything in place and I get an email when the temp sensor 
 opens

 Question - what do I set so the system doesn't shut down when the 
 sensor stays open?

The system will only shutdown if you have an OB+LB event at the same time. As 
long as you make sure the system sees either OB or LB, but not both, you'll be 
fine.

 Can I just set SHUTDOWNCMD  ?

This isn't needed.

Note that there is a fatal flaw in a setup where opening a contact triggers an 
event. You'll have no way to verify that there is not a short in your cable, 
short of raising the temperature periodically to see if you see something 
changing.

I wouldn't recommend using a temperature switch for anything else than a 
redundant over temperature kill switch, especially since USB connected 
temperature sensors are very cheap nowadays. This would allow you to monitor 
the health of your alarm system much easier.

Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)



___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


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

2011-06-22 Thread Arjen de Korte

Citeren James Smith james.sm...@jofco.com:


So how do I make sure it never sees the LB event (or ignores it)?


By wiring you sensor so that it either sets OB or LB and hard wiring  
the other to the inactive state.


[...]

The point about the short is a valid one, but I don't think it will  
be an issue (if it ever does become an issue, I can change the  
sensor out for a normally open one and change the driver file  
accordingly)


This fails in a similar way - you have no way to determine if the  
sensor is not connected or if it is in the below limit temperature  
range. For an alarm system to be reasonably robust, you need to  
continuously monitor the health of your sensor and interconnect as well.


Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)



___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser


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

2011-06-21 Thread Charles Lepple

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


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser