1
0
Fork 0
mirror of synced 2026-12-06 18:42:25 +00:00
No description
Find a file
Parker Wahle 9a5202bfd7 Bump PyJWT
2022-04-05 15:21:02 +00:00
pylacrosseview JWT check 2022-02-15 08:11:20 -05:00
.gitignore Near complete rework 2022-02-14 16:48:23 -05:00
.replit Bump PyJWT 2022-04-05 15:21:02 +00:00
example.py bump 2022-02-14 17:12:39 -05:00
LICENSE Near complete rework 2022-02-14 16:48:23 -05:00
poetry.lock Bump PyJWT 2022-04-05 15:21:02 +00:00
pyproject.toml Bump PyJWT 2022-04-05 15:21:02 +00:00
README.md Near complete rework 2022-02-14 16:48:23 -05:00

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}")