GithubHelp home page GithubHelp logo

xennis / particulate-matter-sensor-storage Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 88 KB

Store the particulate matter data from a luftdaten.info sensor in BigQuery

Makefile 6.47% Python 93.53%
particulate-matter luftdaten sensor-data bigquery cloud-function

particulate-matter-sensor-storage's Introduction

Particulate Matter Sensor โ€“ Store Data in BigQuery

Build Status

The project luftdaten.info by Code for Germany enables people to build a particulate matter sensor and measure the air qualitiy. The firmware that runs on the sensor has the option to send the data also to an own API.

The Google Cloud Function stores the sensor data together with a timestamp in BigQuery. The sensor data in BigQuery can be easily analyzed. As an example a reported created with Data Studio accessing that data:

Data Studio report demo

Setup Cloud Function

Local Development

Create a virtual environment

python3 -m venv .venv
source .venv/bin/activate

Install the dependencies

pip install --requirement requirements.txt

Deployment

Deploy the Cloud Function

make deploy

Setup sensor

Configuration

  • Open the configuration page of the senor

  • Enable the option Send data to custom API with the settings

    Optional Value
    Server europe-west1-GCP-PROJECT.cloudfunctions.net
    Path /pm_sensor_storage
    Port 80

Note: The firmware supports HTTPS, but the sensor crashes for larger SSL certificates because of the limited memory. (Source)

particulate-matter-sensor-storage's People

Contributors

xennis avatar

Watchers

 avatar  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.