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-Lunartic

    Scheduled Pinned Locked Moved Education
    266 Posts 30 Posters 476.1k Views 29 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @thetalentedfool
      last edited by

      @thetalentedfool

      I removed the comma from the config and ran npm run config:check. The result would be enough to determine the cause.

      daddle@daddle-Presario-CQ57-Notebook-PC:~/MagicMirror$ npm run config:check
      
      > magicmirror@2.1.3 config:check /home/daddle/MagicMirror
      > node tests/configs/check_config.js
      
      Checking file...  /home/daddle/MagicMirror/config/config.js
      Line 30 col 9 Expected '}' to match '{' from line 28 and instead saw 'distance'.
      Line 30 col 17 Expected '}' to match '{' from line 25 and instead saw ':'.
      Line 30 col 19 Expected ']' to match '[' from line 24 and instead saw 'miles'.
      Line 35 col 6 Missing semicolon.
      Line 35 col 5 Unrecoverable syntax error. (55% scanned).
      daddle@daddle-Presario-CQ57-Notebook-PC:~/MagicMirror$ 
      

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • lavolp3L Offline
        lavolp3 Module Developer
        last edited by

        I’m astonished by the fact that “npm run config:check” seems to be so unknown in the community. It is a VERY important tool in my opinion.
        Whenever there is something odd, always run this one first to check if the config is ok.
        However, it took me about twenty lookups into the github readme to finally remember it correctly.

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        Mykle1M 1 Reply Last reply Reply Quote 1
        • T Offline
          thetalentedfool
          last edited by

          The terrible thing is that this command was exactly what I spent most of the afternoon yesterday looking for, and it’s apparently nowhere in the popular search results for debugging MM. (Git readme? Pffffft. Clearly my brain was not in a “RTactualFM” mood…lesson learned.) I’ll totally be preaching it now. Thanks for the info and demonstration!

          Mykle1M 1 Reply Last reply Reply Quote 1
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @lavolp3
            last edited by

            @lavolp3 said in MMM-Lunartic:

            I’m astonished by the fact that “npm run config:check” seems to be so unknown in the community. It is a VERY important tool in my opinion.

            Well, it is a relatively new function, introduced in the last update to MM (I think). I had to look for the command because I don’t use it usually. However, I agree that it is a valuable tool

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @thetalentedfool
              last edited by

              @thetalentedfool said in MMM-Lunartic:

              it’s apparently nowhere in the popular search results for debugging MM.

              I’ll write up a simple tutorial and post it so that it is easier to find using the forum search function.

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 2
              • lavolp3L Offline
                lavolp3 Module Developer
                last edited by

                Great idea Mykle1! Thanks in advance for the effort :-)

                The function is not that new.
                I’m using it for a few months now, I’d guess.

                How to troubleshoot modules
                MMM-soccer v2, MMM-AVStock

                Mykle1M 2 Replies Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @lavolp3
                  last edited by

                  @lavolp3 said in MMM-Lunartic:

                  I’m using it for a few months now, I’d guess.

                  Ok, but it’s not available in MM version 2.1.1 or 2.1.2 (I think) so that would only make it available in the most recent version (2.1.3). I did say relatively new. :-)

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @lavolp3
                    last edited by

                    @lavolp3 said in MMM-Lunartic:

                    Great idea Mykle1! Thanks in advance for the effort :-)

                    I promised a tutorial. :-)

                    https://forum.magicmirror.builders/topic/5399/how-to-check-your-config-for-errors-for-absolute-beginners

                    Create a working config
                    How to add modules

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

                      Minor update

                      • Fixed wording for phases of the moon.
                      • Also, a not so hidden config option for image choice.

                      cd MagicMirror/modules/MMM-Lunartic
                      git pull

                      Or install as usual

                      0_1510348033949_121.JPG

                      Create a working config
                      How to add modules

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

                        German translation added

                        Thanks to our friend @tbbear, MMM-Lunartic now has German translation. And, when you choose German as your language, the date will be properly formatted for you. Again, thanks to @tbbear. Well done, Robert!

                        cd MagicMirror/modules/MMM-Lunartic
                        git pull

                        Or install as usual

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 3
                        • Mykle1M Offline
                          Mykle1 Project Sponsor Module Developer
                          last edited by

                          It appears the API that I am using for this module has reached its limit for the month of November. I apologize for that. It’s actually my API being hosted by a free service herokuapp.com. The drawback is that it has such a low limitation. I’m not willing to pay for higher usage. So, as I see it, I have 2 options if I want to keep this module alive.

                          1. I have the PHP file that does the computations for the API. I’d be willing to host the API if someone would be willing to help me set it up locally and administer it. That doesn’t seem very likely but the offer stands.

                          2. I can look for another public API to use for the module. This is probably the more logical option but it’s not as cool as the first.

                          So, to those millions of MMM-Lunartic users, I will start looking for another API this very moment. In the meantime, the module will be functional again on December 1 when the current API resumes.

                          Create a working config
                          How to add modules

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

                            @tbbear

                            API update

                            I’ve acquired nearly double the amount of free API usage for my Lunartic module. So, no more loss of API in the 3rd week of every month. :-)

                            Create a working config
                            How to add modules

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

                              So here we are on the 24th of January and my API for this module is still up and running. Miracle of miracles! With only 7 more days left in the month I still have 47% of my free dyno hours. Looks like this problem has been solved. :-)

                              0_1516841893091_Screenshot from 2018-01-24 19-50-12.png

                              Create a working config
                              How to add modules

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pepebc
                                last edited by

                                Hello, very interesting this module.
                                I like Astronomy a lot, and I already have it installed. I have translated it into Spanish: es.json

                                {
                                "Distance from Earth's core = ": "Distancia desde la Tierra: ",
                                "Distance from sun = ": "Distancia desde el Sol: ",
                                "The next full moon is ": "Próxima Luna llena ",
                                "The next new moon is ": "Próxima Luna nueva: ",
                                "The current moon is ": "La fase actual lleva ",
                                "The moon is ": "Esta Luna está  ",
                                "% illuminated": "% iluminada",
                                " days old": " dias transcurridos",
                                "New Moon Phase": "Luna Nueva",
                                "Waxing Crescent Moon": "Luna Creciente",
                                "First Quarter Half Moon": "Primer cuarto de media luna",
                                "Waxing Gibbous Moon": "Luna creciente Gibosa",
                                "Full Moon": "Luna Llena",
                                "Waning Gibbous Moon": "Luna Gibosa menguante",
                                "Third Quarter Half Moon": "Tercer cuarto de Media Luna",
                                "Waning Crescent Moon": "Luna creciente menguante",
                                "When the Moon hits your eye . . .": "Cuando la Luna ilumina tus ojos . . ."
                                }
                                
                                Mykle1M 1 Reply Last reply Reply Quote 2
                                • Mykle1M Offline
                                  Mykle1 Project Sponsor Module Developer @pepebc
                                  last edited by

                                  @pepebc said in MMM-Lunartic:

                                  I have translated it into Spanish: es.json

                                  Hello, and thank you. I applaud the fact that you made the effort and did the translations. :-)

                                  I’ve added your translation file to the module. A git pull in the MMM-Lunartic directory will get you the updated files.

                                  Once again, thanks!

                                  Peace.

                                  Create a working config
                                  How to add modules

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

                                    Thanks to user @el97 the module now has Swedish translation.

                                    Create a working config
                                    How to add modules

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

                                      Download:

                                      [card:mykle1/MMM-Lunartic]

                                      Version Update 1.0.3

                                      Added an option for rotating data. So now the module takes up far less mirror real estate yet you still get the same information. Of course, you can still use the static mode, in which case, the module is visually unchanged.

                                      Click on the animated gif below for a more pleasing view:

                                      0_1537320646152_rotating.gif

                                      Do a git pull in your MMM-Lunartic directory or install as per the readme.

                                      Create a working config
                                      How to add modules

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

                                        Version update 1.0.4

                                        Fixed the check for “Last full moon was” and "Next full moon is. That was bothering me.

                                        Added config option for sound of howling wolf when there is a full moon.

                                        git pull in the MMM-Lunartic directory or install as per the readme
                                        https://github.com/mykle1/MMM-Lunartic

                                        Create a working config
                                        How to add modules

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

                                          Ok, stupid me thought I fixed the issue . . . but didn’t.

                                          Now it’s fixed!
                                          git pull in the MMM-Lunartic directory or install as per the readme
                                          https://github.com/mykle1/MMM-Lunartic

                                          Create a working config
                                          How to add modules

                                          P J 2 Replies Last reply Reply Quote 0
                                          • P Offline
                                            Pr05t3n @Mykle1
                                            last edited by

                                            @mykle1 Cant get the Swedish translation to show up despite language: “sv”, in config.js
                                            Translation sv.json is present in MagicMirror/modules/MMM-Lunartic/translations

                                            J Mykle1M 2 Replies 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
                                            • 13
                                            • 14
                                            • 3 / 14
                                            • 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