HTML JavaScript Vue Other
Switch branches/tags
Nothing to show
Latest commit 2ec8c51 Oct 11, 2017 @ricki-z ricki-z filter ectremely high values
filter sensors with PM10 >= 1999 and PM2.5 >= 999
China added

README.md

feinstaub-map

Live Version

Challenge: Aircheck https://2016.spaceappschallenge.org/challenges/earth/aircheck

Goals and ideas

  • visualise recent sensor data on a map
  • identify and add existing air quality data from external sources
  • gather air quality data on-the-go, develop a mobile solution, measure tracks
  • visualize the track data on a map, too

Mobile sensor

  • add GPS to existing sensor setup, see commit
  • enable push GPS data to Django API (changes for GPS measurements see commit) and/or via MQTT

Visualisation

This map visualisation was hacked during the NASA Space-Apps challenge 2016 https://2016.spaceappschallenge.org/locations/stuttgart-germany

The necessary steps were:

  • adapt the django API: request to get the latest measurement values
  • create a map visualisation based on the API inputs

Repository is located at https://github.com/opendata-stuttgart/feinstaub-map

Django API changes

mfa provided the changes to the API (see commit)

Map application

The map background is based on OpenStreetMap provided via mapbox. The application itself was created in JavaScript on top of a leaflet layer.

The implemetation makes use of various frameworks and is on ECMA6 language level. Used frameworks are:

Usage

Installation

npm install
cp config.js.dist config.js

Develop

npm start

Publish

npm run build
npm run ghpages