How can we help?


Failed to get oAuth token NETATMO (Authentication failure)

Fixed

Comments

106 comments

  • Avatar
    vova

    0
    Comment actions Permalink
  • Avatar
    vova

    0
    Comment actions Permalink
  • Avatar
    vova

    Can you fix the authorization situation?

    0
    Comment actions Permalink
  • Avatar
    GEORGzer (Edited )

    I can confirm that the "PersonalNetatmo" weather service doesn't work anymore, authentication failure.

    I had everything set up and running since April I believe, but apparently on July 17th was the last time authentication war successful.


    I‘m a moderator in the Netatmo support forum and I asked their API specialist about this.

    I‘ll keep you guys posted.

    1
    Comment actions Permalink
  • Avatar
    GEORGzer (Edited )

    So I got a reply from Netatmo:

    „If I well understand their fix from March, we asked developers to catch the refresh_token value each time a new /token request is performed. They anticipated this change which is not still online on our side, but it has nothing to do with the authentication method change - way more impacting if the evolution wasn't still performed -
    Their developers must apply the /authorize process change by deleting the old way to authenticate (client_credentials) and use the other one (authorization_code : https://dev.netatmo.com/apidocumentation/oauth#authorization-code)

    Have a good day,
    Leslie - Community Manager“

    Source: https://forum.netatmo.com/viewtopic.php?p=94835#p94835

     

    I‘m a complete amateur in API stuff, I got the new Netatmo integration to work back in March but that‘s it.

    So I‘m just a messenger 😅

    1
    Comment actions Permalink
  • Avatar
    vova

    Netatmo developers are crazy... ((You might think they log in to Fort Knox...))

    If you have a weather station and an iPhone, try installing the Netatmo Comfort app.
    There only your credentials are required for authorization, without keys. And after that, a new application with access to the API appears in the Netatmo account in the settings, in the Partner Application. So in the applications of partners there used to be a watering controller.....

    0
    Comment actions Permalink
  • Avatar
    vova

    Unfortunately, I did not understand - after all, whose fault is the lack of authorization? RainMachine или Netatmo ?
    And what should users do? (((

    0
    Comment actions Permalink
  • Avatar
    GEORGzer

    no idea 🤷‍♂️

    0
    Comment actions Permalink
  • Avatar
    vova

    Maybe technical support will give an answer or finalize your parser?

    0
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller (Edited )

    Same here. Error: Authentication Failure since a few days. Also with the new Parser Fix from March 2023. All done according instructions and checked several times.

    And I do only access my own station data as indicated in the post by Nicolas from July 19, 2023

    0
    Comment actions Permalink
  • Avatar
    vova

    So it's not surprising. Netatmo has once again changed the way it authorizes its API. In another project, I also now have no authorization for them. Only authorization for the IPhone application remained (wrote above here). But there is apparently agreed. Because in the application I entered only the login and password for Netatmo and did not enter keys.

    0
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    I opened a ticket with support and the issue was forwarded to the developer team. It might help if everybody else does this too.

    0
    Comment actions Permalink
  • Avatar
    vova

    Where did you open the request? Actually, this forum branch is also a request.

    0
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    I wrote to help@rainmachine.com

    2
    Comment actions Permalink
  • Avatar
    Bob Frank

    I too am having this issue. 

    0
    Comment actions Permalink
  • Avatar
    vova

    Dear Technical Support!
    Note the authorization issue.
    I am sure it is much easier for you to understand and correct the situation than for ordinary users of your product....)))

    0
    Comment actions Permalink
  • Avatar
    GEORGzer (Edited )

    I don‘t think RainMachine users can do anything at all on their own.
    Netatmo changed something on their end and the parser needs to be adapted. I use an app on my Mac that displays readings from Netatmo‘s Weather Station and that one recently had an update because of this new authentication procedure. So it can be done 😋

    0
    Comment actions Permalink
  • Avatar
    vova

    Which application are you using on the Mac?

    0
    Comment actions Permalink
  • Avatar
    GEORGzer (Edited )

    „Netmo - The Netatmo Client“

     

    Release notes said:

    Netmo has implemented a new authorization method. If you are already logged in, you may not notice this at first.

    However, when you need to log in again, simply click on "Start Authorization" to be redirected to the Netatmo website, where you must grant Netmo access to your weather station data. You might need to log in to the website first.

    1
    Comment actions Permalink
  • Avatar
    vova

    I wrote above about the iPhone app. There, too, at the initial login to the application, you need to enter credentials for Netatmo and an application is automatically created in Netatmo's personal account with permission to access data. Apparently Apple is easier to negotiate with Netatmo about the operation of its applications for IPhone and Mac.....)))

    0
    Comment actions Permalink
  • Avatar
    RainMachine Support

    Hi, all
    We're sorry for this inconvenience and we are asking you for patience. We are working on a fix for our NetAtmo RainMachine weather service and as soon as we have it, we will announce it here.
    Thank you for your feedback and for your understanding.

    Julian
    RainMachine Support

    3
    Comment actions Permalink
  • Avatar
    GEORGzer

    Thanks Julian!

    0
    Comment actions Permalink
  • Avatar
    vova

    Thank you very much !)

    0
    Comment actions Permalink
  • Avatar
    Christian Zagrodnick

    Hi,

    here's a quick fix. You need to create access/refresh token at the netatmo dev site.

    Change: https://github.com/zagy/rainmachine-developer-resources/commit/df1d75b84cf9fb12b3334029c48e5cbf6b8625d0

    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. 

    Best,

    Christian

    0
    Comment actions Permalink
  • Avatar
    M. W. (Edited )

    Thanks Christian. But doesn’t work for my Pro-8. Status is „Retrying: Failed to run“.

    0
    Comment actions Permalink
  • Avatar
    Christian Zagrodnick

    I don't really know how this all works internally … what comes to mind:

    Have you deleted/removed the old parser before? 

    Does the UI show the field for the refresh-token? (And did you enter one?)

    0
    Comment actions Permalink
  • Avatar
    M. W.

    Yes, deleted and installed new version (1.41)

    The UI over the web-interface or the App? I can‘t see any field for the refresh-token. Can you share screenshots?.

    0
    Comment actions Permalink
  • Avatar
    M. W.

    Is there any official fix from Rainmachine concerning the issue?

    0
    Comment actions Permalink
  • Avatar
    vova

    They have been "working to fix the problem" for over a month.... (((

    1
    Comment actions Permalink
  • Avatar
    M. W.

    Still no official statement? :-(((

    0
    Comment actions Permalink

Please sign in to leave a comment.