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

24 Hour clock problem

Scheduled Pinned Locked Moved Bug Hunt
25 Posts 5 Posters 8.3k 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.
  • R Offline
    Rasmus rytter @Nilnik
    last edited by Dec 30, 2018, 10:42 PM

    I think i have done some wrong but cant find it, there is just the clock in the MM now, no calendar.
    0_1546209736293_ffd95172-d834-40ae-8925-4b918f88c691-image.png

    1 Reply Last reply Reply Quote 0
    • R Offline
      Rasmus rytter
      last edited by Dec 30, 2018, 10:48 PM

      Everything has gone except of the clock?
      0_1546210130560_0ed49340-5312-4c32-91b3-a0d63d4d3d45-image.png

      M 1 Reply Last reply Dec 31, 2018, 3:43 AM Reply Quote 0
      • N Offline
        Nilnik Project Sponsor
        last edited by Dec 30, 2018, 10:58 PM

        Try this link: https://github.com/MichMich/MagicMirror/wiki/faq#q-im-having-problems-with-my-configjs-but-cant-find-the-issue-

        1 Reply Last reply Reply Quote 0
        • R Offline
          Rasmus rytter
          last edited by Dec 30, 2018, 11:09 PM

          I try to do it all over do anyone have a clear starting config i can copy?

          M 1 Reply Last reply Dec 31, 2018, 2:13 AM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @Rasmus rytter
            last edited by Dec 31, 2018, 2:13 AM

            @rasmus-rytter

            You don’t have your config.js.sample file?

            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-o ",
            						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
            					}
            				]
            			}
            		},
            		{
            			module: "compliments",
            			position: "lower_third"
            		},
            		{
            			module: "currentweather",
            			position: "top_right",
            			config: {
            				location: "New York",
            				locationID: "",  //ID from http://bulk.openweathermap.org/sample/; unzip the gz file and find your city
            				appid: "YOUR_OPENWEATHER_API_KEY"
            			}
            		},
            		{
            			module: "weatherforecast",
            			position: "top_right",
            			header: "Weather Forecast",
            			config: {
            				location: "New York",
            				locationID: "5128581",  //ID from http://www.openweathermap.org/help/city_list.txt
            				appid: "YOUR_OPENWEATHER_API_KEY"
            			}
            		},
            		{
            			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
            			}
            		},
            	]
            
            };
            
            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== "undefined") {module.exports = config;}
            
            

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • B Offline
              bhepler Module Developer
              last edited by Dec 31, 2018, 3:30 AM

              Everyone! Please, use the Markdown features of the forum when posting code.

              @rasmus-rytter said in 24 Hour clock problem:

              Everything has gone except of the clock?

              Looking at your config.js file, you are missing the code to include the clock module entirely. @Mykle1 has it correct: It’s best at this point to copy the config.js.sample file to config.js and just start from a known working baseline.

              1 Reply Last reply Reply Quote 1
              • M Offline
                Mykle1 Project Sponsor Module Developer @Rasmus rytter
                last edited by Dec 31, 2018, 3:43 AM

                @rasmus-rytter

                Also, for future reference, a value of true should not be in quotes as you have in colored: "true", above.

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 0
                • R Offline
                  Rasmus rytter
                  last edited by Dec 31, 2018, 1:44 PM

                  Thanks, i learn some new everyday :)

                  M 1 Reply Last reply Dec 31, 2018, 9:43 PM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @Rasmus rytter
                    last edited by Dec 31, 2018, 9:43 PM

                    @rasmus-rytter said in 24 Hour clock problem:

                    Thanks, i learn some new everyday

                    As do I, my friend. As do I. :thumbsup:

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 3
                    • 3 / 3
                    3 / 3
                    • First post
                      21/25
                      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