awegg / landroidcc Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Since some days I get the following EM:
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 57, in connect
self._api_authentificate(username, password)
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 252, in _api_authentificate
response = self._apicall_rest('oauth/token', postdata=post_json, set_headers=False)
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 236, in _apicall_rest
response_plain.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.worxlandroid.com/api/v2/oauth/token
2022-08-22 11:13:40 init _api_authentificate INFO Successfully logged in
Traceback (most recent call last):
File "/home/raspi/python/landi.py", line 15, in
landroid.connect(xxxx", "yyyyy")
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 74, in connect
self._connectmqtt()
File "/usr/local/lib/python3.9/dist-packages/landroidcc/init.py", line 135, in _connectmqtt
pkcs12 = base64.decodestring(self._api_certificate["pkcs12"].encode())
AttributeError: module 'base64' has no attribute 'decodestring'
def get_error(self):
"""
Returns the error as string. If there is no error, "No Error" is returned
:return: The error as text
:rtype: str
"""
return self._state
should be return self._error
Off-topic: Did you, by any chance, already create a HASS integration/component? Could you share the code? Thanks!
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.