Skip to main content

Communication tools for the Davis VantagePro2 devices

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvantagepro_marcogos-0.3.21.tar.gz (55.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyVantagePro_MarcoGos-0.3.21-py3-none-any.whl (47.5 kB view details)

Uploaded Python 3

File details

Details for the file pyvantagepro_marcogos-0.3.21.tar.gz.

File metadata

  • Download URL: pyvantagepro_marcogos-0.3.21.tar.gz
  • Upload date:
  • Size: 55.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for pyvantagepro_marcogos-0.3.21.tar.gz
Algorithm Hash digest
SHA256 44e49bf77b2bb19ea8fd6ba85aeec427f1e640765acf7bf1d9c7f79a7475f13e
MD5 38d9ac0bfacf99db0995e54e66bb23f2
BLAKE2b-256 e4c8d412b9f7228aaacb1617aa84d60c30097adbe312dd8753b75bf49e43ba0f

See more details on using hashes here.

File details

Details for the file PyVantagePro_MarcoGos-0.3.21-py3-none-any.whl.

File metadata

File hashes

Hashes for PyVantagePro_MarcoGos-0.3.21-py3-none-any.whl
Algorithm Hash digest
SHA256 b88b17639a6eba276dfdcfea414df5d0da1454f88a8d1bc9399cb81b09060c30
MD5 7f71d9bb8fff4ea5337fd13690a38270
BLAKE2b-256 c482ad9945cd2cf6a345d28b2645ea5d68c453d65151612fc51b0e104c6db90b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page