Skip to main content

Read data from Yocto-Meteo module with pyusb

Project description

ypmeteo

ypmeteo is a python library for extracting temperature, humidity and pressure data directly from a Yoctopuce Yocto-Meteo USB weather module using libusb.

Installation

$ pip install ypmeteo

ypmeteo requires read/write access to a USB device file, see (60-ypmeteo.rules) for an example udev rule to place an attached Yocto-Meteo device in group plugdev.

Usage

with ypmeteo.connect() as m:
    print('{0:0.1f} °C'.format(m.t))
    print('{0:0.0f} %rh'.format(m.h))
    print('{0:0.1f} hPa'.format(m.p))

Limitations

This library will only read from the first detected Yocto-Meteo module (USB id 24e0:0018). If support for additional units is required, Yoctopuce API or virtual hub may be a better fit.

Meteo-V2 is untested.

Requirements

  • pyusb (libusb)

Links

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

ypmeteo-1.0.1b1.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

ypmeteo-1.0.1b1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

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