Giter VIP home page Giter VIP logo

mmm-spacex's Introduction

MMM-SpaceX

This is a module for MagicMirror².

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

Installation

  1. Navigate to your MagicMirror's modules folder, and run the following command: git clone https://github.com/koxm/MMM-SpaceX.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-SpaceX",
            position: "middle_center",
            config: {
                records: 8,
                modus: "past",
                showExtraInfo: false,
		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

Good to know

  1. In small mode, the columns are as follows: Agency, Mission, Launche Date and Rocket. The extra info option gives you the Launch Site, Payload and Orbit extra on screen.

  2. There are a few abbreviations used to save space on the screen, especially in the case of a small region. The following abbreviations are useful to know:

  1. The launch sites have also been abbreviated. Some examples below.
  • CCAFS SLC 40 = Cape Canaveral Air Force Station Space Launch Complex 40
  • KSC LC 39A = Kennedy Space Center Historic Launch Complex 39A
  • VAFB SLC 3W = Vandenberg Air Force Base Space Launch Complex 3W
  • VAFB SLC 4E = Vandenberg Air Force Base Space Launch Complex 4E
  • STLS = SpaceX South Texas Launch Site
  • Kwajalein Atoll = Kwajalein Atoll Omelek Island

Screenshot

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

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

mmm-spacex's People

Contributors

koxm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mmm-spacex's Issues

Only Column Headers

The module has worked fine for the past few months but the other day it stopped appearing. The only thing I see is the column headers, no information (launches, orbit, dates, etc.). Any ideas?

missing required script moment.js

This is not working right, it breaks MMM-Pages.
Perhaps because this required script is missing from the MMM-SpaceX folder?

// Define required scripts.
getScripts: function () {
	return ["moment.js"];
},

V3 of the spacexdata api depreciated

Hi,

I noticed that my MM wasn't pulling in SpaceX launches anymore. It seems that the root cause is that the spacexdata api has depreciated the V3 version. Now they are on V4. Here's the issue on github: r-spacex/SpaceX-API#564

I changed the V3 to V4 in the settings, but it does not work, so I expect the underlying data structure is different.

What would be the best way to get the MMM-SpaceX updated to handle the changes?

No new launches

is this API broken?

Past launches are in back in 2020...

I found this online.

NOTICE: The V3 API is deprecated as of November 2020! All existing links will continue to work, but no new data will be added or updated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.