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.28

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.28
File Size Uploaded
pyvantagepro_marcogos-0.3.28.tar.gz 59.3 kB Details

Built distribution (wheel)

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

Total release size: 110.6 kB

Release files / pyvantagepro_marcogos-0.3.28.tar.gz

Download URL pyvantagepro_marcogos-0.3.28.tar.gz
Size 59.3 kB
Tags Source
SHA-256 checksum
How to use checksums
883525c168174a2675551ae2ab941736fc60f117668e8f04f933babfbab60493
BLAKE2b-256 checksum
How to use checksums
99add2830b0b884667b369a6e96e0d0dd064f51cdb393b0bbeffa60e29541c66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / pyvantagepro_marcogos-0.3.28-py3-none-any.whl

Download URL pyvantagepro_marcogos-0.3.28-py3-none-any.whl
Size 51.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04c1fec3b2a60c0a7a7aac514d994abd0d4842c36da85994c49d6be6f645ebde
BLAKE2b-256 checksum
How to use checksums
39770ecf6a5b790b222669872aff71769cc145af6732c5b5bd006f917dc1e845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

0.3.29

2 release files

This release

0.3.28 This release

2 release files

0.3.27

2 release files

0.3.26

2 release files

0.3.25

2 release files

0.3.24

2 release files

0.3.23

2 release files

0.3.22

2 release files

0.3.12

1 release file

0.3.11

1 release file

0.3.10

1 release file

0.3.9

1 release file

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