• 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.

Need help

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 3 Posters 1.2k Views 2 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.
  • C Offline
    Calrus
    last edited by Jul 19, 2019, 4:32 PM

    `/* 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: "metric",
    
    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",
    					url: "webcal://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics"					
    					}
    				]
    			}
    		},
    	{
    		module: "compliments",
    		position: "lower_third",
    	},
    	{
    		module: "currentweather",
    		position: "top_right",
    		config: {
    			location: "Memphis",
    			locationID: "5526145",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
    			appid: "3007140bdfc742d642dfe84a75fe3032"
    		}
    		
    	},
    	{
    		module: "weatherforecast",
    		position: "top_right",
    		header: "Weather Forecast",
    		config: {
    			location: "Memphis",
    			locationID: "5526145",  //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
    			appid: "3007140bdfc742d642dfe84a75fe3032"
    		
    	},
    	{
    		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,
    			broadcastNewsFeeds: true,
    			broadcastNewsUpdates: true
    		}
    	},
    	{	
    

    module: “MMM-NowPlayingOnSpotify”,
    position: “bottom_left”,

    config: {
    showCoverArt: false,
    clientID: “a0f4d0df56b6446ca2be3f81ed7d544f”,
    clientSecret: “9fd7e975f6c64e74a24c8c1e37f53abb”,
    accessToken: “BQAyYFsDVd5q982SILK2l-xeytM49RKC-UrfHUAzt8hgRMhNI9s0WcZ2pVmxNLjODGP82rl1WcKoFZPHiSC9jzcgSbXmxRs9-efUCd8NWdzk_NQWopDe_8IjdSKFwL9hiLh6bWIGt4rdVgZJ6v1CnlifLE-ao3GC”,
    refreshToken: “AQDgYew540LhC4nKUwFcEUaisenwciMBbzagl0Ok-jXJfAlABx3UDgaQMQ4HHh5-FV46pbG-PpHQog4fdIoomzyCYOt220YphZws79yUQfIUdsD1TnKEAxJAC4QzRQA707xWoA”
    }
    },
    {
    ` module: “MMM-AVStock”,
    position: “top_center”,
    config: {
    apiKey : “LWQTCZMIKEGOSSXJ”,
    timeFormat: “YYYY-MM-DD HH:mm:ss”,
    symbols : [“TSLA”],
    alias: [“TESLA”],
    tickerDuration: 60,
    chartDays: 90,
    poolInterval : 1000*15,
    mode : “series”,
    decimals: 4,
    candleSticks : false,
    coloredCandles : false,
    premiumAccount: false,
    }

    	},
    

    ]

    };

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

    S 1 Reply Last reply Jul 19, 2019, 4:36 PM Reply Quote 0
    • S Away
      sdetweil @Calrus
      last edited by Jul 19, 2019, 4:36 PM

      @Calrus what help?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      C 1 Reply Last reply Jul 19, 2019, 4:36 PM Reply Quote 0
      • C Offline
        Calrus @sdetweil
        last edited by Jul 19, 2019, 4:36 PM

        @sdetweil The code isn’t running. It says syntax error

        S 1 Reply Last reply Jul 19, 2019, 4:40 PM Reply Quote 0
        • S Away
          sdetweil @Calrus
          last edited by sdetweil Jul 20, 2019, 12:19 AM Jul 19, 2019, 4:40 PM

          @Calrus ok… from the MagicMirror folder do

          npm run config:check
          

          start fixing errors in config.js at the top

          rerun after each change…

          i see a quote in front of the module: “avstock” but it may be your cut/paste

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 1
          • C Offline
            Calrus
            last edited by Jul 19, 2019, 5:05 PM

            That fixed it! Thanks so much!

            B 1 Reply Last reply Jul 21, 2019, 4:57 AM Reply Quote 0
            • B Offline
              bhepler Module Developer @Calrus
              last edited by Jul 21, 2019, 4:57 AM

              @Calrus - I’m glad you got it working. In the future, please use the markdown features of the board when posting code.

              1 Reply Last reply Reply Quote 3
              • 1 / 1
              1 / 1
              • First post
                5/6
                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