koxm / MMM-SpaceLaunchNow

Magic Mirror Module based on SpaceLaunchNow API Data
3 stars 1 forks source link

MMM-SpaceLaunchNow

This is a module for MagicMirror².

This module will show all recent or future launches bases on the SpaceLaunchNow 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.

Installation

  1. Navigate to your MagicMirror's modules folder, and run the following command: git clone https://github.com/koxm/MMM-SpaceLaunchNow.git
  2. Add the module and a valid configuration to your config/config.js file

Using the module

This is an example configuration for your config/config.js file:

var config = {
    modules: [
        {
            module: "MMM-SpaceLaunchNow",
            position: "middle_center",
            config: {
                records: 8,
                modus: "upcoming",
                showExtraInfo: true,
        showColumnHeader: true,
        }
    },
    ]
}

Configuration options

Option Description
records Optional - The number of lines you want to show
Default: 5
modus Optional - 'past' for past launches, 'upcoming' for future launches
Default: past
showExtraInfo Optional - Do you want to show the launchsite (true) or not (false)
Default: false
showColumnHeader Optional - Choose if you want to see columnheadings
Default: false

Screenshot

This is a screenshot with extra info on true. Looks better on a wider region, for example middle_center of bottom_bar. Screenshot

This is a screenshot with extra info on false. Looks best on a left or right region. Screenshot