utzl / MMM-Solarman

MIT License
2 stars 1 forks source link

auth invalid token #6

Closed Flash11061983 closed 8 months ago

Flash11061983 commented 8 months ago

After entering my data, “auth invalid token” is displayed in the MagicMirror.

I also get this error on https://reqbin.com/curl.

I tested:

https://globalapi.solarmanpv.com/account/v1.0/token?appId=&lingual=en&=' \ and

https://api.solarmanpv.com/account/v1.0/token?appId=&language=en&=' \

Can someone help me with that?

utzl commented 8 months ago

Hi, I got an email from Solarman:

"Dear valued user, In order to provide you with a better experience, SOLARMAN will upgrade data centers from 2024-01-15 09:00 to 2024-01-15 17:00 (UTC+8). During the upgrade, OPENAPI service will be unavailable."

So please try again tomorrow and give feedback to this issue.

Flash11061983 commented 8 months ago

Hello, I just tried it again. Now I get the error message under Run Curl: "msg": "auth invalid appId". Auth invalid token is still displayed in the MagicMirrow.

Password was converted under SHA256. API key and API ID are available from Solarman.

Url used: https://globalapi.solarmanpv.com/account/v1.0/token?appId=<302309268271864>&language=en&='

greeting

utzl commented 8 months ago

Hi,

you have to remove the < and > symbol for your appID. So use: https://globalapi.solarmanpv.com/account/v1.0/token?appId=302309268271864&language=en&=' hope this works then

Flash11061983 commented 8 months ago

Thank you. That seems to have been it. It worked now.

Now I have the bar in the MagicMirriow: Loading... Is that right?

Flash11061983 commented 8 months ago

Thank you for your help, utzl. The module is now running.