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

    Scheduled Pinned Locked Moved Fun & Games
    21 Posts 10 Posters 10.1k Views 10 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.
    • K Offline
      koxm
      last edited by koxm

      I’m very new to Magic Mirror and javascript development, so I’m very proud to present my first self written module!!

      MMM-SpaceX
      This module will show all recent or future launches based on the SpaceX API.

      I’m still working on expanding the module with additional information and options. If you have nice ideas, then you should certainly pass them on.

      Also, because I’m new to javascript development, don’t hesitate to review my code and give me tips about it.

      Screenshot
      screenshot

      Download
      https://github.com/koxm/MMM-SpaceX

      S Mykle1M J 3 Replies Last reply Reply Quote 4
      • R Offline
        retroflex Project Sponsor Module Developer
        last edited by

        Nice work, really cool! A couple of ideas…

        • Optional column headings. For those uninitiated, it’s not really obvious what e.g. CRS-20 is.
        • Options whether to show each column, instead of only extrainfo or no extrainfo. Maybe I only want to show date and launch site for example.
        • Countdown column for upcoming launches.
        K 1 Reply Last reply Reply Quote 0
        • S Offline
          sonicgoose @koxm
          last edited by

          @koxm That looks awesome! It looks like you have launch date as the second last column—can that show upcoming launches in ascending order (so soonest to latest?) Can you add in the launch window time?

          I agree with @retroflex that the option to show each column would be nice. Otherwise well done!

          K 1 Reply Last reply Reply Quote 0
          • K Offline
            koxm @retroflex
            last edited by

            @retroflex Thanks for the compliment!
            Optional column headings are a great idea. I’m gonna work on it. I will see how I can fit the other features in it.

            S 1 Reply Last reply Reply Quote 0
            • K Offline
              koxm @sonicgoose
              last edited by

              @sonicgoose Thanks!
              Unfortunately the dates for the upcoming launches are not fully maintained in the api. Maybe I can use a different field. I’m going to look at it.

              R 1 Reply Last reply Reply Quote 0
              • S Offline
                sonicgoose @koxm
                last edited by

                @koxm I’ve just installed it and have noticed the table cells are awfully close together, i.e. there is no separation at all between the last two columns, so it appears as 02 Mar 2020 Falcon 9. This is with the module bottom_center. I tried adding a padding to the left and right side of the cells in my custom.css and also added a width to the table in custom.css, but neither seemed to help.

                K 1 Reply Last reply Reply Quote 0
                • K Offline
                  koxm @sonicgoose
                  last edited by

                  @sonicgoose You’re right, it’s pretty close. The stylesheet included only manipulates the td and th. If I test it on my screen on bottom_center, it looks quite fine. This is because of the column header which creates some kind of spacing.
                  I’m gonna see if I can make it al little better with the MMM-SpaceX.css.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sonicgoose @koxm
                    last edited by

                    @koxm Is this the api you’re using?

                    K 1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by

                      This post is deleted!
                      K 1 Reply Last reply Reply Quote 0
                      • K Offline
                        koxm @sonicgoose
                        last edited by

                        @sonicgoose Yep

                        1 Reply Last reply Reply Quote 0
                        • K Offline
                          koxm @Guest
                          last edited by

                          @hango Thanks for the tip, gonna work on it tommorow. I’m pretty new to CSS as well.

                          1 Reply Last reply Reply Quote 0
                          • ? Offline
                            A Former User
                            last edited by

                            This post is deleted!
                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              retroflex Project Sponsor Module Developer @koxm
                              last edited by

                              @koxm said in MMM-SpaceX:

                              @sonicgoose Thanks!
                              Unfortunately the dates for the upcoming launches are not fully maintained in the api. Maybe I can use a different field. I’m going to look at it.

                              I have not looked much at the API but if the unix timestamp field is maintained, I suggest you use that. Then you will also get the correct date for your time zone.

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

                                @koxm

                                Damn, you beat me to it! haha

                                Well done! :thumbsup:

                                Create a working config
                                How to add modules

                                1 Reply Last reply Reply Quote 0
                                • BKeyportB Offline
                                  BKeyport Module Developer
                                  last edited by

                                  Nice module!

                                  The "E" in "Javascript" stands for "Easy"

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    jimmythehat45 @koxm
                                    last edited by

                                    @koxm I really like the idea of this app! Any chance we could get an update? It looks like v3 is no longer active on the spacexdata api, I tried updating the url to their newest but it doesn’t seem to load-in the future launches properly:

                                    https://api.spacexdata.com/v4/launches/latest

                                    Any ideas on what is needed to get this app working again? Cheers!

                                    W 1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      Wenike @jimmythehat45
                                      last edited by

                                      @jimmythehat45 I’ve not played around with this, but MMM-Rocketlaunch might work better? Or if nothing else, pull the same API (and get more than the SpaceX launches).

                                      Thanks for calling out this module btw, I didn’t even realize that I actually wanted a rocket launch module on my mirror.

                                      J 1 Reply Last reply Reply Quote 1
                                      • J Offline
                                        jimmythehat45 @Wenike
                                        last edited by

                                        @wenike Good call, I hadn’t seen the MMM-Rocketlaunch module before, looks sharp! I love seeing upcoming launches on my mirror :D

                                        1 Reply Last reply Reply Quote 0
                                        • X Offline
                                          xsorifc28
                                          last edited by xsorifc28

                                          I have just updated this module to work with V4 of the SpaceX api:
                                          https://github.com/xsorifc28/MMM-SpaceX

                                          I only tested “upcoming” launches.

                                          I will make a pull request to the original source by @koxm after I clean up my implementation.

                                          @jimmythehat45

                                          J 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jimmythehat45 @xsorifc28
                                            last edited by

                                            @xsorifc28 this is fantastic! I didn’t see this reply until now, I can’t wait to install it on my Mirror! Thanks so much

                                            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
                                            • 1 / 2
                                            • 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