jesserizzo / envoy_reader

MIT License
37 stars 26 forks source link

Use python library to generate password of installer account #79

Closed gtdiehl closed 2 years ago

gtdiehl commented 2 years ago

Use Case

Some access points to the Envoy are password protected. The user of envoy usually has a default password of the last 6 digits of the Envoy's serial number. The envoy account usually will work but some Envoys this does not work on. Another account on the Envoy device is installer but this requires an external app or library to generate the password.

As well some endpoints on the Envoys only give access to the installer account.

Solution

Use the library from EnphaseEnergy repo, convert it to a library that can be consumed by the envoy_reader library. In the code if the user passes in the user account of envoy we keep the default password, but if the installer account is passed we use the library and generate the password.

The code has been modified a little and is currently be worked on here: https://github.com/gtdiehl/envoy_reader/tree/gen_passwd

Alternatives

Manually use an external app or library to generate the installer password