Skip to content

Commit

Permalink
🚧 Look for the battery level parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
msimms committed Jan 30, 2024
1 parent 21643a3 commit d5e7084
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Api.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def handle_update_status(self, values):
activity_id = ""
activity_type = ""
username = ""
battery_level = None
locations = []
sensor_readings_dict = {}
metadata_list_dict = {}
Expand All @@ -173,6 +174,8 @@ def handle_update_status(self, values):
activity_type = values[Keys.APP_TYPE_KEY]
if Keys.APP_USERNAME_KEY in values:
username = values[Keys.APP_USERNAME_KEY]
if Keys.APP_BATTERY_LEVEL_KEY in values:
battery_level = values[Keys.APP_BATTERY_LEVEL_KEY]

if Keys.APP_LOCATIONS_KEY in values:

Expand Down
1 change: 1 addition & 0 deletions Keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@
APP_AXIS_NAME_X = "x"
APP_AXIS_NAME_Y = "y"
APP_AXIS_NAME_Z = "z"
APP_BATTERY_LEVEL_KEY = "Battery Level"

LOCATION_LAT_KEY = "latitude"
LOCATION_LON_KEY = "longitude"
Expand Down

0 comments on commit d5e7084

Please sign in to comment.