CFenner / MMM-Netatmo

A module for the MagicMirror to display information about your rooms climate from your Netatmo system.
MIT License
37 stars 33 forks source link

Module stopped working #158

Open ihadx opened 1 year ago

ihadx commented 1 year ago

I'm pretty sure that Netatmo has finally depricated "Client credentials grant type" in favour of "Authorization code grant type". Go to https://dev.netatmo.com/apidocumentation/oauth and look for 'Client credentials grant type'

Is someone in the community skilled enough to upgrade the existing code?

CFenner commented 1 year ago

I can give access to my station for your experiments. If it doesn't work out differently.....

That's a great idea.

My mail would be ...

fradrik commented 1 year ago

please update this thread if you find a solution. I have been following here since june, because my netatmo-module in MM is not working either. Thanks. :)

Laz2516 commented 1 year ago

Могу предоставить доступ к моей станции для ваших экспериментов. Если не получится по-другому.....

Это блестящая идея.

Моя почта будет ...

Sent you the data.

Laz2516 commented 1 year ago

Могу предоставить доступ к моей станции для ваших экспериментов. Если не получится по-другому.....

Это блестящая идея.

Моя почта будет...

Do you have Telegrams? I can't insert the archive into my mail.

Laz2516 commented 1 year ago

Thank you, sent the archive.

Laz2516 commented 1 year ago

The developer of the module is still busy. With my data, he managed to authorize and display information from the Netatmo station in the MM. We are waiting for the module correction....)

CFenner commented 1 year ago

@Laz2516 you credentials are no longer valid. Unfortunately the module does not yet bring this to the frontend.

mm  | [14.09.2023 14:55.17.314] [LOG]   error: Error: invalid_grant: undefined
mm  |     at Class.authenticate (/opt/magic_mirror/modules/netatmo/helper.js:41:15)
mm  |     at Class.socketNotificationReceived (/opt/magic_mirror/modules/netatmo/helper.js:125:14)
mm  |     at Socket.<anonymous> (/opt/magic_mirror/js/node_helper.js:107:11)
mm  |     at Socket.emit (node:events:513:28)
mm  |     at Socket.emitUntyped (/opt/magic_mirror/node_modules/socket.io/dist/typed-events.js:69:22)
mm  |     at /opt/magic_mirror/node_modules/socket.io/dist/socket.js:703:39
mm  |     at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Laz2516 commented 1 year ago

@Laz2516 you credentials are no longer valid. Unfortunately the module does not yet bring this to the frontend.

mm  | [14.09.2023 14:55.17.314] [LOG]   error: Error: invalid_grant: undefined
mm  |     at Class.authenticate (/opt/magic_mirror/modules/netatmo/helper.js:41:15)
mm  |     at Class.socketNotificationReceived (/opt/magic_mirror/modules/netatmo/helper.js:125:14)
mm  |     at Socket.<anonymous> (/opt/magic_mirror/js/node_helper.js:107:11)
mm  |     at Socket.emit (node:events:513:28)
mm  |     at Socket.emitUntyped (/opt/magic_mirror/node_modules/socket.io/dist/typed-events.js:69:22)
mm  |     at /opt/magic_mirror/node_modules/socket.io/dist/socket.js:703:39
mm  |     at process.processTicksAndRejections (node:internal/process/task_queues:77:11)

Authorization data is not valid? But they didn't change.

I have a RainMachine auto-watering controller. It also uses data from the weather station Netatmo. And since June, the controller could not connect to the cloud of the weather station using the old authorization method. A couple of weeks ago, technical support changed the software connection module. There I use exactly the same data and everything works.

If you are talking about my archive with your module, then check the authorization data in the config. Which I sent you in a letter. Perhaps in the config just actually old data. Fix them.

Laz2516 commented 1 year ago

Good afternoon! Can I help you with checking your module? I would like it to work faster..)))

Laz2516 commented 1 year ago

Good afternoon! Have you completely forgotten about us?))))

Laz2516 commented 1 year ago

Good afternoon! I've formed all the new data again. But the module does not load... (((

Try at home...... I sent you my config in telegrams

Laz2516 commented 1 year ago

I have updated to 2.25, but the module does not start and does not allow the rest of the modules to start... If you rename the module folder or return the module archive before you change (in August), then the mirror with all modules starts, except for the Netatmo module. Unfortunately, I can't see the bugs in the browser console. Anyone tell me how to do this?

fradrik commented 1 year ago

@Laz2516 I found this. Tommys's solution worked for me as well. I had to rename the "ModuleOrder" in config.js so it matches the productes names in the Netatmo App.

Laz2516 commented 1 year ago

@Laz2516Я нашел это . Решение Томмиса сработало и для меня. Мне пришлось переименовать «ModuleOrder» в config.js, чтобы он соответствовал именам продуктов в приложении Netatmo.

I tried it, but it doesn't work. It is possible that I have module names in Russian in the Netatmo application... And you have this module of the old version or already changed by the author (I think it may be for me to reinstall the module).

cgillinger commented 10 months ago

There is a guy in this thread who appears to have solved it. Unfortunately Im not code-savvy enough to implement it:

https://forum.magicmirror.builders/topic/18112/mmm-netatmo-does-not-load/5