MMM-NextRocketLaunch MagicMirror Module
This is a Magic Mirror Module that displays the Next Rocket Launch from Earth. The data comes from the excellent Launch Library 2 API provided by thespacedevs. This is the Launch Library 2 Documentation.
Installation
1 | # Change into the MagicMirror modules directory |
To enable this module just add the following to the MagicMirror config file config/config.js
:
1 | { |
NOTE: If this is the only module in your MagicMirror configuration, you can omit the last comma (,).
Next just reload MagicMirror:
1 | npm start run |
To customize the appearance of the module, you can override the default CSS values by editing the css/custom.css
file. Any valid standard CSS components present in MagicMirror or this module’s code can be overridden. This is an example of setting the background to transparent for this module:
1 | /* MMM-NextRocketLaunch */ |
Configuration Options
Option | Description |
---|---|
position | Where the module will appear. Valid values are: top_right , center , bottom_right or any value that is supported by MagicMirror. |
header | The name of the header to display, or null to not display the module’s header at all. |
1 | { |
Project Roadmap
- Display an actual countdown timer in nodeJS. (If you know how to do this, please feel free to submit a pull request. Sorry, I’m still learning JS.)
- Parse options that can override the default API Request. Specifically, to only show results that are Cleared or launches from a specific PAD or Spaceport.
Hat Tip to Tim Dows for the script that I used as a template for this - MMM-JsonTable
MMM-NextRocketLaunch MagicMirror Module
https://chrisbergeron.com/2020/12/04/My-NextRocketLaunch-MagicMirror-Module/