Help for monitoring my own weather station

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Help for monitoring my own weather station

Post by websat »

Hi
I have a personal weather station, Vantage Pro 2 from davis intruments, i want to monitoring the weather station with cacti, i have the davis software (weatherlink) who create graph and html page with the weather data:

http://www.websat-telecom.com/?page=releves

http://www.websat-telecom.com/?page=releves-1-jour

is there someone who can help me ?, thanks.
Visit my web site: http://www.websat-telecom.com
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Does the program spit out the raw numbers anywhere? If so, then you can write a script to parse them and feed it to cacti.
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

the software can write en txt file with the data, i do know how to create a script :cry:
Visit my web site: http://www.websat-telecom.com
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Look into a writing a Perl script. Paste a sample of the text file and I'll see what I can do.
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

great, thanks for the help...

http://www.websat-telecom.com/downld02.txt
Visit my web site: http://www.websat-telecom.com
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ok, got the script done. Since the vantage software writes the log file every minute, I have the script read the last entry.

Code: Select all

c:\perl vantagepro.pl downld02.txt
tempout:14.8 hitemp:14.8 lowtemp:14.8 outhum:81 dewpt:11.5 windspeed:0.0 winddir:--- windrun:0.00 windhigh:0.0 windhidir:--- windchill:14.8 heatindex:14.7 thwindex:14.7 bar:1026.2 rain:0.00 rainrate:0.0 heatdd:0.002 cooldd:0.000 intemp:23.3 inhum:46 windsamp:23 windtx:1 iisrecept:100.0 arcint:1
You're going to have to create the data input method, graph template and data template. You might want to use other weather templates on the forum for a guide.
Attachments
VantagePro.rar
VantagePro perl script.
(2.48 KiB) Downloaded 158 times
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

Thanks for your work, i will try to create the templates :P
Visit my web site: http://www.websat-telecom.com
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

i pick up cacti_host_template_accuweather and try to adapt it for the perl script VantagePro.pl, i have no data in the graph
Attachments
graph_83_1.png
graph_83_1.png (24.3 KiB) Viewed 2818 times
cacti_host_template_vantage_pro.xml
modified template
(60.88 KiB) Downloaded 324 times
Visit my web site: http://www.websat-telecom.com
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) make sure the data input method fields match the ones the script spits out.
2) you'll need to update the rest of the associated templates you used to match the fields my script spits out.
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

i try but understand nothing with in the templates :oops:
pfff, :-?
Visit my web site: http://www.websat-telecom.com
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Turn the polling level in cacti to debug (Settings | Polling level) for one cycle and paste the output of the actual log file (./cacti/log/cacti.log). If it contains WEBLOG entries, then don't bother posting since they just clutter up the log. Turn off WEBEVENTS logging and try again.

Look for the data being returned by the script.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests