Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

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

    Troubleshooting
    6
    19
    3633
    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
      postremalone last edited by

      Whenever i am changing the clock module to show my own timezone it gives error. Please Help.

      1 Reply Last reply Reply Quote 0
      • yawns
        yawns Moderator last edited by

        Please show, what kind of changes exactly you applied.

        1 Reply Last reply Reply Quote 0
        • P
          postremalone last edited by postremalone

          @yawns

          I did this

          {
            module: "clock",
            position: "top_left",
            config: {
              timezone: 'Etc/GMT+5.30'
            }
          }
          

          As my time zone is GMT+5.30
          but it returned error

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

            can u show the error?

            1 Reply Last reply Reply Quote 0
            • P
              postremalone last edited by postremalone

              @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
                sdetweil last edited by

                @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

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

                  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 ]

                  1 Reply Last reply Reply Quote 0
                  • Mykle1
                    Mykle1 Project Sponsor Module Developer last edited by

                    @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

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      postremalone @Mykle1 last edited by

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

                      And it returned this error.
                      alt text

                      Help Please.

                      justjim1220 1 Reply Last reply Reply Quote 0
                      • P
                        postremalone last edited by postremalone

                        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 Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy