Open StevetheV opened 1 year ago
pi@Raspberry:~/scripts/Huawei-solar $ source HuaweiSolar.env ; curl -i -s -X POST -H 'Content-Type:application/json' -d "{\"userName\":\"$userName\",\"systemCode\":\"$systemCode\"}" $baseURL/login
gives me:
HTTP/1.1 200 OK Server: product only Date: Wed, 01 Mar 2023 13:09:19 GMT Content-Type: application/json;charset=UTF-8 Content-Length: 100 Connection: keep-alive upcase-conversion-headers: accessSession,accessSession x-trace-enable: false x-frame-options: SAMEORIGIN x-download-options: noopen x-parent-id: 2110676077312575740 strict-transport-security: max-age=31536000; includeSubDomains content-security-policy: default-src https: data: blob: 'self' 'unsafe-inline' 'unsafe-eval' x-trace-id: 0 x-content-type-options: nosniff x-xss-protection: 1; mode=block x-span-id: 2110676077312575740 set-cookie: JSESSIONID=0F10A7452F9FD84E0071BD4367770F4D; Path=/; Secure; HttpOnly
{"data":null,"success":false,"failCode":20001,"params":{"currentTime":1677676159304},"message":null}
There was some clutter in the script. I did cleanup and uploaded a new version.
Tried to do a setup following the manual on a Pi-Zero, did not run into any issue's on my side. Please check and let me now.
Script seems to work now, but does not do what i want it to do... so thanks for the help but unfortunately it is not for me!
Script not working setup as in readme, with additions like in issue #2
When i do: ./HuaweiSolar_API.sh SetUp Y i get: myTokenAge: 1677663236 seconds
Username: S** SystemCode: 1*** Token is > 25 minutes old, refresh required
New token: No token available