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

[NEWBIE] Change In Clock Module Is giving error in config file

Scheduled Pinned Locked Moved Unsolved Troubleshooting
19 Posts 6 Posters 6.9k Views 6 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.
  • P Offline
    postremalone
    last edited by postremalone Jun 26, 2018, 12:26 PM Jun 26, 2018, 12:26 PM

    @yawns it is saying can’t read the config file. Every time i am saving this. and after changing it back to what it was the program start working.

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdetweil
      last edited by Jun 26, 2018, 12:38 PM

      @postremalone said in [NEWBIE] Change In Clock Module Is giving error in config file:

      {
      module: “clock”,
      position: “top_left”,
      config: {
      timezone: ‘Etc/GMT+5.30’
      }
      }

      is that the LAST module in the list, or ???

      maybe u need a comma after the last }

      also, watch out on single quotes… sometimes you get the MS WORD format of the quote, which is NOT the right one…

      change those to double quotes

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil
        last edited by Jun 26, 2018, 12:44 PM

        you can also use https://www.jslint.com/
        to check the syntax of the config file…

        copy/paste it in and at the bottom check boxes for
        long lines
        single quotes
        whitepsace mess

        the press jslint

        u may have to remove the last ‘,’ (comma), before ]

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by Jun 26, 2018, 8:49 PM

          @postremalone said in [NEWBIE] Change In Clock Module Is giving error in config file:

          {
          module: “clock”,
          position: “top_left”,
          config: {
          timezone: ‘Etc/GMT+5.30’
          }
          }

          @sdetweil is correct. You need the comma after the closing bracket, as such }, With that correction, the config syntax is satisfied and the module will run. However, it does generate this error in the dev console.

          Moment Timezone has no data for Etc/GMT+5.30.

          Please see this for for information.
          https://momentjs.com/timezone/docs/#/data-formats/packed-format/

          And this list. Perhaps you can find an appropriate timezone within this list.

          https://github.com/moment/moment-timezone/blob/develop/data/packed/latest.json

          Create a working config
          How to add modules

          P 1 Reply Last reply Jun 28, 2018, 3:17 PM Reply Quote 0
          • P Offline
            postremalone @Mykle1
            last edited by Jun 28, 2018, 3:17 PM

            @mykle1 @sdetweil @yawns i did this.
            alt text

            And it returned this error.
            alt text

            Help Please.

            J 1 Reply Last reply Jul 1, 2018, 10:17 PM Reply Quote 0
            • P Offline
              postremalone
              last edited by postremalone Jun 28, 2018, 3:33 PM Jun 28, 2018, 3:32 PM

              It will be better if someone can send me the config file with indian time zone and indian calendar with RSS feed for any Indian News site :) so that i can replace it and learn.
              I am trying Indian News Feed thing. hope it works :)

              *update… I did the news thing and its working for me :)

              now need some help with weather module not showing up. on right side

              S 1 Reply Last reply Jun 28, 2018, 3:45 PM Reply Quote 0
              • S Offline
                sdetweil @postremalone
                last edited by Jun 28, 2018, 3:45 PM

                @postremalone ok, so you got rid of the config.js error, and the mirror is working, except for weather?

                looking at the config.js screen shot there is no locationID value (last line) … got to have one

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • P Offline
                  postremalone
                  last edited by Jun 28, 2018, 4:04 PM

                  @sdetweil hello
                  i got the weather, the news feed,
                  Now working on Clock… I did this…
                  alt text

                  Still Config File Giving error. can you guide me :)

                  And is there any other website which I can use for Calendar Holidays for India.

                  M X 2 Replies Last reply Jun 29, 2018, 1:11 AM Reply Quote 0
                  • P Offline
                    postremalone
                    last edited by Jun 28, 2018, 4:07 PM

                    Do i need to type this full “Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6” in the timezone column ?

                    S 1 Reply Last reply Jul 1, 2018, 11:11 PM Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer @postremalone
                      last edited by Jun 29, 2018, 1:11 AM

                      @postremalone

                      I can tell you that those screenshots are impossible for me to read. Please post your code in a code block, instead of a screenshot, so that it can be easily read by everyone.

                      https://forum.magicmirror.builders/topic/4247/how-to-post-code-on-the-forum-for-absolute-beginners

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        9/19
                        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