tropicbliss / AQSensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Air Quality Sensor

Overview

Sleep is integral to maintaining good health and overall well-being throughout one's lifespan. Our team has found out that the quality of one’s waking hours is influenced to a considerable extent by the events that occur during your slumber. As such, our team has decided to focus on the environmental factors that can cause one’s sleep quality to deteriorate. We have decided to develop an advanced air quality monitoring system with sensors capable of accurately measuring and monitoring temperature, humidity, carbon dioxide concentration and particulate matter.

Our solution aims to provide data visualization through a user-friendly web interface while also implementing an alert system to promptly notify users when air quality reaches dangerous levels. In addition, a telgram bot to enable the remote supervision and regulation of diverse environmental measurements. The project seeks to address the need for precise air quality information for various applications, ranging from daily planning to environmental monitoring and safety measures.

Architecture

Architecture Architecture

Sensor used

  • Particulate Matter Sensor
    • PM sensors provide real-time data on the concentration of particulate matter in the air, helping users assess air quality and potential health risks. They are essential for monitoring air pollution levels, especially in urban areas.
  • Carbon Dioxide Sensor
    • CO2 sensors are vital for assessing indoor air quality. High CO2 levels can indicate poor ventilation, which can lead to discomfort and decreased cognitive performance. These sensors help maintain healthy indoor environments and optimize energy efficiency in buildings.
  • Temperature Sensor
    • Temperature sensors provide data on the current temperature, which is crucial for comfort, safety, and energy efficiency. In air quality monitoring, temperature data can be used to assess thermal comfort and to calculate the heat index.
  • Humidity Sensor
    • Humidity sensors are essential for assessing indoor comfort and air quality. Maintaining the right humidity levels can prevent mold growth, ensure comfort, and improve air quality.

Grafana dashboard

Grafana's customizable dashboards provide a visual representation of the air quality data collected by our system's sensors. This visualization is crucial in making complex data more accessible and understandable.

  • Highly customisable
    • Grafana's flexibility allows us to tailor the dashboards to the specific requirements of our air quality system.
  • Historical data
    • The ability to store and analyze historical data is essential for understanding long-term air quality trends and making informed decisions about environmental improvements.
  • Data Analysis
    • Grafana's data aggregation and historical analysis features are valuable. They allow us to identify trends, patterns, and potential issues over time. This visualization is crucial in making complex data more accessible and understandable, both for project stakeholders and end-users.

Telegram Bot

A telegram bot built to facilitate remote monitoring and control of various environmental measurements, specifically focusing on air quality metrics. It allows users to access real-time data and take action by remotely toggling the buzzer or alarm system on and off. The bot is especially useful for scenarios where monitoring air quality and safety are critical, such as in smart homes.

Key Features

Air Quality Readings

  • Particulate Matter (PM2.5) levels
  • Carbon Dioxide (CO2) concentration in parts per million (ppm)
  • Temperature in degrees Celsius
  • Relative Humidity in percentage
  • Heat Index for temperature perception
  • WiFi Signal Strength (RSSI) for sensor connectivity

Remote Control

Users can interact with MeasurementBot through Telegram to:

  • Turn on the alarm or buzzer system to alert them in case of poor air quality.
  • Turn off the alarm or buzzer system when the situation is resolved or deemed safe.

Alerts and Notifications

  • The bot can send alerts and notifications to users when air quality measurements exceed predefined thresholds. For example, if PM2.5 levels rise above a specified limit, the bot can notify the user and sound the alarm.

User-Friendly Interface

Telegram bot offers an intuitive and user-friendly interface with command buttons, inline keyboards, and text-based interactions for easy access to air quality data and control features.

Deployment

cd gateway
sudo docker compose build
sudo docker compose up -d

About

License:Creative Commons Zero v1.0 Universal


Languages

Language:Python 39.4%Language:C++ 38.2%Language:Rust 19.8%Language:Dockerfile 2.6%