https://github.com/ndf-zz/ypmeteo
Read data from Yocto-Meteo module with pyusb
https://github.com/ndf-zz/ypmeteo
pyusb yocto-meteo
Last synced: 4 months ago
JSON representation
Read data from Yocto-Meteo module with pyusb
- Host: GitHub
- URL: https://github.com/ndf-zz/ypmeteo
- Owner: ndf-zz
- License: mit
- Created: 2022-05-26T07:19:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-15T03:30:06.000Z (about 4 years ago)
- Last Synced: 2025-12-15T03:55:13.418Z (7 months ago)
- Topics: pyusb, yocto-meteo
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ypmeteo
ypmeteo is a python library for extracting temperature, humidity
and pressure data directly from a Yoctopuce
[Yocto-Meteo](https://www.yoctopuce.com/EN/products/usb-sensors/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](https://www.yoctopuce.com/EN/libraries.php)
or virtual hub may be a better fit.
Meteo-V2 is untested.
## Requirements
- pyusb (libusb)
## Links
- Product page: [Yoctopuce Meteo](https://www.yoctopuce.com/EN/products/usb-sensors/yocto-meteo)
- Yocto API: [Libraries](https://www.yoctopuce.com/EN/products/usb-sensors/yocto-meteo)