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.

    MM on Ubuntu

    Scheduled Pinned Locked Moved Solved Troubleshooting
    90 Posts 4 Posters 42.0k 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.
    • S Offline
      sdetweil @goncalovsc
      last edited by

      @goncalovsc i am confused…

      u said you edited the files, but nothing changed on restart…

      so, I want to see what you edited in the files…

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        goncalovsc @sdetweil
        last edited by

        @sdetweil Its on the printscreen, weather location changed etc etc
        But as you can see, all unchanged https://gyazo.com/bdf479ec8837ed27c9727b0ac8d5877a

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

          @goncalovsc again, can u show me the config.js file please… I don’t care about the output, you said it didn’t have any effect.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            goncalovsc @sdetweil
            last edited by goncalovsc

            @sdetweil ```
            /* Magic Mirror Config Sample
             *
             * By Michael Teeuw http://michaelteeuw.nl
             * MIT Licensed.
             *
             * For more information on how you can configure 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 or empty, 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"],
            
            useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
            httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
            httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true
            
            language: "pt",
            timeFormat: 24,
            units: "metric",
            // serverOnly:  true/false/"local" ,
            		     // local for armv6l processors, default
            		     //   starts serveronly and then starts chrome browser
            		     // false, default for all  NON-armv6l devices
            		     // true, force serveronly mode, because you want to.. no UI on this device
            
            modules: [
            	{
            		module: "alert",
            	},
            	{
            		module: "updatenotification",
            		position: "top_bar"
            	},
            	{
            		module: "clock",
            		position: "top_left"
            	},
            	{
            		module: "calendar",
            		header: "Feriados",
            		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: "Matosinhos",
            			locationID: "2737824", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
            			appid: "18493e6342f2df4ac6ca7ed72fd3d79b"
            		}
            	},
            	{
            		module: "weatherforecast",
            		position: "top_right",
            		header: "Weather Forecast",
            		config: {
            			location: "Matosinhos",
            			locationID: "2737824", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
            			appid: "18493e6342f2df4ac6ca7ed72fd3d79b"
            		}
            	},
            	{
            		module: "newsfeed",
            		position: "bottom_bar",
            		config: {
            			feeds: [
            				{
            					title: "Últimas Noticias",
            					url: "https://www.cmjornal.pt/rss"
            				}
            			],
            			showSourceTitle: true,
            			showPublishDate: true,
            			broadcastNewsFeeds: true,
            			broadcastNewsUpdates: true
            		}
            	},
            ]
            
            };
            
            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== "undefined") {module.exports = config;}
            
            S 2 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @goncalovsc
              last edited by

              @goncalovsc ok, open the developers window, ctrl-shift-i on the keyboard, select the console tab,
              enter ‘weath’ in the filter field (no quotes)

              and u will see

              weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast/daily?id=2737824&units=metric&lang=en&APPID=18493e6… 401 (Unauthorized)
              weatherforecast.js:266 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint.

              so, u need to change your openweather api key

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @goncalovsc could u edit your post to put the 1st 3 backtics on a separate line (I can’t change it)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • G Offline
                  goncalovsc @sdetweil
                  last edited by

                  @sdetweil Changed the API, still shows “Incorrect APPID”

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

                    @goncalovsc sorry, I do not know about the api itself…

                    on my system with your prior config, the weatherforecast module displayed

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @sdetweil both displayed now

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      G 1 Reply Last reply Reply Quote 0
                      • G Offline
                        goncalovsc @sdetweil
                        last edited by

                        @sdetweil My config file says config.js.sample
                        Is that suppose or?

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 7 / 9
                        • 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