Skip to content

graboskyc/MagicMirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About this repo

This repo consists of three parts: server side app code, server side DB, and and Android app. The DB portion is not required if you statically define the dataset.

The initial idea comes from Magic Mirror platform but I wanted it lighter weight and within my control. This gets extended here.

Components

App Code

This is a simple PHP one page website that generates a globe.

It will pull data from the data.txt if available. You can hardcode this in an array of format [lat,long,magnitude,lat,long,magnitude] or if not present it will generate it from the DB.

Third party work:

DB Code

Load into XAMPP if you want to dynamically generate the dataset. Data formats are from OpenFlights. The DB structure is in the directory.

Third party work:

  • Trip flight data exported from TripIt into OpenFlights which I can then export into a CSV and import that into the DB.
  • Airport GPS coordinates from OpenFlights

Android

Based of a standard template in Android Studio 2.2, this will just use the Amazon libraries which support WebGL rendering to load the above app data in an iframe.

While an Android App, it is technically an Amazon Fire TV Hybrid HTML5 app. It will not work on non-Fire devices. The Amazon libraries are required as the standard Android WebView will not support OpenGL natively.

Third party work:

Fire TV Install

  • In Fire TV settings, enable remote debugging and untrusted sources in developer settings
  • Find IP of Fire TV
  • From a PC, run adb.exe connect {ip} then adb.exe install path\to\pkg.apk