icebotyt / lacrosse_view Goto Github PK
View Code? Open in Web Editor NEWA Python library for communicating with La Crosse View-connected devices
License: MIT License
A Python library for communicating with La Crosse View-connected devices
License: MIT License
The LaCrosse C82929 Wi-Fi Projection Alarm Clock has an option to display custom text strings, set via the phone app. Any chance you found some API to change those, while reverse engineering sensors and whatnot?
Could we please get the device_id
printed out as part of the "Failed to get sensor..." error message?
lacrosse_view/src/lacrosse_view/__init__.py
Line 232 in f5ad547
Started by configuring LaCrosse View integration in Home Assistant. Input the username and password. Then it kept failing with error message: Failed to get sensor, status code: 401
Full error log from Home Assistant:
2022-12-18 17:49:23.416 ERROR (MainThread) [homeassistant.components.lacrosse_view] Unexpected error fetching LaCrosse View data: Failed to get sensor, status code: 401
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/lacrosse_view/coordinator.py", line 63, in _async_update_data
sensors = await self.api.get_sensors(
File "/usr/local/lib/python3.10/site-packages/lacrosse_view/__init__.py", line 242, in get_sensors
raise HTTPError(
lacrosse_view.HTTPError: Failed to get sensor, status code: 401
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 225, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/components/lacrosse_view/coordinator.py", line 70, in _async_update_data
raise ConfigEntryNotReady from error
homeassistant.exceptions.ConfigEntryNotReady: Failed to get sensor, status code: 401
Tracing down through the code, it looks like this library gets all the way through retrieving the location data, then starts trying to iterate through the device list. (Meaning all the authentication and API calls worked so far.)
lacrosse_view/src/lacrosse_view/__init__.py
Line 182 in f5ad547
But then inside that loop, it hits a non-200 response code and errors out completely.
lacrosse_view/src/lacrosse_view/__init__.py
Line 232 in f5ad547
I know I have ~7 devices in my list, but other than scripting this out myself, there's no information at all about which device failed or succeeded. Could we please get the device_id
printed out as part of the error message?
Perhaps this logic could be improved so that 1 device failing doesn't stop the rest from returning data?
This is awesome! I have it working and I get the sensor data but the logout code is crashing with HTTP 503.
Exception has occurred: HTTPError
Failed to logout, status code: 503
File "/home/mike/weather/lacrosse_view/__init__.py", line 261, in logout
raise HTTPError(f"Failed to logout, status code: {str(response.status)}")
File "/home/mike/weather/GetWeather.py", line 37, in get_data
await api.logout()
File "/home/mike/weather/GetWeather.py", line 39, in <module>
asyncio.run(get_data())
just curious if you get this as well, and whether you know if there's a solution.
FYI 503 is Service Unavailable https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.