-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iot2050-event-record: Make sensors' threshold configurable
Currently it is impossible to get the precise threshold values for tilting and uncovering threshold, make sensors' threshold values configurable. Signed-off-by: Li Hua Qian <[email protected]>
- Loading branch information
1 parent
83cd499
commit b5963ab
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
recipes-app/iot2050-event-record/files/iot2050-event-record.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# In IoT2050-SM, there are sensors for tilted and uncovered detection. If you | ||
# want to enable logging of sensor events, i.e. tilted and uncovered events. | ||
# Please copy this file to /etc/systemd/system/iot2050-event-record.service.d/. | ||
# | ||
# RECORD_SENSOR_EVENTS: to start sensor event recording. | ||
# ACCEL_CRITICAL_VALUE: to define the tilting threshold. | ||
# LUX_CRITICAL_VALUE: to define the uncovering threshold. | ||
|
||
[Service] | ||
Environment="RECORD_SENSOR_EVENTS=True" | ||
Environment="ACCEL_CRITICAL_VALUE=1000" | ||
Environment="LUX_CRITICAL_VALUE=100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters