del13r
664
Here are the commands I manually used:
command:
curl -s -d 'user[email][email protected]&user[password]=MYPASSWORD' \
https://enlighten.enphaseenergy.com/login/login.json \
| jq -r .session_id
Result:
32CHARACTERSESSIONID
then I used my envoy serial number and that session ID in the next command to get my token.
curl -s 'https://enlighten.enphaseenergy.com/entrez-auth-token?serial_num=ENVOYSERIALNUMBER' \
-H 'cookie: _enlighten_4_session=32CHARACTERSESSIONID' \
| jq -r '.token'
Result:
408CHARACTERJWT
however this script is probably easier