Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-045
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2020-045
2020-045
Commits
46a61e3b
Commit
46a61e3b
authored
Dec 22, 2020
by
Boteju W.J.M.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
12/22
parent
52e959e2
Pipeline
#1989
failed with stages
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
38 deletions
+32
-38
Arduino/NodeMCU_MPU6050_WebServer/NodeMCU_MPU6050_WebServer.ino
...o/NodeMCU_MPU6050_WebServer/NodeMCU_MPU6050_WebServer.ino
+6
-2
WalkingPatternRecognition/FeatureVectorsTest.csv
WalkingPatternRecognition/FeatureVectorsTest.csv
+4
-0
WalkingPatternRecognition/Readings.csv
WalkingPatternRecognition/Readings.csv
+8
-28
WalkingPatternRecognition/mobileapp/__pycache__/views.cpython-38.pyc
...ernRecognition/mobileapp/__pycache__/views.cpython-38.pyc
+0
-0
WalkingPatternRecognition/mobileapp/views.py
WalkingPatternRecognition/mobileapp/views.py
+9
-8
fitnessapp/lib/Screens/Login/components/body.dart
fitnessapp/lib/Screens/Login/components/body.dart
+5
-0
No files found.
Arduino/NodeMCU_MPU6050_WebServer/NodeMCU_MPU6050_WebServer.ino
View file @
46a61e3b
...
@@ -35,8 +35,12 @@ int16_t AccelX, AccelY, AccelZ, Temperature, GyroX, GyroY, GyroZ;
...
@@ -35,8 +35,12 @@ int16_t AccelX, AccelY, AccelZ, Temperature, GyroX, GyroY, GyroZ;
//const char* ssid = "CommercePromote"; // Enter SSID here
//const char* ssid = "CommercePromote"; // Enter SSID here
//const char* password = "Salsa@4321"; //Enter Password here
//const char* password = "Salsa@4321"; //Enter Password here
const
char
*
ssid
=
"SLT_FIBRE@jayamini"
;
//const char* ssid = "SLT_FIBRE@jayamini";
const
char
*
password
=
"adsl54321"
;
//const char* password = "adsl54321";
const
char
*
ssid
=
"Dialog 4G"
;
const
char
*
password
=
"DEY3FFR37DH"
;
//const char* ssid = "Nana";
//const char* ssid = "Nana";
//const char* password = "123456asd";
//const char* password = "123456asd";
...
...
WalkingPatternRecognition/FeatureVectorsTest.csv
View file @
46a61e3b
...
@@ -14,3 +14,7 @@ StartTime,EndTime,Date,Activity
...
@@ -14,3 +14,7 @@ StartTime,EndTime,Date,Activity
2020-10-18 20:04:49.333553,2020-10-18 20:05:47.331008,2020-10-18 20:05:47.331008,0
2020-10-18 20:04:49.333553,2020-10-18 20:05:47.331008,2020-10-18 20:05:47.331008,0
2020-10-18 20:05:51.334496,2020-10-18 20:06:49.337295,2020-10-18 20:06:49.337295,1
2020-10-18 20:05:51.334496,2020-10-18 20:06:49.337295,2020-10-18 20:06:49.337295,1
2020-10-18 20:06:53.330555,2020-10-18 20:07:55.370830,2020-10-18 20:07:55.370830,1
2020-10-18 20:06:53.330555,2020-10-18 20:07:55.370830,2020-10-18 20:07:55.370830,1
2020-10-18 20:07:59.355737,2020-12-22 11:26:16.584892,2020-12-22 11:26:16.584892,0
2020-12-22 11:26:22.581231,2020-12-22 11:27:20.584085,2020-12-22 11:27:20.584085,0
2020-12-22 11:27:24.575634,2020-12-22 11:28:22.582638,2020-12-22 11:28:22.582638,0
2020-12-22 11:28:26.577434,2020-12-22 11:29:26.585793,2020-12-22 11:29:26.585793,0
WalkingPatternRecognition/Readings.csv
View file @
46a61e3b
timestamp,accelerometer_X,accelerometer_Y,accelerometer_Z,gyroscope_X,gyroscope_Y,gyroscope_Z
timestamp,accelerometer_X,accelerometer_Y,accelerometer_Z,gyroscope_X,gyroscope_Y,gyroscope_Z
2020-10-18 20:07:59.355737,1.68,-1.87,0.09,-8.47,0.69,3.48
2020-12-22 11:29:30.576503,1.63,-1.90,-0.36,-7.86,1.09,3.37
2020-10-18 20:08:01.352869,1.68,-1.88,0.11,-8.53,0.90,3.32
2020-12-22 11:29:32.582814,1.63,-1.90,-0.35,-7.98,0.94,3.32
2020-10-18 20:08:03.351206,1.68,-1.88,0.10,-8.37,0.55,3.63
2020-12-22 11:29:34.576200,1.62,-1.90,-0.35,-8.08,1.18,3.46
2020-10-18 20:08:05.352547,1.69,-1.88,0.09,-8.33,1.45,3.33
2020-12-22 11:29:36.582383,1.62,-1.90,-0.36,-7.98,0.84,3.17
2020-10-18 20:08:07.336739,1.69,-1.88,0.10,-8.42,0.73,3.71
2020-12-22 11:29:38.584128,1.63,-1.90,-0.35,-7.95,1.15,3.22
2020-10-18 20:08:09.340167,1.67,-1.88,0.11,-8.37,0.62,3.74
2020-12-22 11:29:40.577163,1.63,-1.90,-0.35,-8.05,1.10,3.37
2020-10-18 20:08:11.357071,1.69,-1.88,0.10,-8.27,0.68,3.33
2020-12-22 11:29:42.581749,1.63,-1.90,-0.35,-8.18,1.04,3.27
2020-10-18 20:08:13.350594,1.69,-1.88,0.10,-8.56,0.79,3.60
2020-12-22 11:29:44.593365,1.63,-1.90,-0.35,-8.04,0.95,3.50
2020-10-18 20:08:15.358929,1.68,-1.88,0.10,-8.53,0.70,3.50
2020-10-18 20:08:17.367748,1.68,-1.87,0.10,-8.60,0.85,3.74
2020-10-18 20:08:19.337342,1.67,-1.88,0.10,-8.33,0.88,3.54
2020-10-18 20:08:21.344643,1.68,-1.88,0.09,-8.34,0.83,3.40
2020-10-18 20:09:11.449250,1.68,-1.88,0.10,-8.50,0.94,3.48
2020-10-18 20:09:13.454017,1.67,-1.88,0.10,-8.18,0.84,3.68
2020-10-18 20:09:15.453761,1.69,-1.88,0.10,-8.41,0.93,3.51
2020-10-18 20:09:17.450503,1.67,-1.88,0.10,-8.54,0.90,3.48
2020-10-18 20:09:19.454729,1.68,-1.88,0.09,-8.35,0.63,3.27
2020-10-18 20:09:21.461325,1.68,-1.88,0.10,-8.39,0.69,3.53
2020-10-18 20:09:23.456596,1.68,-1.88,0.11,-8.31,0.68,3.75
2020-10-18 20:09:25.460183,1.70,-1.88,0.10,-8.40,0.82,3.64
2020-10-18 20:09:27.448652,1.68,-1.88,0.09,-8.44,0.50,3.43
2020-10-18 20:09:29.454602,1.68,-1.87,0.10,-8.38,0.95,3.44
2020-10-18 20:09:31.454233,1.69,-1.88,0.10,-8.27,0.85,3.53
2020-10-18 20:09:33.459294,1.67,-1.88,0.09,-8.50,0.58,3.56
2020-10-18 20:09:35.477124,1.68,-1.88,0.10,-8.47,0.65,3.50
2020-10-18 20:09:37.499123,1.68,-1.88,0.09,-8.31,0.76,3.47
2020-10-18 20:09:39.467841,1.69,-1.89,0.10,-8.48,0.78,3.39
2020-10-18 20:09:41.460769,1.68,-1.87,0.10,-8.40,0.88,3.44
WalkingPatternRecognition/mobileapp/__pycache__/views.cpython-38.pyc
View file @
46a61e3b
No preview for this file type
WalkingPatternRecognition/mobileapp/views.py
View file @
46a61e3b
...
@@ -677,7 +677,7 @@ def readings(request):
...
@@ -677,7 +677,7 @@ def readings(request):
def
getReadings
():
def
getReadings
():
ReadingsArray
=
[]
ReadingsArray
=
[]
responseObtained
=
requests
.
get
(
'http://192.168.
1.9
/getReadings'
)
responseObtained
=
requests
.
get
(
'http://192.168.
8.105
/getReadings'
)
# if(responseObtained):
# if(responseObtained):
# print("Successfully Obtaining readings from ... http://192.168.1.6/getReadings")
# print("Successfully Obtaining readings from ... http://192.168.1.6/getReadings")
...
@@ -1240,13 +1240,6 @@ def compare(request):
...
@@ -1240,13 +1240,6 @@ def compare(request):
# TRAINING READINGS
# TRAINING READINGS
def
trainingReadings
(
request
):
sched
=
BackgroundScheduler
()
# seconds can be replaced with minutes, hours, or days
sched
.
add_job
(
getTrainingReadings
,
'interval'
,
seconds
=
2
)
sched
.
start
()
return
JsonResponse
({
'data'
:
"Training Data obtained"
},
safe
=
False
,
status
=
status
.
HTTP_201_CREATED
)
@
csrf_exempt
@
csrf_exempt
def
getTrainingReadings
():
def
getTrainingReadings
():
...
@@ -1282,6 +1275,14 @@ def getTrainingReadings():
...
@@ -1282,6 +1275,14 @@ def getTrainingReadings():
'accelerometer_Z'
,
'gyroscope_X'
,
'gyroscope_Y'
,
'gyroscope_Z'
])
'accelerometer_Z'
,
'gyroscope_X'
,
'gyroscope_Y'
,
'gyroscope_Z'
])
return
HttpResponse
(
response
)
return
HttpResponse
(
response
)
def
trainingReadings
(
request
):
sched
=
BackgroundScheduler
()
# seconds can be replaced with minutes, hours, or days
sched
.
add_job
(
getTrainingReadings
,
'interval'
,
seconds
=
2
)
sched
.
start
()
return
JsonResponse
({
'data'
:
"Training Data obtained"
},
safe
=
False
,
status
=
status
.
HTTP_201_CREATED
)
class
MainTraining
:
class
MainTraining
:
...
...
fitnessapp/lib/Screens/Login/components/body.dart
View file @
46a61e3b
...
@@ -30,9 +30,14 @@ class _BodyState extends State<Body> {
...
@@ -30,9 +30,14 @@ class _BodyState extends State<Body> {
login
()
async
{
login
()
async
{
if
(
username
==
''
&&
password
==
''
)
{
if
(
username
==
''
&&
password
==
''
)
{
print
(
"OOPS"
);
this
.
enterDetails
=
true
;
this
.
enterDetails
=
true
;
}
else
{
}
else
{
print
(
"HEREEEEEEE"
);
SearchService
.
login
(
username
,
password
).
then
((
responseBody
)
{
SearchService
.
login
(
username
,
password
).
then
((
responseBody
)
{
print
(
username
);
dynamic
data
=
jsonDecode
(
responseBody
);
dynamic
data
=
jsonDecode
(
responseBody
);
setState
(()
{
setState
(()
{
loading
=
true
;
loading
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment