Coder Social home page Coder Social logo

osteth / project-firewatch Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 24.39 MB

2017 NASA Space Apps Challenge Submission from team Hackbama Project Firewatch.

Home Page: https://2017.spaceappschallenge.org/challenges/warning-danger-ahead/and-you-can-help-fight-fires/teams/hackbama-project-firewatch/project

License: MIT License

Python 72.47% HTML 26.26% Shell 1.27%
nasa spaceapps hackathon satelite modis fire rescue first-responder api-server sensors

project-firewatch's Introduction

project-firewatch

Team Members: Dutch osbourne, Seth Wahle, Thuy Pham, Nick Hershey, Jason Cuneo

image

image

2017 NASA Space Apps Challenge Submission for the And YOU can Help Fight Fires! challenge.

See the Teams submission page for project updates!

Sign up here for Wildfire email updates!

Project-Firewatch integrates crowdsourced low-cost hardware fire monitors with Fire Information for Resource Management System (FIRMS) from the MODIS satellite to provide users with granularly accurate yet highly encompassing wildfire information that is easily accessible.

Access the Project-Firewatch Wildfire Map Here!

Access the Project-Firewatch API Here!

Demo sites may take a moment to load, the server is not powerful and the project still needs a lot of optimization work.

image

Table of Contents

Quick start

To set up a project-firewatch server, do the following.

git clone https://github.com/osteth/project-firewatch.git

Then install in locally editable (-e) mode and run the tests.

pip install -e .[test]
py.test

#tests aren't yet written and may fail.

Finally, give the command line program a try.

projectfirewatch --help

Command-line Interface

Project Firewatch Includes a Command-line Interface(CLI) to ensure easy use for non-technical personell as well as provide powerfull POSIX compliant features needed by experienced systems administrators and highly techincal persons.

Commands

Format:
projectfirewatch <commads><options><arguments>

projectfirewatch --help

projectfirewatch update projectfirewatch start

CLI Development Roadmap

  • [x] Build Basic CLI functionality.
  • [x] Write a function to automatically download MODIS Data.
  • [x] Write a function to re-format MODIS data into a usable JSON format.
  • [x] Combine download and format function and add to CLI.
  • [x] Improve Error resilience of update function.
  • [x] Integrate API with CLI.
  • [x] Integrate Map with CLI.
  • [ ] Write unit tests.
  • [ ] add a periodic auto-update of MODIS data to server function.
  • [ ] Add Daemon functionality to CLI.
  • [ ] make GUI extension??

API

MODIS Satellite Data Explanation

Attribute Short Description Long Description
Latitude Latitude Center of 1km fire pixel but not necessarily the actual location of the fire as one or more fires can be detected within the 1km pixel.
Longitude Longitude Center of 1km fire pixel but not necessarily the actual location of the fire as one or more fires can be detected within the 1km pixel.
Brightness Brightness temperature 21(Kelvin) Channel 21/22 brightness temperature of the fire pixel measured in Kelvin.
Scan Along Scan pixel size The algorithm produces 1km fire pixels but MODIS pixels get bigger toward the edge of the scan. Scan and track reflect actual pixel size.
Track Along Track pixel size The algorithm produces 1km fire pixels but MODIS pixels get bigger toward the edge of the scan. Scan and track reflect actual pixel size.
Acq_Date Acquisition Date Date of MODIS acquisition.
Acq_Time Acquisition Time Time of acquisition/overpass of the satellite (in UTC).
Satellite Satellite A = Aqua and T = Terra.
Confidence Confidence (0-100%) This value is based on a collection of intermediate algorithm quantities used in the detection process. It is intended to help users gauge the quality of individual hotspot/fire pixels. Confidence estimates range between 0 and 100% and are assigned one of the three fire classes (low-confidence fire, nominal-confidence fire, or high-confidence fire).
Version Version (Collection and source) Version identifies the collection (e.g. MODIS Collection 6) and source of data processing: Near Real-Time (NRT suffix added to collection) or Standard Processing (collection only). "6.0NRT" - Collection 6 NRT processing. "6.0" - Collection 6 Standard processing. Find out more on collections and on the differences between FIRMS data sourced from LANCE FIRMS and the University of Maryland.
Bright_T31 Brightness temperature 31 (Kelvin) Channel 31 brightness temperature of the fire pixel measured in Kelvin.
FRP Fire Radiative Power Depicts the pixel-integrated fire radiative power in MW (megawatts).
DayNight Day / Night D = Daytime, N = Nighttime

Requests

