overfl0w11 / MMM-Netatmo-Thermostat

Netatmo module for Magic Mirror
MIT License
3 stars 2 forks source link

password problem for the refresh token #8

Open smiley-2 opened 5 years ago

smiley-2 commented 5 years ago

hello,

when I want getting the refreshToken I have this error: -bash: !xxxxxxx?': event not found My password is interpreted, I use : ! et ? inside.

I think it's a typo But I'don't know what (I'm not good in curl)

thanks

overfl0w11 commented 5 years ago

Hi, Sorry, last week i was busy.

You can escape your special characters in your password with \ character. For example, you can type the following command with a password containing '?' or '!' curl --data "grant_type=password&client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>&username=<YOUR_NETATMO_LOGIN>&password=yourpasswordwith\!and\?&scope=read_thermostat" "https://api.netatmo.com/oauth2/token"

I don't test it but it should work. Let me know.

smiley-2 commented 5 years ago

Thanks it's works, but I just realise I haven't thermostat but multiple thermostatic faucet.

so it doesn't work for.

thanks again