• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Netatmo module

Scheduled Pinned Locked Moved Solved Troubleshooting
10 Posts 5 Posters 6.3k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    zdenek
    last edited by Feb 20, 2017, 11:31 AM

    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

    1 Reply Last reply Reply Quote 0
    • Y Offline
      yawns Moderator
      last edited by Feb 20, 2017, 11:34 AM

      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.

      1 Reply Last reply Reply Quote 0
      • Z Offline
        zdenek
        last edited by Feb 20, 2017, 12:12 PM

        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

        S 1 Reply Last reply Feb 20, 2017, 12:22 PM Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @zdenek
          last edited by Feb 20, 2017, 12:22 PM

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

          Please create a github issue if you need help, so I can keep track

          Z 1 Reply Last reply Feb 20, 2017, 12:50 PM Reply Quote 0
          • Y Offline
            yawns Moderator
            last edited by yawns Feb 20, 2017, 12:23 PM Feb 20, 2017, 12:23 PM

            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?

            1 Reply Last reply Reply Quote 0
            • Z Offline
              zdenek @strawberry 3.141
              last edited by zdenek Feb 20, 2017, 12:53 PM Feb 20, 2017, 12:50 PM

              @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

              1 Reply Last reply Reply Quote 0
              • K Offline
                Kai-Christoph
                last edited by Kai-Christoph Mar 21, 2017, 2:07 PM Mar 21, 2017, 2:05 PM

                @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

                Z 1 Reply Last reply Mar 22, 2017, 5:00 AM Reply Quote 0
                • Z Offline
                  zdenek @Kai-Christoph
                  last edited by Mar 22, 2017, 5:00 AM

                  @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

                  K 1 Reply Last reply Mar 22, 2017, 2:57 PM Reply Quote 0
                  • K Offline
                    Kai-Christoph @zdenek
                    last edited by Mar 22, 2017, 2:57 PM

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

                    Cheers
                    KC

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by A Former User Mar 25, 2019, 7:58 PM Mar 25, 2019, 7:51 PM

                      Sorry for late Reply on this old Thread, buuuut…

                      I got everything installed very quick and get it started. But its loading and loading and loading…i dont get any Information from my Netatmo Station…i started it also with “dev” and got no errors or anything else…

                      What i’ve done wrong?
                      Refresh Token? I used the Login credentials from my dev account, maybe thats my mistake?

                      Thanks for your help

                      PS: How to use moduleOrder? I dont know how to use/insert into config ;) (Newbie)

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy