Skip to content

flippakitten/orbital_defence_demo

Repository files navigation

CircleCI Join the chat at https://gitter.im/orbital_defence/Lobby Maintainability

DEPRICATED: see orbital_defence_engine

The basic concept working is Sidekiq-scheduler will fetch the FIRMS data from Nasa and weather data from OpenWeatherMap and persist it in the database. The React UI will then fetch the data and display it on the map.

Getting Started:

External API's

Grab a Google Maps API key here
Grab a OpenWeatherMap API key here
Grab a Nasa EarthData Api Key here

Installation:

Install Postgres Install Cockroachdb Install Redis
Install Ruby/Rails
Install Node and NPM
Fork and clone the project from Github

bundle install
yarn

cp database.yml.example database.yml
# edit your database credentials

cp Profile.dev Procfile.env.dev
# add your Google api key to GAPI

# If you have cloned this repository, you'll need to delete and recreate the encrypted credentials file.
# you can check what keys and passwords are needed in credentials.yml.example

rm config/credentials.yml.enc
EDITOR="vim" rails credentials:edit

# Add your Nasa Earth Data API key
# Update database credentials

foreman start -f Profile.env.dev

Then Run a rails console to import the data

ImportFirmsData.import

fire = Fire.first

Fire.within(5, origin: [fire.latitude, fire.longitude])
Fire.within(5, origin: [-33.946609, 22.732593])

About

Nasa Firms data augmented with Open Weather API data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages