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.

    Help please. Module doesn't show up

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 3 Posters 462 Views 3 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.
    • B Offline
      blacter
      last edited by

      I’m learning to build a Magic Mirror as a distraction from the quarantine. Other modules have worked, but this one just doesn’t show up. Can one of you tell me what I’ve done wrong .

      Screen Shot 2020-05-25 at 5.06.53 PM.png

      Mykle1M bheplerB 2 Replies Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @blacter
        last edited by Mykle1

        @blacter

        You’re missing a } bracket at the end. Remove the comma that I see below the label line (on the bracket) go to the next line and add this bracket ]. Notice the comma now is required.

          {
             module: 'MMM-SingleStock',
             position: 'top_right',
             config: {
               stockSymbol: 'GOOG',
               apiToken: 'YOUR API TOKEN',  // Unique, private API key obtained from https://iexcloud.io/console/tokens
               updateInterval: 3600000, // 1 hour in milliseconds
               showChange: true,        // false | true
               label: 'symbol'          // 'symbol' | 'companyName' | 'none' | any string
             }
           },
        

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • bheplerB Offline
          bhepler Module Developer @blacter
          last edited by bhepler

          @blacter - Okay, a couple things.

          First, it’s best to use the markdown features of the board when posting code, rather than screenshots.

          Second, you should obfuscate or hide your API keys, lest someone “borrow” them for their own use.

          Third, the line obtained from https://iexcloud.io/console/tokens appears to be on its own line without a comment prefix (the // characters) so it is being evaluated by the interpreter. And because it’s a comment and not a setting, it’s probably barfing on that line.

          Fourth, the code you quoted is missing a closing } symbol. You have one opened for the config: { line and another open for the { module: 'MMM-SingleStock', portion… but you only have one closing }.

          I hope that gets you on your way.

          Edited to add: Dammit, @Mykle1 beat me to it.

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

            @bhepler said in Help please. Module doesn't show up:

            Edited to add: Dammit, @Mykle1 beat me to it.

            :thumbsup:

            Create a working config
            How to add modules

            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