Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions README-V2.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,87 @@
NEW README.MD

Mobile app - is an absolute division of labor between internet connected, multimedia-capable device and a physical computing platform is an appealing direction for the future.


> Coronavirus can cause more severe symptoms in people with weakened immune systems, older people and those with long-term conditions like diabetes, cancer and chronic lung disease.

Gateway is an open-source solution for covid 19 situation. Ours goal is provide solution for those `4 major pillar` recommended by WHO.

We've been in those situation and manual "Guidance & Prevenence" of coronavirus and "Back to office" or coming back to normal. Manual we mean by we still have security



*`WHO #include 4 major pillar`*

- **`0x1`**. Health Declaration (vaccinated) before enter, via QR code identification.

- `0x2`**. Wearing facemask protect yourself and others.

- **`0x3`**. Hand sanitizer regularly.

- **`0x4`**. Fever temperature recognition.



Within ours scope we define an "cost effected" "self-hostable" solution, ours goal is widespread this solution - with that in mind. We're aim to support this solution Documentation, Wiki and configuration by doing so we could encourage learner in high school, collages students build up this solution by their own.

Gateway in an application running in yours device (ours supported architecture). It will communicate with gateway-devices with it wired sensor over Bluetooth connection protocol. By combining application and IoT devices, we’re able enable an solution for recommended

We also encourage undergraduate, learner, students who might found interesting about “technical” aspect of the project, they could find by themselves having a “proof of concept” of how those technology work together in an ecosystem and better or excel their STEM innovation.

##### Supported architecture :
Gateway : Mobile (Android, IOS), Web (coming soon), Google Cloud Platform.

Gateway-devices: ESP32 BLE, Arduino framework.



---

Project compose submodule

1. Mobile Application [current directory](./)

2. IoT Embedded device [./ble_devices/](./ble_devices/)

3. Backend Infrastructure [./gateway-core](./gateway-core/)

4. Web Configuration – Management Dashboard [./gateway-dashboard](./gateway-dashboard/)



README.MD :



Techonlogy :

<techonoly img slide>

Mobile (Flutter) Backend (NodeJS) Web (Angular)

GCP (Compute Enginine) Firebase (Firestore,...)







---

Contributor:

1. TruongHoangDuy

2. DangCao

3. KHuong

4. Hung

5. QuanDam

6. Huy

7. Phuc
2 changes: 2 additions & 0 deletions assets/model/labels.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
with_mask
without_mask
Binary file added assets/model/model.tflite
Binary file not shown.
21 changes: 19 additions & 2 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@ PODS:
- connectivity (0.0.1):
- Flutter
- Reachability
- FirebaseCore (8.13.0):
- device_info_plus (0.0.1):
- Flutter
- Firebase/CoreOnly (8.11.0):
- FirebaseCore (= 8.11.0)
- firebase_core (1.12.0):
- Firebase/CoreOnly (= 8.11.0)
- Flutter
- FirebaseCore (8.11.0):
- FirebaseCoreDiagnostics (~> 8.0)
- GoogleUtilities/Environment (~> 7.7)
- GoogleUtilities/Logger (~> 7.7)
Expand Down Expand Up @@ -203,6 +210,8 @@ PODS:
DEPENDENCIES:
- camera (from `.symlinks/plugins/camera/ios`)
- connectivity (from `.symlinks/plugins/connectivity/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- Flutter (from `Flutter`)
- google_ml_kit (from `.symlinks/plugins/google_ml_kit/ios`)
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
Expand All @@ -212,6 +221,7 @@ DEPENDENCIES:

SPEC REPOS:
trunk:
- Firebase
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseInstallations
Expand Down Expand Up @@ -254,6 +264,10 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/camera/ios"
connectivity:
:path: ".symlinks/plugins/connectivity/ios"
device_info_plus:
:path: ".symlinks/plugins/device_info_plus/ios"
firebase_core:
:path: ".symlinks/plugins/firebase_core/ios"
Flutter:
:path: Flutter
google_ml_kit:
Expand All @@ -270,7 +284,10 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
camera: 9993f92f2c793e87b65e35f3a23c70582afb05b1
connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
FirebaseCore: c7e3fa30492e50ccdeef280bf0d5584af38da3e1
device_info_plus: e5c5da33f982a436e103237c0c85f9031142abed
Firebase: 44dd9724c84df18b486639e874f31436eaa9a20c
firebase_core: 443bccfd6aa6b42f07be365b500773dc69db2d87
FirebaseCore: 2f4f85b453cc8fea4bb2b37e370007d2bcafe3f0
FirebaseCoreDiagnostics: c2836d254a8f0bbb4121ff18f2c2ea39d118fd08
FirebaseInstallations: 60edbf7e11d91ae4c751d26c200dfd037099abe0
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
Expand Down
6 changes: 3 additions & 3 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.truonghoangduy.gateway;
PRODUCT_BUNDLE_IDENTIFIER = com.gdschsu.gateway;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down Expand Up @@ -522,7 +522,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.truonghoangduy.gateway;
PRODUCT_BUNDLE_IDENTIFIER = com.gdschsu.gateway;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand All @@ -549,7 +549,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.truonghoangduy.gateway;
PRODUCT_BUNDLE_IDENTIFIER = com.gdschsu.gateway;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
Expand Down
8 changes: 4 additions & 4 deletions lib/blocs/ble_sensor/ble_sensor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:gateway/blocs/ble_sensor/sensor/ble_sensor.dart';
import 'package:gateway/blocs/ble_sensor/sensor/interface.dart';
import 'package:gateway/config/constants/ble_desgin_constants.g.dart';

enum SensorType { proximity, temperature, rfid, radar }
enum SensorType { temperature, rfid, radar }

// SensorType.get

Expand All @@ -15,9 +15,9 @@ class BLESensorProvider {

ISensorBehavior provide(SensorType sensorType) {
switch (sensorType) {
case SensorType.proximity:
return BLESensor(bloc, BLE_CHARACTERISTIC_PROXIMITY_DISTANCE,
BLE_SERVICE_PROXIMITY_UUID);
// case SensorType.proximity:
// return BLESensor(bloc, BLE_CHARACTERISTIC_PROXIMITY_DISTANCE,
// BLE_SERVICE_PROXIMITY_UUID);
case SensorType.temperature:
return BLESensor(bloc, BLE_CHARACTERISTIC_THERMOMETER_READ,
BLE_SERVICE_THERMOMETER_UUID);
Expand Down
1 change: 0 additions & 1 deletion lib/blocs/ble_sensor/bloc/ble_sensor_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class BleSensorBloc extends Bloc<BleSensorEvent, BleSensorState> {
});

sensorBehavior.notify().listen((event) {
print(event);
emit(BleSensorOnData(event, sensorType));
});
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading