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-nasaastropic no picture

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 4 Posters 1.9k Views 4 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.
    • A Offline
      Anthony Project Sponsor
      last edited by

      I installed the module and it only shows the header and the the url of which should load the image from. But url says: https://apod.nasa.gov/apod/undefined. What does this means?

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

        @anthony

        It most likely means that the url to the picture is broken. Having made several modules that use the NASA API I would bet this is the problem. NASA has been known to change their API data.

        You can send a message and/or create an issue at the repo and see if the author responds. His last commit to this module was 2 years ago.

        In the meantime, if you are interested in this type of module then you could try https://github.com/mykle1/MMM-NASA

        Create a working config
        How to add modules

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          Anthony Project Sponsor @Mykle1
          last edited by

          @mykle1
          I tried the link and it is working but it shows a video instead of a picture. Is that why it doesn’t show on my MM? And that means that every time that NASA will upload a video intstead of a picture I will get the udefined url? I already have installed NASA.

          1 Reply Last reply Reply Quote 0
          • A Offline
            Anthony Project Sponsor
            last edited by

            Does anyone knows who can change the title color of the module if it doesn’t have css file? I tried many different entries in my custom css but nothing worked. Thank you in advance.

            1 Reply Last reply Reply Quote 0
            • S Offline
              stuartiannaylor
              last edited by

              guess you could just add it in the code header.style.background = “gray”; just have it before the wrapper code and set it there.
              But think you can just add a style class in config.js

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Anthony Project Sponsor @stuartiannaylor
                last edited by

                @stuartiannaylor
                That worked! Thank you mate! I am changing the status of the topic as solved.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  grena Module Developer
                  last edited by

                  The error https://apod.nasa.gov/apod/undefined with MMM-nasaastropic can occur when the media published by NASA is not an image (a video for example).

                  My new module MMM-APOD support image and video (thanks to NASA API) : https://github.com/grenagit/MMM-APOD

                  MMM-APOD ScreenShots

                  1 Reply Last reply Reply Quote 0
                  • 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