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.

    added new module/not showing up

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 3 Posters 3.8k 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @navyvette87
      last edited by Mykle1

      @navyvette87 said in added new module/not showing up:

      That module is not showing up on the screen though. I put the code in the config file with the { } on either end.

      Are you talking about MMM-JEOPARDY? I just checked it and it’s working normally. I did a minor fix at the same time so git pull in the MagicMirror/modules/MMM-Jeopardy directory for that update. The entire config.js entry for MMM-JEOPARDY is as follows:

      {
          module: 'MMM-JEOPARDY',
          position: 'top_left',                  // Works well anywhere
          config: { 
      	    useHeader: false,              // true if you want a header
                  header: "This is Jeopardy!",   // Any text you want
      	    maxWidth: "250px",             // Stretch or constrain according to region
      	    animationSpeed: 3000,          // New clue fades in and out
          }
      },
      

      Pay particular attention to the last } It has a comma after it

      Create a working config
      How to add modules

      N 1 Reply Last reply Reply Quote 0
      • N Offline
        navyvette87 @Mykle1
        last edited by

        @Mykle1 no the weather module. used the link on the main page , I copied the code and inserted it in the config.js. and its not showing up. I can copy it and put it on here later tonight.
        But I think i dropped the jeopardy one in there to, so i will check and up date when I get back to that project tonight.

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

          @navyvette87

          Ok, weather won’t show without an API key, just so you know. The directions are in the readme for the module

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • N Offline
            navyvette87
            last edited by

            ok got that one to work, now trying to get stocks put in. the following is the config file,
            /* Magic Mirror Config Sample
            *

            • By Michael Teeuw http://michaelteeuw.nl
            • MIT Licensed.
            • For more information how you can configurate this file
            • See https://github.com/MichMich/MagicMirror#configuration

            */

            var config = {
            address: “localhost”, // Address to listen on, can be:
            // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
            // - another specific IPv4/6 to listen on a specific interface
            // - “”, “0.0.0.0”, “::” to listen on any interface
            // Default, when address config is left out, is “localhost”
            port: 8080,
            ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
            // or add a specific IPv4 of 192.168.1.5 :
            // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
            // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
            // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],

            language: "en",
            timeFormat: 24,
            units: "imperial",
            
            modules: [
            	{
            		module: "alert",
            	},
            	{
            		module: "updatenotification",
            		position: "top_bar"
            	},
            	{
            		module: "clock",
            		position: "top_left"
            	},
            

            {
            module: “calendar”,
            header: “US Holidays”,
            position: “top_left”,
            config: {
            calendars: [
            {
            symbol: "calendar-check-o ",
            url: “webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics”
            }
            ]
            }
            },

            {
            module: “currentweather”,
            position: “top_right”,
            config: {
            location: “Lompoc, US”,
            locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
            appid: “6ed9d867d3ba972c013edecdef1e685a”
            }
            },
            {
            module: “weatherforecast”,
            position: “top_right”,
            header: “Weather Forecast”,
            config: {
            location: “Lompoc,US”,
            locationID: “”, //ID from http://www.openweathermap.org/help/city_list.txt
            appid: “6ed9d867d3ba972c013edecdef1e685a”
            }
            },
            {
            module: ‘stocks’,
            position: ‘middle_center’,
            config: {
            stocks: ‘.DJI,MSFT,AAPL,GOOG,INTC,CICS,TSLA,FB’, // stock symbols
            updateInterval: 37000 // update interval in milliseconds
            }
            },
            {
            module: “newsfeed”,
            position: “bottom_bar”,
            config: {
            feeds: [
            {
            title: “New York Times”,
            url: “http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml”
            }
            ],
            showSourceTitle: true,
            showPublishDate: true
            }
            },
            ]

            };

            [
            {
            module: “currentweather”,
            position: “top_right”, // This can be any of the regions.
            // Best results in left or right regions.
            config: {
            // See ‘Configuration options’ for more information.
            location: “Amsterdam,Netherlands”,
            locationID: “”, //Location ID from http://openweathermap.org/help/city_list.txt
            appid: “abcde12345abcde12345abcde12345ab” //openweathermap.org API key.
            }
            }
            ]

            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== “undefined”) {module.exports = config;}

            And the node start
            Starting MagicMirror: v2.1.3
            Loading config …
            Loading module helpers …
            No helper found for module: alert.
            Initializing new module helper …
            Module helper loaded: updatenotification
            No helper found for module: clock.
            Initializing new module helper …
            Module helper loaded: calendar
            No helper found for module: currentweather.
            No helper found for module: weatherforecast.
            Initializing new module helper …
            Module helper loaded: stocks
            Initializing new module helper …
            Module helper loaded: newsfeed
            All module helpers loaded.
            Starting server on port 8080 …
            Server started …
            Connecting socket for: updatenotification
            Connecting socket for: calendar
            Starting node helper for: calendar
            Connecting socket for: stocks
            stocks helper started …
            Connecting socket for: newsfeed
            Starting module: newsfeed
            Sockets connected & modules started …

            Ready to go! Please point your browser to: http://localhost:8080
            Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
            Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
            . it looks like it has started the stock helper and socket, but not showing on node screen, I changed the position to middle_center

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

              @navyvette87

              First, when you do post your code here, please post in a code block so that it is easier to read. My old eyes can’t look at that!

              Second, I don’t use the stock module. However, I did read recently that there was some problem with it. A forum search found this

              https://forum.magicmirror.builders/topic/4806/stock-module-problem

              Create a working config
              How to add modules

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                navyvette87 @Mykle1
                last edited by

                @Mykle1 Thanks everyone, got it all together, got the New York Times feed at the bottom, interesting quotes in the middle. Time, date, calendar on left top. Weather top right. Now on to find a screen.

                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