HomeWeather

所属分类:救灾/预报
开发工具:kotlin
文件大小:0KB
下载次数:0
上传日期:2023-10-12 08:41:06
上 传 者sh-1993
说明:  基于传感器的应用,利用DHT22温湿度传感器,
(Sensor-based application utilizing DHT22 temperature-humidity sensor,)

文件列表:
HomeWeather/ (0, 2023-10-13)
HomeWeather/app/ (0, 2023-10-13)
HomeWeather/app/build.gradle (3448, 2023-10-13)
HomeWeather/app/google-services.json (782, 2023-10-13)
HomeWeather/app/proguard-rules.pro (750, 2023-10-13)
HomeWeather/app/src/ (0, 2023-10-13)
HomeWeather/app/src/androidTest/ (0, 2023-10-13)
HomeWeather/app/src/androidTest/java/ (0, 2023-10-13)
HomeWeather/app/src/androidTest/java/fi/ (0, 2023-10-13)
HomeWeather/app/src/androidTest/java/fi/metropolia/ (0, 2023-10-13)
HomeWeather/app/src/androidTest/java/fi/metropolia/homeweather/ (0, 2023-10-13)
HomeWeather/app/src/androidTest/java/fi/metropolia/homeweather/ExampleInstrumentedTest.kt (677, 2023-10-13)
HomeWeather/app/src/main/ (0, 2023-10-13)
HomeWeather/app/src/main/AndroidManifest.xml (2079, 2023-10-13)
HomeWeather/app/src/main/ic_launcher-playstore.png (74707, 2023-10-13)
HomeWeather/app/src/main/ic_launcher_logo-playstore.png (74707, 2023-10-13)
HomeWeather/app/src/main/java/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/dataclass/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/dataclass/Humidity.kt (191, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/dataclass/Temperature.kt (191, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/dataclass/VoiceAlert.kt (156, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/repository/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/repository/AppRepository.kt (3126, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/repository/WeatherAPIRepository.kt (1098, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/theme/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/theme/Color.kt (3383, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/theme/Theme.kt (4542, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/theme/Type.kt (2072, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/views/ (0, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/views/AlertScreen.kt (12585, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/views/BluetoothScreen.kt (4755, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/views/HomeScreen.kt (8546, 2023-10-13)
HomeWeather/app/src/main/java/fi/metropolia/homeweather/ui/views/MainActivity.kt (4092, 2023-10-13)
... ...

# HomeWeather HomeWeather is an android mobile sensor-based application utilizing DHT22 temperature-humidity sensor. This is a project developed under Metropolia University of Applied Sciences. For further information, please see below or contact one of the developers. ## Table of Contents - [Getting Started](https://github.com/giaongo/HomeWeather/blob/master/#getting-started) - [Prerequisites](https://github.com/giaongo/HomeWeather/blob/master/#prerequisites) - [Installation](https://github.com/giaongo/HomeWeather/blob/master/#installation) - [Usage](https://github.com/giaongo/HomeWeather/blob/master/#usage) - [Features](https://github.com/giaongo/HomeWeather/blob/master/#features) - [Components](https://github.com/giaongo/HomeWeather/blob/master/#components) - [Application Flow](https://github.com/giaongo/HomeWeather/blob/master/#application-flow) - [Technology](https://github.com/giaongo/HomeWeather/blob/master/#technology) - [Contributing](https://github.com/giaongo/HomeWeather/blob/master/#contributing) - [Video Demo](https://github.com/giaongo/HomeWeather/blob/master/#video-demo) - [Thumbnails](https://github.com/giaongo/HomeWeather/blob/master/#thumbnails) ## Getting Started ### Prerequisites - [Android Studio](https://github.com/giaongo/HomeWeather/blob/master/https://developer.android.com/studio) installed on your machine - Android device or emulator for testing - Enable Bluetooth mock sensor data by going to BluetoothLEService class -> go down to companion object class at the end of the page -> set ENABLE_MOCK = true -> Now you will have sensor data that is mockly generated every 10 seconds. You can view the change of sensor data in HomeScreen OR - Android phone - Arduino board MKR1010 and DHT22 sensor. Please check this documentation for extra information: 1. [Arduino MKR1010](https://github.com/giaongo/HomeWeather/blob/master/https://docs.arduino.cc/hardware/mkr-wifi-1010) 2. [DHT22 with Arduino](https://github.com/giaongo/HomeWeather/blob/master/https://www.instructables.com/How-to-use-DHT-22-sensor-Arduino-Tutorial/) ### Installation 1. Clone the repository to your local machine using `git clone`. 2. Open the project in Android Studio. 3. Create an assets folder in main, create an env file inside assets folder 4. Contact a developer for env content 5. Build and run the project on your Android device or emulator. OR - Install this [APK File](https://github.com/giaongo/HomeWeather/blob/master/https://drive.google.com/file/d/1GehuS3wvuHBRAyPQAe7n5OE1hLzgRoBW/view?usp=drive_link) to your android phone ## Usage HomeWeather is recommended to be used as a stationary device at your home, office or room. ## Features HomeWeather allows users to: - Measure humidity level and temperature inside a room with an external bluetooth sensor - Compare the humidity levels and temperatures inside your room with your living area with GPS internal sensor and data fetched from the OpenWeather API. - Allow users to see humidity level and temperature statistic over a certain period. - Voice alert + emergency call to users when inside humidity level or temperature drops too low or rises too high and allow user to add additional info on every alert log. - Allow users to scan QR code to view our github page and download the app apk - Application is available in English and Finnish ## Components - Jetpack Compose - Firebase Firestore - Material Design 3 - Bluetooth Connection - Foreground Service - Animation - QR generator - External Arduino board with DHT22 sensor - Open Weather API - Voice Alert - TexttoSpeech API - GPS lat & long - SharedPreference - Emergency call - Env file to prevent sensitive data exposure ## Application flow - Bluetooth Service is running persistently on background even when application is closed - Indoor temperature and humidity level are uploaded to Firebase cloud in background every hour - Outdoor temperature and humidity level are fetched and updated hourly ## Technology - Android Kotlin - C/C++ ## Contributing Contributions are welcome! Here's how you can contribute to the project: 1. Fork the repository on GitHub. 2. Clone the forked repository to your local machine. 3. Make changes and commit them with descriptive commit messages. 4. Push your changes to your fork on GitHub. 5. Submit a pull request to the original repository explaining your changes. ## Video Demo Click the video to watch [![](https://github.com/giaongo/HomeWeather/blob/master/https://img.youtube.com/vi/wbvtO4DTXSM/maxresdefault.jpg)](https://github.com/giaongo/HomeWeather/blob/master/https://www.youtube.com/watch?v=wbvtO4DTXSM&ab_channel=GiaoNg%C3%B4) ## Thumbnails

近期下载者

相关文件


收藏者