Updated to use the more current API, the same that is used by https://sds.mysunpower.com/monitor/.
In this version, we simply log the current production and timestamp to influxdb. However, by modifying the query, other responses are possible.
The code is informed by a script written by Kiel Koleson