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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @rudibarani
      last edited by

      @rudibarani

      Yeah, I’m going to avoid using an exception, even if I knew how to do that. As you know, (you messaged me) the API started working again and then was gone again for a short period of time. This is encouraging. I think it means they are working on fixing the API. I’m working on a temporary fix but it will take some time. Lets hope they fix the API before I finish the fix.

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 1
      • qu1queQ Offline
        qu1que Project Sponsor @Mykle1
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • qu1queQ Offline
          qu1que Project Sponsor @Mykle1
          last edited by

          @mykle1

          Hahaha, I’ve heard it two or three days days ago, on last full moon. Awesome!! My sister heard it and she was scared with the wolf sound, hahaha.

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

            @qu1que

            That’s fantastic. However, there is a problem with the API for the images so the module is having trouble at the moment. I’m looking at some options and @rudibarani has been assisting but I’m still hoping they correct the issue soon.

            Create a working config
            How to add modules

            qu1queQ 1 Reply Last reply Reply Quote 0
            • qu1queQ Offline
              qu1que Project Sponsor @Mykle1
              last edited by

              @mykle1

              Yes, I realised of that module not working, but at the same time, the MMM-SunRiseSet module doesn’t work too. Maybe is the same problem?

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

                @qu1que said in MMM-Lunartic:

                MMM-SunRiseSet module doesn’t work too. Maybe is the same problem?

                Yes, same API, same problem. I’m hoping they fix the API soon. Otherwise, a work-around might be necessary.

                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

                  Temporary fix has been issued

                  https://forum.magicmirror.builders/topic/9193/mmm-lunartic-fixed-temporarily

                  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

                    I just checked https://api.usno.navy.mil/imagery/moon.png for status. The error has changed (the site is down) which I’ll take as evidence that they are working on the problem. :-)

                    0_1543887058615_Screenshot from 2018-12-03 20-28-26.png

                    Create a working config
                    How to add modules

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

                      I just wrote an email to the API for Lunartic and SunRiseSet. I got this email address from the contact page for the US Naval Observatory. Would anyone like to help me by sending an email and asking them when the API’s issues will be corrected? I would really appreciate that.

                      USNO_PAO@navy.mil

                      0_1543962470293_Screenshot from 2018-12-04 17-27-24.png

                      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

                        Small fix

                        Module was not showing the New Moon image.

                        git pull or install as per the readme

                        Create a working config
                        How to add modules

                        1 Reply Last reply Reply Quote 0
                        • qu1queQ Offline
                          qu1que Project Sponsor @Mykle1
                          last edited by

                          @mykle1

                          Hello Myke, I would help you delighted, but I do not know the technical words to specify in that email. Maybe you could write an email with all those details and I (and other users, maybe) could send the same email to that agency to make pressure. I do not know if you understand what I mean.

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

                            @qu1que

                            I also do not know the technical terms to express to them. Maybe someone else here can visit the site and describe what the problem is.

                            I wrote this email to them

                            Hello,

                            I am a 60 year old computer hobbyist. I have been using your API to get images and data about the moon and sun. (https://api.usno.navy.mil). Just recently I am receiving an error message when trying to access the API.

                            This is the error message reported by my browser.

                            “The owner of api.usno.navy.mil http://api.usno.navy.mil has configured their website improperly. To protect your information from being stolen, Firefox has not connected to this website.”

                            Yesterday, the site couldn’t even be reached at all. I’m hoping that you’re doing some maintenance and that this will be resolved soon.

                            Please advise, and thank you for this wonderful site.

                            And this was their response

                            All of the USNO’s web sites have recently been upgraded to https:// protocol,
                            i.e. https://www.usno.navy.mil. While the transition was not smooth, all of
                            the links should be working again. Depending on your browser, you may get some
                            warnings about our certificates. If so, you will need to accept them as valid
                            manually. You may also wish to install the most recent U.S. Government
                            Certificate Authorities. Here’s a link to a website that can guide you
                            through the process:

                            https://knowledge.digicert.com/solution/SO5198.html.

                            If you continue to have trouble, please let us know.

                            Thank you for your interest in our data services.

                            Regards,

                            Geoff Chester
                            Public Affairs Officer
                            U.S. Naval Observatory
                            3450 Massachusetts Avenue, NW
                            Washington, DC 20392
                            geoff.chester@navy.mil

                            Create a working config
                            How to add modules

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

                              Well, the main problem is that the authority which issued and signed the certificate is untrusted. Therefore browsers block access to this site showing a warning

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

                                @yawns

                                Thank you for that info. Please allow me to ask 2 more questions.

                                1. Is that something that the owners of the API have to correct?

                                2. If they can’t, or won’t, is there a way to have electron accept the untrusted certificate or disregard the warning?

                                Create a working config
                                How to add modules

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

                                  @mykle1 they should have used a proper certificate authority.
                                  there is no way to do it ‘automatically’.

                                  As their note suggests, you will have to do it manually…
                                  what a pain in the rear!..

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

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

                                    @sdetweil

                                    Ahh, what terrible news. I’m going to write back to them.

                                    Create a working config
                                    How to add modules

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

                                      @sdetweil said in MMM-Lunartic:

                                      they should have used a proper certificate authority.
                                      there is no way to do it ‘automatically’.

                                      I found this in a readme of another module here on the forum. I tried to add it to my config.js (in a few places) without success. It would error the config, or not work, depending. I was hoping something like this might work for me for even though you stated there is no way to do it ‘automatically’.

                                      Readme quote:

                                      This module requires an extra step to work:

                                      “If you don’t already have one, add a electronOptions object with the following options in your MagicMirror config.js file.”

                                      and

                                      electronOptions: {
                                          webPreferences: {
                                              webSecurity: false
                                          }
                                      }
                                      

                                      I also found this online regarding electronOptions.

                                      allowDisplayingInsecureContent: true,

                                      Is there any hope?

                                      EDIT

                                      Ok, never mind. This didn’t work

                                      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

                                        I have written to the US Naval Observatory again, pointing out that their use of an improper certificate authority has sidelined my Lunartic and SunRiseSet modules. I don’t hold out much hope of action on their part.

                                        Create a working config
                                        How to add modules

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

                                          I’ll see what I can do with this

                                          Event: ‘certificate-error’
                                          Returns:

                                          event Event
                                          webContents WebContents
                                          url String
                                          error String - The error code
                                          certificate Certificate
                                          callback Function

                                          isTrusted Boolean - Whether to consider the certificate as trusted
                                          Emitted when failed to verify the certificate for url, to trust the certificate you should prevent the default behavior with event.preventDefault() and call callback(true).

                                          const {app} = require('electron')
                                          
                                          app.on('certificate-error', (event, webContents, url, error, certificate, callback) => {
                                            if (url === 'https://github.com') {
                                              // Verification logic.
                                              event.preventDefault()
                                              callback(true)
                                            } else {
                                              callback(false)
                                            }
                                          })
                                          

                                          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

                                            Well, the closest I could get with the above event handler is an error stating that I could only use the callback once and some foreboding warnings in the dev console about exposing the user to security risks. BLEH!

                                            Create a working config
                                            How to add modules

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