-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I am working on an application to poll my Franklin Whole Home solar system every 5 minutes and set my ChargePoint charging current to match the surplus Solar generation, or disable charging if there is no surplus solar.
A few weeks ago, login and management of the ChargePoint via this API was working beautifully. When I revisited the project today, I consistently get a login error:
Failed to get account information! status_code=403 err=<title>chargepoint.com</title><style>#cmsg{animation: A 1.5s;}@Keyframes A{0%{opacity:0;}99%{opacity:0;}100%{opacity:1;}}</style>
Please enable JS and disable any ad blocker
<script data-cfasync="false">var dd={'rt':'c','cid':'AHrlqAAAAAMATcKmrrq_26UAuVF8mA==','hsh':'C2675704EFE363D0C7EFE7F17F5FCD','t':'fe','r':'b','qp':'','s':40137,'e':'f97146c477a43904c1f9a02ed0196227bf578af7d3442b7bb45169aa3d3c12c2','host':'geo.captcha-delivery.com','cookie':'W8XGxaPmJxeXfSXZ5YNNiqiLjdHO0PTOb2kMJCLhBgRQdrJxM_vX7tum0Kff293ZSuz_JwN_kIPeHu~_1b57GrOQo94FTraceback (most recent call last):
File "/home/tom/Ports/python-chargepoint/./chargers.py", line 6, in
client = ChargePoint(username="tquiggle", password="REDACTED")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tom/Ports/python-chargepoint/python_chargepoint/client.py", line 94, in init
self.login(username, password)
File "/home/tom/Ports/python-chargepoint/python_chargepoint/client.py", line 154, in login
raise ChargePointLoginError(login, "Failed to authenticate to ChargePoint!")
python_chargepoint.exceptions.ChargePointLoginError: Failed to authenticate to ChargePoint!
It looks like ChargePoint added a javascript challenge to detect headless access to the API :-(
Metadata
Metadata
Assignees
Labels
No labels