-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module stopped working #158
Comments
I join the request! ((( |
Will try to setup MM again to fix this. Any more hints for me? Are you willing to test the changes? |
I'll be glad to test the changes as well. I believe the oauth2 auth code changes are described here: https://dev.netatmo.com/apidocumentation/oauth#authorization-code. I'd suspecting the changes will need to be in "node_helper.js". Standing by. |
I am also ready to help if I understand how to get a new authorization (token probably). |
Maybe this will help the developer fix the authorization?..... |
https://forum.magicmirror.builders/topic/12315/mmm-netatmo-updated/42?page=5 Could help the developer.... |
Authorization also stopped working in the RainMachine application. This solution appeared on the user forum. Perhaps this will help a respected developer. "Change: zagy/rainmachine-developer-resources@df1d75b File: https://raw.githubusercontent.com/zagy/rainmachine-developer-resources/df1d75b84cf9fb12b3334029c48e5cbf6b8625d0/sdk-parsers/RMParserFramework/parsers/personalnetatmo-parser.py (can be uploaded via the rainmachine UI) It's not very tested, but seems to work for now. " |
Many examples are available on how to implement OAuth2.0 auth code / access token flows. Hopefully someone can implement it here: https://developer.goto.com/guides/Authentication/04_HOW_accessTokenNodeJS/ |
@Laz2516 @skyhawk180 @ihadx Can you check if this works for you? |
Of course. I will check now.)) |
Unfortunately, it doesn't work. Module icons do not appear on the screen. The inscription "Loading..." is shown. " |
Maybe the syntax of the name refresh token is not correct? https://forum.magicmirror.builders/topic/12315/mmm-netatmo-updated/42?page=5 |
refresh_token: 'ХХХХХХХХХХХХХХХХХХХХ88c8b52cf|0e864b8f9ХХХХХХХХХХХХХХ', Alas, adding an access token to the configuration did not help. The weather station does not show the data.... |
Did you update the module code from the auth branch? |
No.... (( Or tell me how to update your module from SSH? |
I downloaded the archive, uploaded it to raspberries. And replaced all the files that were fresh. But there are no files in the archive |
Please use this archive https://github.com/CFenner/MMM-Netatmo/archive/refs/heads/auth.zip |
Downloaded your archive from the link. Replaced only new files. After rebooting the raspberry, the MM program itself does not start. I see only a raspberry desktop. |
Returned the old module completely from the copy, MM starts. |
Ok, then I'm need to run the module myself. Sorry for the inconvenience. |
Good. Then I am waiting for your decision. And I would very much like, since you have taken up the module, to be able to display the pressure value in mm Hg. |
Let's fix this first and then I will have a look. It actually works for me, I just missed to run |
As a temporary fix for Pressure in 'in Hg', you can update netatmo.js follows. For mmHg, look for the formula and replace the numbers: case this.measurement.PRESSURE: |
-I have tried to merge both my original code and 'auth' branch and while the error goes away, nothing gets loaded on the screen.
Not sure the code is correctly loaded/committed into git. I see differences in netatmo files between branches and also helper files. |
So changes are merged to main branch. You need to
|
@skyhawk180 @Laz2516 what does the browser console show? There should be an error message. |
Unfortunately, I am not very well versed in programming. I can only repeat the tips. Tell me how to see the error? |
|
Did you connect to your MM on the RPi with the Firefox or was MM running on your machine? |
Both are working in server mode. I tried remote and local via browser. As a workaround now, I am running firefox-esr in kiosk mode with the mm url and its working. I'd rather have a local option too so it can be managed via pm2. |
I also have the same issue. But it sounds the latest version of netatmo module isnt the final solution. Is it mandatory to have latest version of magirmirrorOS installed to make the module run properly? |
Unfortunately, for some reason we are not enough in this topic. Is Netatmo station in MM really so little used? |
Dear module developer, perhaps this can help you as a sample? |
hi folks, I read your instructions and I can agree - problem is still existing. I generated a new App in dev.netatmo.com but ... after pm2 restart are all modules in state "Downloading" and showing no data once I deactivated 'netamo' in my config the MM runs as expected and correctly. When 'netatmo' config is enabled I'm also not able to access MM remote with browser <local_ip>:8080 don't know how to help / assist, but I'll you support as much as I can. |
i don't know if it's good news or bad news, but with the RaymondMolenaar Netatmo-Module and my new credentials works it |
I also have the same, one in one |
I would not like to change the module. I'm quite fine with this one. If I can then change the pressure display format. And perhaps now there are errors in the display of the wind, but I have a faulty wind sensor itself, I bought a new one. Then I will write comments. |
Did you manage to change something in the module for Netatmo authorization? I wrote you a sentence and links above. |
That's a great idea. My mail would be ... |
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. :) |
Sent you the data. |
Do you have Telegrams? I can't insert the archive into my mail. |
Thank you, sent the archive. |
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. |
@Laz2516 you credentials are no longer valid. Unfortunately the module does not yet bring this to the frontend.
|
Authorization data is not valid? 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. |
Good afternoon! |
Good afternoon! |
Good afternoon! Try at home...... I sent you my config in telegrams |
I have updated to 2.25, but the module does not start and does not allow the rest of the modules to start... |
@Laz2516 I found this. Tommys's solution worked for me as well. |
I tried it, but it doesn't work. It is possible that I have module names in Russian in the Netatmo application... |
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 |
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?
The text was updated successfully, but these errors were encountered: