GoumJer / Huawei_Sun2000

Shell script to read data from Huawei website en send to Domoticz/Influx
2 stars 1 forks source link

detail the parameters of the HuaweiSolar.env file #1

Closed kurb77 closed 1 year ago

kurb77 commented 1 year ago

Hello, can you detail the parameters of the HuaweiSolar.env file.

thank you

GoumJer commented 1 year ago

Hi,

thanks for your comment, Made me realize I had to document more/better. Added extra info in the .env file and also extended the readme.

As per your questions:

Kind regards, Jeroen

kurb77 commented 1 year ago

can you confirm that, huwawei sent me a System name, a User name, and Password, so

userName=User name
systemCode=System name
stationCode=Password

thank you jerome

GoumJer commented 1 year ago

Hi Jerome,

Huawei will sent you a username and systemcode. With these you can retreive the stationcode via Postman. Please see the link to Huawei documentation in the readme.

I'm already working on implementing this in my script. Expect that to be ready and available this week

Kind regards, Jeroen

kurb77 commented 1 year ago

yes, i readed your explain, i will try to retreive the stationcode via Postman

thank you jeromle

kurb77 commented 1 year ago

your script need jg, this not write on the doc. and there are a mistake when you run the first time ` ./HuaweiSolar_API.sh: ligne 52: ./get_token.sh: Aucun fichier ou dossier de ce type cat: ./last.token: Aucun fichier ou dossier de ce type

thank you jerome

GoumJer commented 1 year ago

Hi Jerome, I added the option to retreive the stationCode frm huawei to the script. Also added the script which is required to retreive a fresh token (was somehow not included).

Feel free to to test.

Kind regards, Jeroen

kurb77 commented 1 year ago

Hello, i tried, but a had a error

jq: error (at :4): Cannot iterate over null (null)