Davis::VantagePro - Weather Station reading, logging & configuring

I recently bought a Davis VantagePro2 weather station. Naturally I want to get the data out of this on my Linux system, but when I looked at the available programs I discovered they were more targeted at presenting it in a web page than recording it for posterity.Newer versions of 'vproweather' will save stuff in a MySQL database, but I looked at the code and concluded that I could go blind trying to add support for PostgreSQL to that!So I downloaded the latest Davis Instruments Serial Protocol specifications from their website (Yay: someone who actually releases the docs on how to talk to their gear! :-) and made merry with some perl.I've been doing Perl on and off for maybe ten years now, but I would say I am by no means an expert, so there are likely to be things that a real Perl guru would do better than I have here. If you are such a person I would love to see patches from you which will teach me to do it better :-)Meanwhile, if you're a mere mortal like me, and wish to write Perl code or shell scripts to fetch and display data from your Davis Vantage series weather station then by all means download the code and use it to your heart's content. The code is licensed under the terms of the Artistic License v2.0, which is a fairly relaxed sort of a license.Getting the CodeThe source code repository is at http://gitorious.org/davis-vantageproGetting HelpI doubt there's going to be a huge rush flocking to use this, so just e-mail me if you want to submit a change. Or send me a cheque if you think it's so awesome I should be paid, and you don't want to leave the job to someone else.You can also catch me in the #davical channel on irc.oftc.net if you have questions about it and want to chat.

I recently bought a Davis VantagePro2 weather station. Naturally I want to get the data out of this on my Linux system, but when I looked at the available programs I discovered they were more targeted at presenting it in a web page than recording it for posterity.

Newer versions of 'vproweather' will save stuff in a MySQL database, but I looked at the code and concluded that I could go blind trying to add support for PostgreSQL to that!

So I downloaded the latest Davis Instruments Serial Protocol specifications from their website (Yay: someone who actually releases the docs on how to talk to their gear! :-) and made merry with some perl.

I've been doing Perl on and off for maybe ten years now, but I would say I am by no means an expert, so there are likely to be things that a real Perl guru would do better than I have here. If you are such a person I would love to see patches from you which will teach me to do it better :-)

Meanwhile, if you're a mere mortal like me, and wish to write Perl code or shell scripts to fetch and display data from your Davis Vantage series weather station then by all means download the code and use it to your heart's content. The code is licensed under the terms of the Artistic License v2.0, which is a fairly relaxed sort of a license.

Getting the Code

The source code repository is at http://gitorious.org/davis-vantagepro

Getting Help

I doubt there's going to be a huge rush flocking to use this, so just e-mail me if you want to submit a change. Or send me a cheque if you think it's so awesome I should be paid, and you don't want to leave the job to someone else.

You can also catch me in the #davical channel on irc.oftc.net if you have questions about it and want to chat.

wview

Howdy, congrats on the purchase, I got the same one awhile back and have been very happy with it. I looked around and went with http://www.wviewweather.com which is debian centric. Did you look into that one?

Nope: I missed Wview entirely :-)

No, my poor googling did not manage to uncover it. It would have been nice to have found it as it looks much better than the vproweather one that I did find. Sometimes it is good to go back to basics though, and I had a very enjoyable time putting this together.

My code follows more of a 'small tools' approach, only attempting to provide an interface to the device, and allowing the user to easily apply that for database or web page updates, or to fill out some other format and then use a different tool for actually apply the results to a database.

This means that it's probably less useful to most people as-is (some minor scripting is probably needed for even trivial uses), however but it might be useful to someone wanting to do more unusual things with the SQL data. I tend to view shell scripts as places to store configuration values.

Regards,
Andrew.

Davis datalogger dongle not required

Hi. You might be interested in my finding that a PC can be easily interfaced to the Davis console without needing to purchase their expensive Weatherlink + datalogger.

http://madscientistlabs.blogspot.com/2011/01/davis-weatherlink-software-not-required.html

I'll have to try your scripts when I get some time, but I suspect that the commands that don't try to pull the historical data out of the datalogger's memory would work without changes.

[D] [Digg] [FB] [R] [SU] [Tweet]