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.5k 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.
    • B Offline
      BD0G
      last edited by

      I need to update this module. Is there a preferred way to do so?

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

        @BD0G said in MMM-Lunartic:

        update this module.

        updating ANY/EVERY module is the same

        cd ~/MagicMirror/modules/module_name
        git pull

        if there is a package.json after git pull, do
        npm install

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          BD0G @sdetweil
          last edited by BD0G

          @sdetweil OK. Perfect. Been out of the game for a while so I might have known that but forgotten.

          I ran into a commit changes or stash message.

          pi@MagicMirror:~/MagicMirror/modules/MMM-Lunartic $ git pull
          Updating c977e14…00655ab
          error: Your local changes to the following files would be overwritten by merge:
          MMM-Lunartic.js
          Please commit your changes or stash them before you merge.
          error: The following untracked working tree files would be overwritten by merge:
          package.json
          Please move or remove them before you merge.
          Aborting

          Just sudo git pull ? Then since it mentions the package.json do an npm install?

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

            @BD0G someone has edited the source file…

            NEVER do this, as your changes WILL be lost
            ALL configuration is done in config.js

            git diff

            to detemine WHAT changes were made…

            then to restore the file (and lose the changes)

            git checkout MMM-Lunartic.js

            same with package.json

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              BD0G @sdetweil
              last edited by

              @sdetweil pi@MagicMirror:~/MagicMirror/modules/MMM-Lunartic $ git diff
              diff --git a/MMM-Lunartic.js b/MMM-Lunartic.js
              index 1520d0a…df2718c 100644
              — a/MMM-Lunartic.js
              +++ b/MMM-Lunartic.js
              @@ -38,9 +38,7 @@ Module.register(“MMM-Lunartic”, {
              es: “translations/es.json”,
              de: “translations/de.json”,
              sv: “translations/sv.json”,

              •        nl: "translations/nl.json",
                
              •        gl: "translations/gl.json",
                
              •        ca: "translations/ca.json",
                
              •        nl: "translations/nl.json"
                   };
                
                },

              @@ -50,16 +48,16 @@ Module.register(“MMM-Lunartic”, {
              requiresVersion: “2.1.0”,

                       //  Set locale.
              
              •    this.url = "https://mykle.herokuapp.com/moon";
                
              • // this.url = this.getUrl();
                :
              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @BD0G
                last edited by

                @BD0G no idea how it could get that way

                the author is away right now…

                so, try this

                git stash
                to save the two files

                then back to the original instructions

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  BD0G @sdetweil
                  last edited by

                  @sdetweil Got it.
                  I did git stash and it indicated I needed to set my global identity. Did that. Then git stash succeeded. Then did a git pull and it indicated I needed to remove or move package.json. I moved it . Then did git pull which worked.

                  Then git checkout MMM-Lunartic.js
                  and git checkout package.json

                  Stopped and restarted PM2 and it displays properly and the notification bar above no longer includes that as a module that needs to be upgraded

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

                    @BD0G said in MMM-Lunartic:

                    Then git checkout MMM-Lunartic.js
                    and git checkout package.json

                    only needed to do those BEFORE the git pull

                    we did git stash (to save them off to the side (in the stash) ), which also restored the original files

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Reply Quote 0
                    • B Offline
                      BD0G @sdetweil
                      last edited by

                      @sdetweil :oncoming_fist_light_skin_tone:

                      1 Reply Last reply Reply Quote 0
                      • Z Offline
                        ZeroCool
                        last edited by

                        Very enjoyable module, thank you.

                        1 Reply Last reply Reply Quote 1
                        • E Offline
                          Egnos
                          last edited by

                          Hello people!
                          Since yesterday the module has stopped working, I no longer see the image of the moon and the various descriptions.
                          only the header remained and below the writing: “When the Moon hits your eye . . .”.

                          I know @Mykle1 is currently unavailable, can anyone help me fix this?

                          Thanks.

                          My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                          StoffbeuteluweS T 2 Replies Last reply Reply Quote 0
                          • StoffbeuteluweS Offline
                            Stoffbeuteluwe Project Sponsor @Egnos
                            last edited by

                            @Egnos Hy I have the same problem

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              trividar @Egnos
                              last edited by

                              @Egnos hey… unfortunately my module also stopped working😭

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

                                looking at it

                                that mechanism he uses to get the data using herokuapp.com
                                is returning error 503, not available.

                                this could be a site failure, or a function renewal , or…

                                because its under his userid, I cannot do any additional work to discover the issue

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                E 1 Reply Last reply Reply Quote 0
                                • E Offline
                                  Egnos @sdetweil
                                  last edited by

                                  @sdetweil said in MMM-Lunartic:

                                  looking at it

                                  that mechanism he uses to get the data using herokuapp.com
                                  is returning error 503, not available.

                                  this could be a site failure, or a function renewal , or…

                                  because its under his userid, I cannot do any additional work to discover the issue

                                  Does the herokuapp.com site provide lunar data?

                                  My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

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

                                    @Egnos I think it is a proxy to the real url

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    E 1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      Egnos @sdetweil
                                      last edited by Egnos

                                      @sdetweil so I guess for now we have to say goodbye to the module!
                                      Too bad because it was well made and useful!

                                      Does anyone know of a similar module?

                                      thanks

                                      My Mirror https://forum.magicmirror.builders/topic/17262/the-raspimirror-was-born/7

                                      1 Reply 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
                                      • 10
                                      • 11
                                      • 12
                                      • 13
                                      • 14
                                      • 13 / 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