I'm at a bit of a loss here -- when running enphase-envoy code on Venus OS 3.10~38, RPi 3B+., the log file is showing 'Received HTTP status code 401'. The enphase-envoy code does not click through this warning.
On my Windows Chrome/Edge browsers, I can click-through the "Your connection is not private...", ERR_CERT_AUTHORITY_INVALID and the page redirects to the Enphase home https[Enphase IP]/home#overview. If I open https://10.10.0.239:443/production.json?details=1, I get a page of production json,
{"production":[{"type":"inverters","activeCount":15,"readingTime":0,"wNow":0,"whLifetime":798107},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1695043269,"wNow":-0.0,"whLifetime":1855744.91,"varhLeadLifetime":......
Your dbus-enphse-envoy code is very close to working. Is there a way to ignore the 401 security warning and continue and add the proper https authentication?
2023-09-18 13:08:31.681029500 *** starting dbus-enphase-envoy ***
2023-09-18 13:08:34.497445500 ERROR:root:D7 firmware selected
2023-09-18 13:08:34.508175500 INFO:root:step: tokenManager
2023-09-18 13:08:34.508987500 INFO:root:--> token still empty
2023-09-18 13:08:34.510508500 INFO:root:EnphaseToken: Token still valid. Creation date 2023-09-18 12:56:48 UTC
2023-09-18 13:08:35.511982500 INFO:root:step: fetch_handler
2023-09-18 13:08:35.512477500 INFO:root:step: fetch_production_historic
2023-09-18 13:08:35.521729500 INFO:root:--> data_production_historic not yet ready
2023-09-18 13:08:35.528809500 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): 10.10.0.239:443
2023-09-18 13:08:36.207748500 DEBUG:urllib3.connectionpool:https://10.10.0.239:443 "GET /production.json?details=1 HTTP/1.1" 200 None
2023-09-18 13:08:36.219330500 INFO:root:--> fetch_handler() --> fetch_production_historic(): JSON data feched. Wait 3600 seconds for next run
2023-09-18 13:08:36.529936500 INFO:root:step: fetch_meter_stream
2023-09-18 13:08:36.530771500 INFO:root:--> data_meter_stream not yet ready
2023-09-18 13:08:36.542614500 DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): 10.10.0.239:443
2023-09-18 13:08:36.828011500 DEBUG:urllib3.connectionpool:https://10.10.0.239:443 "GET /stream/meter HTTP/1.1" 401 555
2023-09-18 13:08:36.831502500 ERROR:root:--> fetch_meter_stream(): Received HTTP status code 401. Restarting the driver in 60 seconds.
2023-09-18 13:08:37.540739500 INFO:root:--> data_meter_stream not yet ready