Read the statement by Michael Teeuw here.
MMM-SpaceX
-
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

Download
https://github.com/koxm/MMM-SpaceX -
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.
-
@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!
-
@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. -
@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. -
@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.
-
@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. -
-
This post is deleted! -
@sonicgoose Yep
-
@hango Thanks for the tip, gonna work on it tommorow. I’m pretty new to CSS as well.
-
This post is deleted! -
@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.
-
-
Nice module!
-
@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!
-
@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.
-
@wenike Good call, I hadn’t seen the MMM-Rocketlaunch module before, looks sharp! I love seeing upcoming launches on my mirror :D
-
I have just updated this module to work with V4 of the SpaceX api:
https://github.com/xsorifc28/MMM-SpaceXI only tested “upcoming” launches.
I will make a pull request to the original source by @koxm after I clean up my implementation.
-
@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
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