Python library that allows you to use La Crosse devices that connect with La Crosse View
Project description
pylacrosseview
pylacrosseview
is a python library that allows you to use La Crosse devices that connect with La Crosse View in your python scripts.
Designed for Home Assistant.
See an example below:
from logging import INFO, basicConfig
from os import environ
from pylacrosseview import *
if __name__ == "__main__":
basicConfig(level=INFO)
ws: WeatherStation = WeatherStation()
ws.start(environ["LACROSSE_EMAIL"], environ["LACROSSE_PASSWORD"])
for device in ws.devices:
for field, values in device.states().items():
print(f"Value of {field} on {device} is {values[-1].value} {field.unit}")
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
pylacrosseview-0.1.4.tar.gz
(16.7 kB
view hashes)
Built Distribution
Close
Hashes for pylacrosseview-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a14117c7c7fbc3524eeb6a77376b07bd90b5bb1b18bfbf1b17cf86558df8eb09 |
|
MD5 | 03a473ec27a1798ad7d8660bb590fdd1 |
|
BLAKE2b-256 | 840efcdbbf8831175e9091a57df23e0dc44a0942e402a5e19ff524742195b3bc |