Coder Social home page Coder Social logo

chrisbergeron / mmm-nextrocketlaunch Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 24 KB

This is a Magic Mirror Module to display the Next Rocket Launch from Earth.

Home Page: https://chrisbergeron.com/

License: MIT License

JavaScript 100.00%
magicmirror2 mmm-nextrocketlaunch

mmm-nextrocketlaunch's Introduction

MMM-NextRocketLaunch

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.

NextRocketLaunch Module

Installation

# Change into the MagicMirror modules directory
cd path/to/magicmirror/modules

# Clone this repo as a module
git clone https://github.com/chrisbergeron/MMM-NextRocketLaunch.git

To enable this module just add the following to the MagicMirror config file config/config.js:

{
	module: 'MMM-NextRocketLaunch',
	position: 'top_right',
	header: 'Next Rocket Launch',
},

NOTE: If this is the only module in your MagicMirror configuration, you can omit the last comma (,).

Next just reload MagicMirror:

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:

/* MMM-NextRocketLaunch */
.module.MMM-NetworkScanner {
        background-color:rgba(0,0,0,0.0);  
    }

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.
{
	module: 'MMM-NextRocketLaunch',   /* Required */
	position: 'top_right',            /* Required */
	header: 'Next Rocket Launch',     /* Optional */
},

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's People

Contributors

chrisbergeron avatar

Stargazers

 avatar

Watchers

 avatar

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.