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 50.5k 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 said in MM on Ubuntu:

      I edited the compliments and the config file

      please show your changes… thx

      (u should not edit the compliments.js file, right, only the config.js

      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 https://gyazo.com/0d971f9417655c6753c26a538fa702ff
        nothing changed

        S 1 Reply Last reply Reply Quote 0
        • 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
                            • S Offline
                              sdetweil @goncalovsc
                              last edited by

                              @goncalovsc no…

                              config.js

                              there should be two files in the folder… config.js.sample (original as shipped )
                              config.js (copied from sample at install time), used from then on as live config

                              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 It only came with this one at install. Should I copy this one and rename it to config.js?

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

                                  @goncalovsc how did u do install?

                                  it should not run without config.js

                                  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 I installed with the command you gave on the beggining of this thread

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

                                      @goncalovsc my script will copy the sample

                                      please do

                                      cd ~/MagicMirror/config
                                      ls -laF
                                      

                                      show results

                                      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 said in MM on Ubuntu:

                                        cd ~/MagicMirror/config

                                        Here you have - https://gyazo.com/18000e7546ea27b9c3682acd33c1d27a

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

                                          @goncalovsc config.js is present… which file did u edit?

                                          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 now its present because i copied it from config.js.sample and renamed it

                                            S 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 1 / 5
                                            • 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