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.

    A problem about MMM-BMW-DS

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    25 Posts 4 Posters 7.7k 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.
    • zokiyaZ Offline
      zokiya
      last edited by

      I’m new to magic mirror.I found a cute module MMM-BMW-DS, I really love it and want to use it.But I encountered a problem that I am trying to use the darksky weather module but it never loads and just displays “Acquiring your weather…”
      I have got a new API keys and try again, but it doesn’t seem to work.
      What should I do next?Please help me:folded_hands:
      Here is the relevant section of the config.js

      {
      disabled: false,
      module: “MMM-BMW-DS”,
      position: “bottom_bar”, // bottom_bar is best
      config: {
      apiKey: “My API key”, // Free API key @ darksky.net
      tempUnits: “F”, // MUST BE CAPITAL LETTER C or F
      lat: ‘31.318889’,
      lng: ‘121.395’,
      css: “1”, // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert, “” = returns default css
      ownTitle: “Current Conditions”, // Use your own language and statement
      playSounds: “yes”, // yes = weather sounds, no = no weather sounds
      useHeader: false,
      header: “Your header”,
      maxWidth: “100%”,
      }
      },
      
      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @zokiya
        last edited by Mykle1

        @zokiya

          {
              disabled: false,
              module: "MMM-BMW-DS",
              position: "bottom_bar", // bottom_bar is best
              config: {
                apiKey: "YOUR API KEY GOES HERE", // Free API key @ darksky.net
                tempUnits: "F", // MUST BE CAPITAL LETTER C or F
                lat: '31.318889',
                lng: '121.395',
                css: "1", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert, "" = returns default css
                ownTitle: "Current Conditions", // Use your own language and statement
                playSounds: "yes", // yes = weather sounds, no = no weather sounds
                useHeader: false,
                header: "Your header",
                maxWidth: "100%",
                }
              },
        

        Your curly quotes are not acceptable, causing syntax errors. Notice the difference. I’ve fixed them and tested the entry. Copy and paste it and add your API key.

        Consider using a code editor that will eliminate those problems.

        Create a working config
        How to add modules

        zokiyaZ 1 Reply Last reply Reply Quote 0
        • zokiyaZ Offline
          zokiya @Mykle1
          last edited by

          @Mykle1
          Thank you for your correction:winking_face: But I just try again and it still doesn’t seem to work.:dizzy_face: Is there anything else I can check besides ‘config.js’?

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @zokiya
            last edited by sdetweil

            @zokiya number to the right of : should not have quotes… turns them into strings

                    lat: '31.318889',
                    lng: '121.395',
                    css: "1", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert, "" = returns default css
                    ownTitle: "Current Conditions", // Use your own language and statement
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            zokiyaZ Mykle1M 2 Replies Last reply Reply Quote 0
            • zokiyaZ Offline
              zokiya @sdetweil
              last edited by

              @sdetweil
              Thank you.I took your suggestion to modify the code, but it doesn’t seem to work.:face_with_cold_sweat:

              S Mykle1M 2 Replies Last reply Reply Quote 0
              • S Offline
                sdetweil @zokiya
                last edited by

                @zokiya open the developers window, ctrl-shift-i on the keyboard, select the tab labeled console, and scroll up to see any errors, usually red text.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @sdetweil
                  last edited by

                  @sdetweil said in A problem about MMM-BMW-DS:

                  number to the right of : should not have quotes… turns them into strings

                  In this case, they ARE stings. The OP’s config example is rife with syntax errors. So, I corrected it, tested it, confirmed its validity and posted it, minus the API key. :thumbsup:

                  Create a working config
                  How to add modules

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Mykle1
                    last edited by sdetweil

                    @Mykle1 hmmmmm, need to learn, never correct a module author!

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    Mykle1M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @zokiya
                      last edited by Mykle1

                      @zokiya

                      Please follow sdetweil’s suggestion to look for errors. Again, if you copy and paste the following config entry directly into your config it should avoid the syntax errors. Enter your API key EXACTLY. This is very important.

                      {
                            disabled: false,
                            module: "MMM-BMW-DS",
                            position: "bottom_bar", // bottom_bar is best
                            config: {
                              apiKey: "YOUR API KEY GOES HERE", // Free API key @ darksky.net
                              tempUnits: "F", // MUST BE CAPITAL LETTER C or F
                              lat: '31.318889',
                              lng: '121.395',
                              css: "1", // 1=default, 2=Clean, 3=Lord of the Rings, 4=handwriting, 5=Julee, 6=Englebert, "" = returns default css
                              ownTitle: "Current Conditions", // Use your own language and statement
                              playSounds: "yes", // yes = weather sounds, no = no weather sounds
                              useHeader: false,
                              header: "Your header",
                              maxWidth: "100%",
                              }
                            },
                      

                      Create a working config
                      How to add modules

                      zokiyaZ 1 Reply Last reply Reply Quote 0
                      • Mykle1M Offline
                        Mykle1 Project Sponsor Module Developer @sdetweil
                        last edited by

                        @sdetweil said in A problem about MMM-BMW-DS:

                        hmmmmm, need to learn, never correct a module author!

                        Feel free to correct me any time you like. :-)

                        I’ve learned much by being corrected. :thumbsup:

                        Create a working config
                        How to add modules

                        T 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • 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