requests modifiers Long Description
lat plus minus /api/?lat=43.6271&plus=10&minus=10 results filteres to a latitude plus and minus a given location.
lon plus minus /api/?lat=43.6271&plus=10&minus=10 results filteres to a longitude plus and minus a given location.
scan-min /api/?scan-min=1
scan-max /api/?scan-max=2
track-min /api/?track-min=1
track-max /api/?track-max=2
date end /api/?date=<julian begin date>&end=<julian end date>
time until /api/?time=0255&until=2250 (in UTC and military time).
onland /api/?onland=True
confidence /api/?confidence=65 (sets minimum confidence of results)
frp /api/?frp=16 (sets minimum power of results in megawatts).
day /api/?onland=True

API Development Roadmap

  • [x] Get basic FlaskAPI functionality working.
  • [x] Get pretty FlaskAPI markdown displayer working.
  • [x] Figure out how to get MODIS data and.
  • [x] Pull in MODIS data from flat file.
  • [x] Allow the user to dump all MODIS data at request.
  • [ ] collaborate with data source provider to better offer data to the community.
  • [ ] Write Unit Tests
  • [ ] Switch over to DB from the flat file.
  • [ ] Create a specification for MODIS data queries.
  • [ ] Expand API to allow for data filtering.
  • [ ] Create Specification for Sensor Data.
  • [ ] Expand API to allow writing of sensor data to DB.
  • [ ] Expand API to allow querying of sensor data.

Map

The map displays all known satellite discovered wildfires as well as the location and status of all active sensors.

Map Limitations

Due to technical Limitations, we are attempting to overcome the map can only display a maximum of 3240 points. To mitigate the effects of this limitation, we use GeoIP information to automatically locate the user and only plot fires within 25 degrees in all directions of the user. Additionally, a green marker is dropped were the program believes the user is located and the map automatically focuses on the user's location.

Map Features

Displays Semi-Realtime MODIS Satellite gathered wildfire Information.

image

Displays Status and information about custom fire sensors.

image

Satellite Information allows the user to get a broad picture of where the fire is located.

image

Project Firewatch located user's location and automatically focus the map for ease of use.

image

Reports your locations and helps you sign up for email notifications.

image

showing 25-degree bounding box size.

image

Map Development Roadmap

  • [x] Basic Map Functionality.
  • [x] Display a pin and circle.
  • [x] figure out radius expansion algorithm to accurately display MODIS satellite data.
  • [x] Display mock sensor data.
  • [x] Integrate with CLI.
  • [x] Get coordinates of user and autofocus map accordingly.
  • [ ] Get Map to display all MODIS fire Data.
  • [ ] Migrate from flat file to DB.
  • [ ] Display all live sensor data.
  • [ ] Allow the user to specify a focus location.
  • [ ] Attempt to pull cell phone GPS location and use it as users location.

Sensors

We put together prototype hardware sensors for the competition that anyone can build and contribute crowdsourced Fire data back to our database via the Project-Firewatch API.

image

image

image

Bill of Materials

Orange pi zero - $6.99

4GB SD Card (class 10 speeds are needed for OS operability) - $2.49

AC-DC converter/ Power Regulator - $3.00

Plug-in Enclosure - $5.17

Keyes Flame Detection Sensor Module for Arduino - $2.66

KEYES DHT11 Digital Temperature Humidity Sensor Module for Arduino - $1.59

Total prototype parts cost: $21.90

Operating System

for the prototype sensors, we utilized the ARMBIAN Orange Pi Zero build available Here

Sensor Development Roadmap

  • [x] Build microprocessor version using low cost readily available modules.
  • [x] Get basic computing functions working.
  • [ ] Connect sensors and get sensor data.
  • [ ] Figure out how to send sensor data to API.
  • [ ] Write the client-side application to gather and send data to API.
  • [ ] Refactor to lower cost micro-controller (possibly Arduino nano).
  • [ ] write microcontroller firmware.
  • [ ] Implement a battery.
  • [ ] Design custom PCB.
  • [ ] V1 sensor test build.
  • [ ] V1 user trials.
  • [ ] Design Enclosure.
  • [ ] Enclosure fittest.
  • [ ] Develop automated testing fixturing and software for manufacturing.
  • [ ] Enumerate Q/A standards.
  • [ ] Get contract manufacturing quotes.
  • [ ] Deliver Build Documents and equipment to Contract Manufacturer.
  • [ ] Develop packaging and product ancillaries.
  • [ ] Product launch, sales, and delivery.

project-firewatch's People

Contributors

danactos avatar harukama avatar nhershy avatar osteth avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

danactos

project-firewatch's Issues

cannot load over 3000 circles.

getting a connection reset error with attempting to render over 3000 circles.
suspecting MAX_CONTENT_LENGTH is the issue

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.