diff --git a/scripts/artifacts/AdidasActivities.py b/scripts/artifacts/AdidasActivities.py index 4175af7e..d9320e35 100644 --- a/scripts/artifacts/AdidasActivities.py +++ b/scripts/artifacts/AdidasActivities.py @@ -15,7 +15,7 @@ def get_adidas_activities(files_found, report_folder, seeker, wrap_text): logfunc("Processing data for Adidas Activities") - files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')] + files_found = [x for x in files_found if not x.endswith('-journal')] file_found = str(files_found[0]) db = open_sqlite_db_readonly(file_found) @@ -67,7 +67,13 @@ def get_adidas_activities(files_found, report_folder, seeker, wrap_text): humidity = 'N/A' poly = row[15] if poly: - coordinates = polyline.decode(poly) + # logfunc(f"Polyline: {poly}") + try: + coordinates = polyline.decode(poly) + except: + logfunc(f"Polyline: {poly} could not be decoded") + poly = None + break place_lat = [] place_lon = [] for coordinate in coordinates: diff --git a/scripts/artifacts/AdidasUser.py b/scripts/artifacts/AdidasUser.py index 4219e050..b645721b 100644 --- a/scripts/artifacts/AdidasUser.py +++ b/scripts/artifacts/AdidasUser.py @@ -10,7 +10,8 @@ def get_adidas_user(files_found, report_folder, seeker, wrap_text): - logfunc("Processing data for Garmin Sync") + logfunc("Processing data for Adidas User") + files_found = [x for x in files_found if not x.endswith('-journal')] file_found = str(files_found[0]) db = open_sqlite_db_readonly(file_found) diff --git a/scripts/artifacts/MMWUsers.py b/scripts/artifacts/MMWUsers.py index e529e017..af3575ae 100644 --- a/scripts/artifacts/MMWUsers.py +++ b/scripts/artifacts/MMWUsers.py @@ -10,7 +10,7 @@ def get_map_users(files_found, report_folder, seeker, wrap_text): logfunc("Processing data for Map My Walk Users") - files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')] + files_found = [x for x in files_found if not x.endswith('-journal') and not x.endswith('_gear') and not x.endswith('_gear-journal')] file_found = str(files_found[0]) db = open_sqlite_db_readonly(file_found) diff --git a/scripts/artifacts/NikeAMoments.py b/scripts/artifacts/NikeAMoments.py index e7ac9d9a..2665e573 100644 --- a/scripts/artifacts/NikeAMoments.py +++ b/scripts/artifacts/NikeAMoments.py @@ -26,8 +26,8 @@ def get_nike_activMoments(files_found, report_folder, seeker, wrap_text): usageentries = len(all_rows) if usageentries > 0: logfunc(f"Found {usageentries} Nike Activities") - report = ArtifactHtmlReport('Activity Moments') - report.start_artifact_report(report_folder, 'Activity Moments') + report = ArtifactHtmlReport('Nike - Activity Moments') + report.start_artifact_report(report_folder, 'Nike - Activity Moments') report.add_script() data_headers = ('Activity ID', 'Start Time UTC', 'End Time UTC', 'Duration', 'Timeline') data_list = [] diff --git a/scripts/artifacts/NikeActivities.py b/scripts/artifacts/NikeActivities.py index f4554f1a..7ad6d9e0 100644 --- a/scripts/artifacts/NikeActivities.py +++ b/scripts/artifacts/NikeActivities.py @@ -26,8 +26,8 @@ def get_nike_activities(files_found, report_folder, seeker, wrap_text): usageentries = len(all_rows) if usageentries > 0: logfunc(f"Found {usageentries} Nike Activities") - report = ArtifactHtmlReport('Activities') - report.start_artifact_report(report_folder, 'Activities') + report = ArtifactHtmlReport('Nike - Activities') + report.start_artifact_report(report_folder, 'Nike - Activities') report.add_script() data_headers = ('Activity ID', 'Name', 'Start Time UTC', 'End Time UTC', 'Location', 'Source', 'Version', 'Temperature', 'Weather', 'Duration', 'Calories', 'Max Speed', 'Mean Speed', 'Steps', 'Distance', 'Pace', 'Cadence') data_list = [] diff --git a/scripts/artifacts/NikeNotifications.py b/scripts/artifacts/NikeNotifications.py index 14efcc03..89b59fc0 100644 --- a/scripts/artifacts/NikeNotifications.py +++ b/scripts/artifacts/NikeNotifications.py @@ -9,7 +9,8 @@ def get_nike_notifications(files_found, report_folder, seeker, wrap_text): - logfunc("Processing data for Garmin Notifications") + logfunc("Processing data for Nike Notifications") + files_found = [x for x in files_found if not x.endswith('-journal')] file_found = str(files_found[0]) db = open_sqlite_db_readonly(file_found) diff --git a/scripts/artifacts/NikePolyline.py b/scripts/artifacts/NikePolyline.py index c2a6651c..031c0af0 100644 --- a/scripts/artifacts/NikePolyline.py +++ b/scripts/artifacts/NikePolyline.py @@ -41,8 +41,8 @@ def get_nike_polyline(files_found, report_folder, seeker, wrap_text): usageentries = len(all_rows) if usageentries > 0: logfunc(f'Found {usageentries} activity_polyline entries') - report = ArtifactHtmlReport('Activity Route') - report.start_artifact_report(report_folder, 'Activity Route') + report = ArtifactHtmlReport('Nike - Activity Route') + report.start_artifact_report(report_folder, 'Nike - Activity Route') report.add_script() data_headers = ('Activity ID', 'Start Time UTC', 'End Time UTC', 'Duration', 'Coordinates File', 'Button') data_list = [] diff --git a/scripts/artifacts/RunkeeperActivities.py b/scripts/artifacts/RunkeeperActivities.py index 7cd5ce03..f18fd421 100644 --- a/scripts/artifacts/RunkeeperActivities.py +++ b/scripts/artifacts/RunkeeperActivities.py @@ -14,7 +14,7 @@ def get_run_activities(files_found, report_folder, seeker, wrap_text): logfunc("Processing data for Runkeeper Activities") - files_found = [x for x in files_found if not x.endswith('wal') and not x.endswith('shm')] + files_found = [x for x in files_found if not x.endswith('-journal')] file_found = str(files_found[0]) db = open_sqlite_db_readonly(file_found)