#Considering using the Adafruit

1 messages · Page 1 of 1 (latest)

sacred otter
#

Pretty new to all of this, so go easy on me 🙂

open stream
#

The CircuitPython implementation of Requests is a subset of the CPython one, and doesn't contain the session feature of the library which it looks like this powerwall helper is utilizing to cache the authentication token(s) instead of fetching new ones for every request.

So the powerwall library as it is now would not be usable from CircuitPython I think.

I have no experience with that hardware. Looking at that helper library I think it would be possible to query data from the server that the wall seems to be hosting from CircuitPython, but it would need to be done more directly with our subset implementation of requests, so there would be "micromanaging" of the auth token and headers that get sent with requests needed from the user code.

Theoretically it could be done by looking inside that helper library and trying to mimic all of the requests it's making but without the session and any other features lacking in the CircuitPython subset. But depending on your level of expereince with reading code, that may be more challenging. If there is good documentation of the REST API that the powerwall provides it may be easier to look at that while writing the CircuitPython code to interact with it.

sacred otter
#

I also have Home Assistant setup and it's receiving data from my powerwall...wonder if it'd be easier to pull from HA onto the MatrixPortal?