Closed powerriegel closed 4 years ago
It looks like the data for the swim activity of Jan 4th, 2020 (HiTrack_20200104_155538) didn't get parsed in a correct manner and when trying to convert, there is no data. You could help me by (temporarily) sharing the json export of that activity so I can check what's going on.
[Link removed] Please delete the file as soon as you downloaded it. P.S. the same behavior for 2019. Is it possible, that any "swim" activity leads to problems?
Yes, I'll check what's going wrong. If you're in a hurry, you can try to use the Hitrava Web App and deselect the swimming activities for now.
Describe the bug I gat very less tcy files from by collected Huawei data. There are hundreds of json files but only a few tcx files. I filtered out 2020 and tthere are many tracks missing for sure.
Logs
2020-09-19 12:27:34,500 - DEBUG - generate_xml - Generating TCX XML data for activity HiTrack_20200104_155538 2020-09-19 12:27:34,500 - INFO - _calc_pool_swim_data - Calculating swim data for activity HiTrack_20200104_155538 2020-09-19 12:27:34,500 - ERROR - generate_xml - Error generating TCX XML content for activity <HiTrack_20200104_155538> 'NoneType' object is not iterable Traceback (most recent call last): File "Hitrava.py", line 1466, in generate_xml self._generate_swim_xml_data(el_activity) File "Hitrava.py", line 1594, in _generate_swim_xml_data for n, lap in enumerate(self.hi_activity.get_swim_data()): File "Hitrava.py", line 786, in get_swim_data return self._calc_pool_swim_data() File "Hitrava.py", line 823, in _calc_pool_swim_data for n, segment in enumerate(self._segment_list): TypeError: 'NoneType' object is not iterable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "Hitrava.py", line 2009, in <module> main() File "Hitrava.py", line 2004, in main tcx_activity.save() File "Hitrava.py", line 1662, in save self.generate_xml() File "Hitrava.py", line 1517, in generate_xml raise Exception('Error generating TCX XML content for activity <%s>\n%s', self.hi_activity.activity_id, e) Exception: ('Error generating TCX XML content for activity <%s>\n%s', 'HiTrack_20200104_155538', TypeError("'NoneType' object is not iterable")) 2020-09-19 12:27:34,539 - DEBUG - _close_json - JSON file <2020/Motion path detail data & description/motion path detail data.json> closed
Files If applicable, add relevant input and output files (by dragging them here). For JSON conversions, you can use the --json_export command line argument. This will generate a separate .json file with the original Huawei HiTrack data for each activity that you can add here.
Note: be aware that your fitness activity files (may) contain personal data. We will notify that you can remove the attached files from your report as soon as we have downloaded them. We will ONLY use the files for debugging purposes.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Im mostly interested in my bicycle tracks. Bought a race bike this year and from february to may, I used my Huawei Band 2 to track my rides. But I get only twoi tcx files. There should be dozens of files.