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.

    MMM-AtomVisualizer language

    Scheduled Pinned Locked Moved Solved Troubleshooting
    13 Posts 3 Posters 171 Views 3 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.
    • KristjanESPERANTOK Offline
      KristjanESPERANTO Module Developer @sdetweil
      last edited by

      @sdetweil said:

      I think the first in the getTranslations list is the default.

      Ah, yes the first is used as the fallback language. It was German, which is not the best choice :-)

      I changed it to English and released a new version.

      @nowayto Please update and check 🙂

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @KristjanESPERANTO
        last edited by sdetweil

        @KristjanESPERANTO yeh I think this is a general bug.

        Even if you had a parm, could change the order. It’s called before start.

        even so, I was wrong, this.config points the the proper module config at the time of getTranslations()
        so it could customize the returned language list

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil Ok, in the past I think I set up the system in Italian.
          So I’ll try to switch the order and, eventually, I’ll switch the language. Thanks

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            nowayto @nowayto
            last edited by

            @kristjanesperanto thanks for your answer.
            I solved like @sdetweil said, simply changing the order inside AtomVisualizer config and it worked.
            Usually my rule is to never modify items inside modules folders so I though there was a way to set it from the config.js like other modules but might be I didn’t understand it, that’s why I asked here :)
            It’s a nice module, I like it!
            Thanks again for your support guys.

            S 1 Reply Last reply Reply Quote 0
            • N nowayto has marked this topic as solved
            • S Do not disturb
              sdetweil @nowayto
              last edited by sdetweil

              @nowayto he also uploaded a fix, so you could have used that.
              to get it do

              cd ~/MagicMirror/modules/MMM-AtomVisualizer
              git checkout MMM-AtomVisualizer.js
              git pull
              

              then restart MagicMirror

              this restores the file to the last local repo version
              then updates with the new

              I wasn’t suggesting KEEPING the locally modified, it was only for testing.
              til a fix… and there is one now

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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

                @sdetweil Yeah, I will do that, I just wanna say it worked.

                Another detail, default configuration has this line:

                elements: [“H”, “He”, “Li”, “C”, “N”, “O”, “Ne”, “Na”, “Fe”, “Cu”, “Ag”, “Xe”],

                what should I write inside the [] parenthesis to cycle through all the elements?

                S KristjanESPERANTOK 2 Replies Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @nowayto
                  last edited by

                  @nowayto see
                  https://www.thoughtco.com/element-symbols-list-606530

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil I know the elements abbreviations.
                    I was just thinking if there was a way to “cycle all elements” instead of writing 110/120 elements inside the config

                    S 1 Reply Last reply Reply Quote 0
                    • S Do not disturb
                      sdetweil @nowayto
                      last edited by

                      @nowayto @kristjanesperanto will have to answer that.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • KristjanESPERANTOK Offline
                        KristjanESPERANTO Module Developer @nowayto
                        last edited by

                        @nowayto said:

                        what should I write inside the [] parenthesis to cycle through all the elements?

                        I just released version 0.1.5. With this update, all elements are used when the array is empty 🙂

                        N 1 Reply Last reply Reply Quote 0
                        • N Offline
                          nowayto @KristjanESPERANTO
                          last edited by

                          @KristjanESPERANTO
                          Nice!
                          Thank you

                          1 Reply Last reply Reply Quote 1

                          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 / 1
                          • 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