Communication tools for the Davis VantagePro2 devices.
Python CSS Shell
Switch branches/tags
Nothing to show
Clone or download
SalemHarrache Merge pull request #1 from lazychino/add-usb-serial
feature: add 'from_serial' to support comunication to console via usb
Latest commit 4afecfc Aug 19, 2014



PyVantagePro is a python project which aims to make the communication with weather stations Davis VantagePro2 easier and funnier...i.e. more Pythonic.

The main feature of this project is to get data automatically. In order to do so, it uses the basic methods get_archives() (to get archive data) and get_current_data() (to get real-time data).

About configuration, it only uses gettime() and settime() because we are assuming that stations are already configured.

Note: PyVantagePro uses the PyLink lib, offers a universal communication interface with File-Like API.


>>> from pyvantagepro import VantagePro2
>>> device = VantagePro2.from_url('tcp:host-ip:port')
>>> device.gettime()
2012-06-13 16:44:56
>>> data = device.get_current_data()
>>> data['TempIn']
>>> data.raw
4C 4F 4F ... 0D E6 3B
>>> data.filter(('TempIn', 'TempOut', 'SunRise', 'SunSet')).to_csv()


  • Collecting real-time data as a python dictionary
  • Collecting archives as a list of dictionaries
  • Collecting data in a CSV file
  • Updating station time
  • Getting some information about the station, such as date and firmware version.
  • Various types of connections are supported
  • Comes with a command-line script
  • Compatible with Python 2.6+ and 3.x


You can install, upgrade, uninstall PyVantagePro with these commands:

$ pip install pyvantagepro
$ pip install --upgrade pyvantagepro
$ pip uninstall pyvantagepro

Or if you don't have pip:

$ easy_install pyvantagepro


See documentation here: