Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DANA JASMINE NAVAL
CARE1_API
Commits
ba13bc15
Unverified
Commit
ba13bc15
authored
1 year ago
by
Mariel Tatel
Committed by
GitHub
1 year ago
Browse files
Options
Download
Email Patches
Plain Diff
Edited the range for random values
parent
a21cf53f
main
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
OpenMTC/care_app/demo_app/apps/onem2m/aqm/care-ipe-http-final.py
+2
-2
.../care_app/demo_app/apps/onem2m/aqm/care-ipe-http-final.py
OpenMTC/care_app/demo_app/apps/onem2m/aqm/care-ipe-mqtt-final.py
+2
-2
.../care_app/demo_app/apps/onem2m/aqm/care-ipe-mqtt-final.py
OpenMTC/care_app/demo_app/apps/onem2m/smart_farm/spice-ipe-http-final.py
+6
-6
...p/demo_app/apps/onem2m/smart_farm/spice-ipe-http-final.py
OpenMTC/care_app/demo_app/apps/onem2m/smart_farm/spice-ipe-mqtt-final.py
+6
-6
...p/demo_app/apps/onem2m/smart_farm/spice-ipe-mqtt-final.py
with
16 additions
and
16 deletions
+16
-16
OpenMTC/care_app/demo_app/apps/onem2m/aqm/care-ipe-http-final.py
View file @
ba13bc15
...
...
@@ -154,8 +154,8 @@ class IPE(XAE):
self
.
get_sensor_data
()
if
self
.
pm25_in
>=
10
0
:
if
self
.
pm25_out
>=
10
0
:
if
self
.
pm25_in
>=
8
0
:
if
self
.
pm25_out
>=
8
0
:
if
self
.
window_actuation
==
self
.
window_OPEN
:
print
(
"
\n
PLEASE ACTUATE: Close the window
\n
"
)
time
.
sleep
(
5
)
...
...
This diff is collapsed.
Click to expand it.
OpenMTC/care_app/demo_app/apps/onem2m/aqm/care-ipe-mqtt-final.py
View file @
ba13bc15
...
...
@@ -147,8 +147,8 @@ class IPE(XAE):
self
.
get_sensor_data
()
if
self
.
pm25_in
>=
10
0
:
if
self
.
pm25_out
>=
10
0
:
if
self
.
pm25_in
>=
8
0
:
if
self
.
pm25_out
>=
8
0
:
if
self
.
window_actuation
==
self
.
window_OPEN
:
print
(
"
\n
PLEASE ACTUATE: Close the window
\n
"
)
time
.
sleep
(
5
)
...
...
This diff is collapsed.
Click to expand it.
OpenMTC/care_app/demo_app/apps/onem2m/smart_farm/spice-ipe-http-final.py
View file @
ba13bc15
...
...
@@ -37,13 +37,13 @@ class IPE(XAE):
# offset = minimum value
# range = max - min
# Humidity: 40% to
9
0%
humi_range
=
5
0
# Humidity: 40% to
7
0%
humi_range
=
3
0
humi_offset
=
40
# Temperature:
3
0degC to
5
0degC
temp_range
=
2
0
temp_offset
=
3
0
# Temperature:
2
0degC to
3
0degC
temp_range
=
1
0
temp_offset
=
2
0
# pH value: 5.5 to 7.5
pH_range
=
20
...
...
@@ -378,7 +378,7 @@ class IPE(XAE):
data
=
{
'value'
:
value
,
'type'
:
'electric conductivity'
,
'unit'
:
'
u
S/cm'
,
'unit'
:
'
m
S/cm'
,
'time'
:
time
}
...
...
This diff is collapsed.
Click to expand it.
OpenMTC/care_app/demo_app/apps/onem2m/smart_farm/spice-ipe-mqtt-final.py
View file @
ba13bc15
...
...
@@ -39,13 +39,13 @@ class IPE(XAE):
# offset = minimum value
# range = max - min
# Humidity: 40% to
9
0%
humi_range
=
5
0
# Humidity: 40% to
7
0%
humi_range
=
3
0
humi_offset
=
40
# Temperature:
3
0degC to
5
0degC
temp_range
=
2
0
temp_offset
=
3
0
# Temperature:
2
0degC to
3
0degC
temp_range
=
1
0
temp_offset
=
2
0
# pH value: 5.5 to 7.5
pH_range
=
20
...
...
@@ -334,7 +334,7 @@ class IPE(XAE):
data
=
{
'value'
:
value
,
'type'
:
'electric conductivity'
,
'unit'
:
'
u
S/cm'
,
'unit'
:
'
m
S/cm'
,
'time'
:
time
}
elif
sensor
.
startswith
(
'MotorSensor'
):
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help