Skip to content

This is an application for the Android platform that is my final project. With the help of this software, it's possible to see the temperature and humidity of the environment in real-time on a mobile device. For this project, I used the ESP32 development board and the DHT22 sensor.

Notifications You must be signed in to change notification settings

Ramink78/Thermometer

Repository files navigation

Thermometer

This is an application for the Android platform that is my final project. With the help of this software, it's possible to see the temperature and humidity of the environment in real-time on a mobile device. For this project, I used the ESP32 development board and the DHT22 sensor, and the Arduino code for this project is available in this repository.

Environment Variables

To run this project, you will need to create a Supabase account and take API URL and API KEY and the create Credentials.h file in Thermometer/Arduino/Thermometer-Arduino/src directory and add the following variables to your Credentials.h file

1 - String SSID ="your wifi ssid";

2 - String PASSWORD ="your wifi password";

3 - String API_URL ="your api url from supabase dashboard";

4 - String API_KEY ="you api key from supabase dashboard";

5 - String temperatureTable ="a table name for temperature with "celcius" (float type) and "fahrenheit" (float type) columns";

6 - String humidityTable ="a table name for humidity with "percent" (float type) column"

Screenshots

drawing

Features

  • Offline-first: The app can be accessed even without an internet connection.
  • Real-Time: Sync the temperature and humidity in real-time
  • Temperature Alarm: You will receive a notification when the temperature reaches a certain value.
  • Humidity Alarm: You will receive a notification when the humidity reaches a certain value.

Built With

  • Kotlin - First class and official programming language for Android development.

  • Coroutines - For asynchronous and more..

  • Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.

  • Jetpack Compose - Modern toolkit for building native UIs.

  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.

    • ViewModel - Stores UI-related data that isn't destroyed on UI changes.
    • Navigation Components - The Navigation component provides support for Jetpack Compose applications. You can navigate between composables while taking advantage of the Navigation component's infrastructure and features.
    • Room - Persistence library provides an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.
  • Dependency Injection

    • Hilt - Easier way to incorporate Dagger DI into Android application.
  • Supabase - Provides a full Postgres database for every project with Realtime functionality, database backups, extensions, and more.

About

This is an application for the Android platform that is my final project. With the help of this software, it's possible to see the temperature and humidity of the environment in real-time on a mobile device. For this project, I used the ESP32 development board and the DHT22 sensor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published