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
Built Distribution
File details
Details for the file ypmeteo-1.0.1b1.tar.gz
.
File metadata
- Download URL: ypmeteo-1.0.1b1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3622919a72a8e267fa0cf08b87469b1044b512e52e890c58c8942781f477d8b3 |
|
MD5 | 2a6a4695ee18055793c302fdf0b07500 |
|
BLAKE2b-256 | 413ae2fc7c58da18c7bddba4aa589d9ad96ac384498ea59b6e8f93e4e22b1d56 |
File details
Details for the file ypmeteo-1.0.1b1-py3-none-any.whl
.
File metadata
- Download URL: ypmeteo-1.0.1b1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9aa84fbd9755363e59c2cf527916297f1481dba1c0148741760d6e988a6c328 |
|
MD5 | 4ec04974f174aafc015dea58906e2554 |
|
BLAKE2b-256 | c0a3d3e069bd3d2386d4470d7f57995807b6f6aea7a8af68327af03d3bbaccb1 |