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.
    • mumblebajM Offline
      mumblebaj Module Developer @Mykle1
      last edited by

      @Mykle1 Thanks for this module. I am having an issue with the module in that the image moon.png is not loading. I can see the following on the Console:
      0_1563556739390_e7d07eb1-0699-4317-85af-01fde4cc1cce-image.png

      Is there anything I am missing perhaps? My config:

              disabled: false,
              module: 'MMM-Lunartic',
              position: 'bottom_right', // Best in left, center, or right regions
              config: {
                  mode: "rotating", // rotating or static
                  image: "current", // animation, current, DayNight or static
                  distance: "km", // miles or km
                  sounds: "yes", // howling wolf, only on a full moon
                  useHeader: "true", // true if you want a header
                  header: "Moon Phase", // Any text you want
                  maxWidth: "300px",
                  animationSpeed: 0,
                  rotateInterval: 15000,
              }
          },
      

      Check out my modules at: https://github.com/mumblebaj?tab=repositories
      Check my blog-post: https://mumblebaj.xyz/
      Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

        @mumblebaj

        I just used your config entry (after adding the opening curly bracket before { disabled: false,) and it fired right up. See pic:

        0_1563585449885_Screenshot from 2019-07-19 21-10-46.png

        Can you put this url into a browser and see if you get the image?

        https://api.usno.navy.mil/imagery/moon.png?date=today&time=now

        Request:

        Can a few people outside the USA test the above url for me and report here? My thanks!

        Create a working config
        How to add modules

        StoffbeuteluweS mumblebajM 3 Replies Last reply Reply Quote 0
        • StoffbeuteluweS Offline
          Stoffbeuteluwe Project Sponsor @Mykle1
          last edited by

          @Mykle1 works 👍🏼…Germany

          1 Reply Last reply Reply Quote 1
          • mumblebajM Offline
            mumblebaj Module Developer @Mykle1
            last edited by

            @Mykle1 It says :
            This site can’t be reached api.usno.navy.mil’s server IP address could not be found. from South Africa. I guess that it’s restricted somehow.

            Check out my modules at: https://github.com/mumblebaj?tab=repositories
            Check my blog-post: https://mumblebaj.xyz/
            Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

              @mumblebaj said in MMM-Lunartic:

              I guess that it’s restricted somehow.

              If that is the case then there is nothing I can do about that. However, there are times when the image does not load and you have to try again. It doesn’t happen too often. If you care to try again you may have better luck.

              @Stoffbeuteluwe said in MMM-Lunartic:

              works …Germany

              My thanks!

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 1
              • cowboysdudeC Offline
                cowboysdude Module Developer @mumblebaj
                last edited by cowboysdude

                @mumblebaj said in MMM-Lunartic:

                @Mykle1 It says :
                This site can’t be reached api.usno.navy.mil’s server IP address could not be found. from South Africa. I guess that it’s restricted somehow.

                That’s very possible…it could be blocked by your ISP OR the Navy could block the traffic to your server.

                Try putting this in a browser window and see if you get results from that…

                https://mykle.herokuapp.com/moon

                mumblebajM 1 Reply Last reply Reply Quote 1
                • E Offline
                  electros Project Sponsor
                  last edited by

                  Works… UK

                  1 Reply Last reply Reply Quote 2
                  • mumblebajM Offline
                    mumblebaj Module Developer @cowboysdude
                    last edited by

                    @cowboysdude That returned the following result:
                    {"age":19.928838935009,"illumination":72.74035463065,"stage":"waning","DFCOE":403666.04,"DFS":151987757.36,"FM":{"UT":1563313171.7967,"DT":"21:39:31-16 Jul 2019"},"NNM":{"UT":1564629175.4546,"DT":"3:12:55-1 Aug 2019"}}

                    Check out my modules at: https://github.com/mumblebaj?tab=repositories
                    Check my blog-post: https://mumblebaj.xyz/
                    Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                      @mumblebaj

                      That’s the return from my API for the data. The image comes from the USNO API

                      Create a working config
                      How to add modules

                      1 Reply Last reply Reply Quote 0
                      • StoffbeuteluweS Offline
                        Stoffbeuteluwe Project Sponsor @Mykle1
                        last edited by

                        @Mykle1 now the image is not loading…

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

                          @Stoffbeuteluwe said in MMM-Lunartic:

                          now the image is not loading…

                          Yes, I see. The USNO API is having trouble at the moment. “api.usno.navy.mil refused to connect.”

                          I will see what i can find out.

                          in the meantime, you can use the MMM-Lunartic.js file that is inside the ‘temporary fix’ folder in the module folder. This will give you pictures until the api becomes functional again

                          Create a working config
                          How to add modules

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

                            @Mykle1 ok thanks

                            1 Reply Last reply Reply Quote 0
                            • mumblebajM Offline
                              mumblebaj Module Developer @Mykle1
                              last edited by

                              @Mykle1 Thanks. I set it to “animation” and it is working now.

                              Check out my modules at: https://github.com/mumblebaj?tab=repositories
                              Check my blog-post: https://mumblebaj.xyz/
                              Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                                @mumblebaj said in MMM-Lunartic:

                                Thanks. I set it to “animation” and it is working now.

                                yes because that uses a local .gif file that is included with the module.the alternate module.js file also uses local pix for just such an occasion. either will work. for now, the the usno api is still being a pain in the butt

                                Create a working config
                                How to add modules

                                mumblebajM 1 Reply Last reply Reply Quote 0
                                • mumblebajM Offline
                                  mumblebaj Module Developer @Mykle1
                                  last edited by

                                  @Mykle1 No problem. Thanks for a really nice module.

                                  Check out my modules at: https://github.com/mumblebaj?tab=repositories
                                  Check my blog-post: https://mumblebaj.xyz/
                                  Check my MM Container: https://hub.docker.com/repository/docker/mumblebaj/magicmirror/general

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

                                    @mumblebaj said in MMM-Lunartic:

                                    Thanks for a really nice module.

                                    My pleasure. I’ll keep an eye on the USNO API. It’s still has issues.

                                    Create a working config
                                    How to add modules

                                    StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                                    • StoffbeuteluweS Offline
                                      Stoffbeuteluwe Project Sponsor @Mykle1
                                      last edited by

                                      @Mykle1 Now it works …

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

                                        @Stoffbeuteluwe said in MMM-Lunartic:

                                        Now it works …

                                        Yes, the USNO API is working again so you can get the most current images of the moon and its phases. So, rename the temporary fix .js file (if you are using it) and use the original MMM-Lunartic.js file again.

                                        Create a working config
                                        How to add modules

                                        StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                                        • StoffbeuteluweS Offline
                                          Stoffbeuteluwe Project Sponsor @Mykle1
                                          last edited by

                                          @Mykle1 Thanks for helping and your nice modules

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

                                            I am using the current view of the moon. I have the module working. I just need to remove the line over the moon image and center the text that states “Moon Phase” to line it up in the center over the moon image.

                                            Mykle1M 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
                                            • 7
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 9 / 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