room temperature monitor

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
psyber
Cacti User
Posts: 84
Joined: Tue Aug 02, 2005 7:18 pm

Post by psyber »

As promised heres a basic cacti script to fetch temps and another to fetch humidity. I didn't bother to comment the temps script too much as its pretty self explanatory. Fetching the humidity however is quite a bit more complex and has quite a bit more commenting. The humidity script actually reads the temp too but doesn't output it, let me know if that functionality is desired and I'll see what I can do. I dont check humidity as often as it doesn't usually change radically and the processing required on the ha7net and in the script is considerably more than just grabbing the temp especially when you get upwards of 30 probes attached.

I haven't actually tested these with cacti but the output looks clean and the readings are accurate. Someone will have to do up the xml, or you can wait on me, but it will be awhile before I can get back to this. Please let me know if this works or not or if you need it to do something else (like another family of onewire device) Also I have not tested this under windows (Though I can't see any reason why it wouldn't work) so if I need to tweak it there let me know.

usage: (where {ip} is the ip address of the ha7net server and {address} is the onewire bus address of the probe)
./query_ha7net_temps.pl {ip} index
Returns the addresses of all connected temp sensors
./query_ha7net_temps.pl {ip} num_indexes
Returns the number of temp sensors
./query_ha7net_temps.pl {ip} query
Returns all addresses and their current reading
./query_ha7net_temps.pl {ip} get {address}
Returns the reading for a single sensor

./query_ha7net_humidity.pl{ip} index
Returns the addresses of all connected humidity sensors
./query_ha7net_humidity.pl{ip} num_indexes
Returns the number of humidity sensors
./query_ha7net_humidity.pl {ip} query
Returns all addresses and their current reading
./query_ha7net_humidity.pl {ip} get {address}
Returns the reading for a single sensor

One last thing- be sure to adjust the perl path in the scripts to your environment and the usename/password of the ha7, oh yeah and chmod the script so it's executable by your poller (hmmm that was 3 things :-? )

----EDIT---
The scripts i had up here no longer work with the current firmware. I am in the process of updating these scripts and I will post them up here when everything is ironed out.
the new version will support both temp and humidity and will have all the xml and templates required for importing to cacti. Special thanks go to Phibes for the use of his equipment and permission to release this as open-source.
Last edited by psyber on Tue Apr 11, 2006 1:16 pm, edited 2 times in total.
Diceman
Cacti User
Posts: 142
Joined: Tue Oct 25, 2005 10:01 am

Post by Diceman »

thank you much sir. i have lots of time to wait and i wont be able to get my hands on one of these units for a bit so i wont be able to test anytime soon. im sure it will do what i need it to do no problem. thanks again!
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

messpc is also good.
we use it with cacti.
if you search in templates, you will find my skript for mess PC and cacti.

greez Jan
User avatar
psyber
Cacti User
Posts: 84
Joined: Tue Aug 02, 2005 7:18 pm

Post by psyber »

I now have a beta script out for the HA7Net
see this thread for details.
Diceman
Cacti User
Posts: 142
Joined: Tue Oct 25, 2005 10:01 am

Post by Diceman »

total sweetness. i had all but forgotten about this thread and then the desire was revived by my boss at work building a rabbit and hooking a temp sensor up to it. i figured 1wire would be the way to go, i just needed a "cheap" controller box. those are becoming hard to find i think. most that i found were about 220-280 each, too much for a side toy. thanks again and i will be jumping in here in the next few weeks once i get all of this ironed out.

where have you bought your sensors from? i have found at http://hobby-boards.com they have temperature sensors with dual RJ-45 jacks run for about 21 bucks each. i figure those would be easy to daisy together in my configuration, just need to find a housing of some sort for it since these sensors will be mounted on the ceilings in the center of the rooms in my house.
User avatar
psyber
Cacti User
Posts: 84
Joined: Tue Aug 02, 2005 7:18 pm

Post by psyber »

The scrips I wrote are specifically for the HA7Net. That little box takes a lot of the work out of 1-wire and it realitivly cheap. I have written scripts for the HA5 series and they are a real pain, very low level and lots of room for mistakes. As far as the sensors go if you use one that is supported (i.e. Families 10,26,28 for temp and Family 12 for humidity) they should work with the HA7Net. I have a cat-5 rope I built with 7 temp sensors that cost aboyt $5.00 each and it works just fine with the HA7Net. The only gotcha on it is the spacing of the sensors but thats a 1-wire signal reflection thing similar to ethernet over coax. I get most of my stuff from EDS the have awsome customer service and great tech support. Their prices are a bit more but getting quick and accurate responses from tech support is more important than the $ where I work now.
User avatar
psyber
Cacti User
Posts: 84
Joined: Tue Aug 02, 2005 7:18 pm

Post by psyber »

I'm in the process of working on an updated version for the new HA7Net firmware release. It adds support for the AAG humidity/temp sensors which are about 1/3 cheaper than the EDS ones. I don't currently have any of the AAG sensors. Does anyone out there have a HA7Net with the newest firmware and an AAG humidity/temp sensor I could get some data from to update these scripts?
Post Reply

Who is online

Users browsing this forum: manel and 1 guest