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
- Product page: Yoctopuce Meteo
- Yocto API: Libraries
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
ypmeteo-1.0.1b1.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for ypmeteo-1.0.1b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9aa84fbd9755363e59c2cf527916297f1481dba1c0148741760d6e988a6c328 |
|
MD5 | 4ec04974f174aafc015dea58906e2554 |
|
BLAKE2b-256 | c0a3d3e069bd3d2386d4470d7f57995807b6f6aea7a8af68327af03d3bbaccb1 |