User Tools

Site Tools


howto:growatt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
howto:growatt [2023/07/09 22:57] Wulf Rajekhowto:growatt [2023/07/09 22:58] (current) – [Download Growatt Data Log History] Wulf Rajek
Line 263: Line 263:
     formatdate="$(date -d "${startdate}" +'%Y-%m-%d')"     formatdate="$(date -d "${startdate}" +'%Y-%m-%d')"
     echo "Processing ${formatdate}"     echo "Processing ${formatdate}"
-    echo "mixSn=${serialnumber}&startDate=${formatdate}&endDate=${formatdate}&start=1"+
     curl 'http://server-api.growatt.com/device/exportMIXHistory' --compressed -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-GB,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'X-Requested-With: XMLHttpRequest' -H 'Origin: http://server-api.growatt.com' -H 'Connection: keep-alive' -H 'Referer: http://server-api.growatt.com/index' --cookie cookies.txt --data-raw "mixSn=${serialnumber}&startDate=${formatdate}&endDate=${formatdate}&start=1" -o "growatt-export_${formatdate}.xls" --silent     curl 'http://server-api.growatt.com/device/exportMIXHistory' --compressed -X POST -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Language: en-GB,en;q=0.5' -H 'Accept-Encoding: gzip, deflate' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'X-Requested-With: XMLHttpRequest' -H 'Origin: http://server-api.growatt.com' -H 'Connection: keep-alive' -H 'Referer: http://server-api.growatt.com/index' --cookie cookies.txt --data-raw "mixSn=${serialnumber}&startDate=${formatdate}&endDate=${formatdate}&start=1" -o "growatt-export_${formatdate}.xls" --silent
-exit+
     # set new start date based on interval     # set new start date based on interval
     startdate="$(date -d "${startdate} + ${interval} days" +'%Y%m%d')"     startdate="$(date -d "${startdate} + ${interval} days" +'%Y%m%d')"
howto/growatt.1688939877.txt.gz · Last modified: 2023/07/09 22:57 by Wulf Rajek