Netatmo module



  • Hi all
    I´m newbie, I´m trying to get running Netatmo module. What I´ve did:

    • installed latest Magic Mirror
    • installed latest upates and upgrades
    • customized default modules
      Until now everything OK

    followed https://github.com/CFenner/MagicMirror-Netatmo-Module

    • get from github
    • registered new app on Netatmi API, get ClientID and Client secret
    • sent POST request to Hurl.it, got valid response with “access_token” and “refresh_token”
    • CTRL+C & CTRL+V entered Module section to .js including ID, Secret and Refresh_token

    After run Magic mirror I´ve got black screen with yellow sign in top-right corner.

    any idea, what´s wrong? or how to verify, settings?

    thanks for help
    Zdenek


  • Moderator

    I know the readme does not state it, but usually a black screen after installing a new module means dependencies are missing.

    Please open a terminal

    cd ~/MagicMirror/modules/MagicMirror-Netatmo-Module
    npm install
    

    Then try to re run your magic mirror.



  • I did, thanks. In my case the path is different
    cd ~/MagicMirror/netatmo

    the command took about a 2 mins, I did restart Raspberry, run Magic - still the same. There is no error during starting Magic, last row is Launching application

    disabling module in configure.js (by //) make Magic working properly

    BR, Zdenek



  • @zdenek you have to install modules in the path ~/MagicMirror/modules as yawns mentioned, otherwise the system cant find the module


  • Moderator

    Yes, my mistake, folder netatmo is correct, but it needs to be in modules

    Could you please start your mirror with npm start dev, open the console in your browser by pressing F12 and check for any errors there?



  • @strawberry-3.141 seems to be right. By running @yawns command I can see that there is row src="modules/netatmo//netatmo.js"
    with error 404

    may I simply copy/paste to modules folder? Or have tu run again from github? and the command will be:
    git clone https://github.com/CFenner/MagicMirror-Netatmo-Module.git modules/netatmo
    ?
    Zdenek

    P.S.: simple copy/paste works. Thanks guys



  • @zdenek

    Hi Zdenek,
    I just installed the Netatmo-Module, but I can’t get the “refresh_token” vial Hurl-it.
    I always get an “400 Bad Request”.

    Where ist the trick?

    Maybe it’s because I don’t know what the “gant_type” “password” is supposed to be?

    Thank you for your help.
    KC



  • @Kai-Christoph To be honest, I´m newbie. I just followed the instructions. 1st - registered app and get appID and appSecret. Than insert URL to Hurl-It and add all mentioned parameters.
    “gant_type” - it´s I guess typo - should be "“grant_type”"
    And it´s not a variable. The name of the parameter is ““grant_type”” and the Value is “password” - I guess, it´s a definition, that authentication will be done via username+password (probably there are other way - certificate? PIN? don´t know)

    BR, Zdeněk



  • @zdenek Hihihihihi! The missing “r” was the key! Thanks for your hint!

    Cheers
    KC


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.