Git Product home page Git Product logo

iot-store-display's Introduction

iot-store-display

Description

iot-store-display hosts the Firebase aspects of an IoT project relying on GCP-Cloud IoT Core. We called our GCP project hello-cloud-iot-core.

Devices publish weather data messages to a telemetry topic connected to the MQTT bridge of Cloud Iot Core.

A device is an ESP32 Wifi chip associated with a DHT22 temperature/humidity sensor. The ESP32 runs Mongoose OS.

All data messages are then forwarded to a Cloud Pub/Sub topic of the project and this is where the files in this repository intervene:

  • A Cloud Function for Firebase is triggered upon a publication to the Cloud Pub/Sub topic. Its aim is to log the last weather data as it is published and also to store it in a Firebase Realtime Database. The Cloud Function implementation is the index.js file, hosted in the functions directory.
  • The read/write rules of this database are described in the database.rules.json file.
  • A web app hosted by Firebase Hosting is in charge of plotting the n last weather data each time a new data arrives in the Realtime Database. The files for this web app are hosted in the public directory.

Getting started

Cloud IoT Core architecture, devices firmware & provision and Cloud Function & web app setups are all extensively described in this Medium post.

Live demo

A live demo corresponding to the web app presented in this repository is avalaible here. There are two devices, one "indoor" and one "outdoor". Each one makes a measure every two minutes. The last 750 measures are plotted for each device, corresponding to approximately 24 hours.

iot-store-display's People

Contributors

olivierlourme avatar

Watchers

James Cloos 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.