Code Monkey home page Code Monkey logo

abhijithvijayan / openair Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 0.0 6.7 MB

Real-time Air Quality Monitoring and Navigation System based on IoT

License: GNU General Public License v3.0

JavaScript 1.88% C++ 25.13% Python 14.39% Mako 0.31% CSS 0.91% C 0.21% TypeScript 38.67% TeX 5.38% Kotlin 0.08% Swift 0.25% Objective-C 0.02% Dart 11.61% Dockerfile 0.58% Shell 0.58%
internet-of-things air-quality-monitor navigation openair flutter flask nodejs arduino

openair's Introduction

OpenAir

Real-time Air Quality Monitoring and Navigation System based on IoT

Screenshots

Dashboard Clients
_
Dashboard Client Activity
Android Screen 1
_
Android Screen 2
_
Android Screen 3
Android Screen 4
_
Android Screen 5
_
Android Screen 6

Uses

  • MQTT
  • Websockets
  • HTTP
                        _______________________
                        |      dashboard      |
                        | (web-socket client) |
                        |_____________________|
                                  |
                                  | web-socket protocol
                        _______________________
                        |         |           |
                        |  web-socket(server) |
                        |_____________________|
 __________________     |         |           |      __________________      ______________      _______________
 | mqtt publisher | --> |     mqtt broker     | <--> | mqtt subscriber | --> | API server | <--> | Android App |
 |________________|     |_____________________|      |_________________|     |____________|      |_____________|
                   mqtt                         mqtt                    http                http
                 protocol                     protocol                protocol            protocol

Licence

Code released under the GPL V3 License.

openair's People

Contributors

abhijithvijayan avatar neethujoseph13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

openair's Issues

[web] roadmap for dashboard

The web client should fetch all node names & id from backend API

On socket connection, it should mark as active

There should be Dashboard Option to View all clients as well as view all active clients.

On clicking a node, it should show the sensors connected to it and the relevant gas data using charts

Also, it might be better to add new nodes with specific id or coordinates from the dashboard itself

Sensor reading scheme

Read 10 consecutive values of a single sensor with 1s delay in between

Then take average of it.

Then switch to next channel pin with 10sec minimum delay in between

[server]: optimise database query of finding nearby location

Currently, when a user searches for route between 2 points

  1. Backend requests to Google Maps API to get routes to destination from source.
  2. Select a route and iterate through the points in between
    1. select the 3000m nearby point from current point
    2. query 1500m distant node aqi value from the selected point
  3. return results to the user with all the points and curresposing aqi values.

This model is inefficient considering the number of database queries for a single user request.

Suppose the user's path has 2 routes and one route has 8 points in between with 4 selectable points(with 3000m distance in between) including source and destination.
It takes 4 database queries to find nearest aqi node value.

Also the same for second route.

Refactor this to query the database in a single session and then return the results

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.