Skip to main content

PyVantagePro

https://pypip.in/v/PyVantagePro/badge.png https://pypip.in/d/PyVantagePro/badge.png https://travis-ci.org/SalemHarrache/PyVantagePro.png?branch=master

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

  • Set Rail Collector

  • Write to EEPROM

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

Metadata

Release files for PyVantagePro-MarcoGos 0.3.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyVantagePro-MarcoGos 0.3.19
File Size Uploaded Provenance Actions
pyvantagepro_marcogos-0.3.19.tar.gz 55.6 kB Without provenance Details for pyvantagepro_marcogos-0.3.19.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PyVantagePro-MarcoGos 0.3.19
File Interpreter ABI Platform Actions
PyVantagePro_MarcoGos-0.3.19-py3-none-any.whl Python 3 none any Details for PyVantagePro_MarcoGos-0.3.19-py3-none-any.whl

Total release size: 102.9 kB

Release files / pyvantagepro_marcogos-0.3.19.tar.gz

Download URL pyvantagepro_marcogos-0.3.19.tar.gz
Size 55.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3c3c23b70e9148aa8c370975592785282112f9fd2d9c6c0948e7e0e9d9edd340
BLAKE2b-256 checksum
How to use checksums
2448245b7a127763c3c0c23fc1ddb21a2c0144ec500f429819e33afe0c0f4da1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / PyVantagePro_MarcoGos-0.3.19-py3-none-any.whl

Download URL PyVantagePro_MarcoGos-0.3.19-py3-none-any.whl
Size 47.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8255ec809e906f68aa170bb6e096ac41845c4346bf46161c2406f5343c4eb826
BLAKE2b-256 checksum
How to use checksums
ad528564b067b5eae19bcda8fe38f41ba704076699f603d05f26e373e73fbca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Security for PyVantagePro-MarcoGos 0.3.19

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page