Communication tools for the Davis VantagePro2 devices
Project description
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.
Examples
>>> 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']
87.3
>>> data.raw
4C 4F 4F ... 0D E6 3B
>>> data.filter(('TempIn', 'TempOut', 'SunRise', 'SunSet')).to_csv()
TempIn,TempOut,SunRise,SunSet
87.3,71.5,03:50,19:25
Features
Collecting real-time data as a python dictionary
Collecting archives as a list of dictionaries
Collecting high/low values as a python dictionary
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
Configure Archive Period
Set Yearly Rain
Installation
You can install, upgrade, uninstall PyVantagePro with these commands:
$ pip install PyVantagePro-MarcoGos $ pip install --upgrade PyVantagePro-MarcoGos $ pip uninstall PyVantagePro-MarcoGos
Documentation
See documentation here: http://pyvantagepro.readthedocs.org
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyvantagepro_marcogos-0.3.18.tar.gz.
File metadata
- Download URL: pyvantagepro_marcogos-0.3.18.tar.gz
- Upload date:
- Size: 55.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39ad20ef1f13abd0b29e6571e667259e9911c1212495a1472094e60f47cb2e7c
|
|
| MD5 |
1128423fb9425d2aa0dff7f684e69530
|
|
| BLAKE2b-256 |
0e78e2a1fc1ebba9600b1cd4b77f508e2b3ef607e0076a291bf651faf777dffd
|
File details
Details for the file PyVantagePro_MarcoGos-0.3.18-py3-none-any.whl.
File metadata
- Download URL: PyVantagePro_MarcoGos-0.3.18-py3-none-any.whl
- Upload date:
- Size: 47.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
736155986e5519cb837f275e0d3c106556b0953227a1934a4f48959a9a223f29
|
|
| MD5 |
bf333c131bb73fd87570b09839b6e0e9
|
|
| BLAKE2b-256 |
da6cd8e25e7369a8baed830286c605336c8d65ac19363890f5ec17da19c15fef
|