mendelson / polar-data-analysis

This is a personal data analysis I have been developing to get a better way to visualize my training sessions with my Polar fitness products.
http://mmendelson.com
MIT License
4 stars 0 forks source link

Required Packages ERROR; Config.yaml file; Overall Data File Structure Image before running main.py; #1

Open MichaelDHallPolarFlow opened 1 year ago

MichaelDHallPolarFlow commented 1 year ago

ISSUE # 1: When I run $ pip install -r requirements.txt I get two packages with error messages. json glob

ERROR: Could not find a version that satisfies the requirement json (from versions: none) ERROR: No matching distribution found for json

ERROR: Could not find a version that satisfies the requirement glob (from versions: none) ERROR: No matching distribution found for glob

############################################################################ ISSUE #2: I have followed the API instructions and created an open access link to my Polar Flow account. image

A config.yaml file does not exist in your repository. Am I supposed to create one with only the Client ID and Client Secret information generated from application above? Can you provide an example config.yaml file that can be used?

#######################################################################################################

ISSUE #3: What is the data structure supposed to look like. You say you need to create some folders with data being the top level directory. However where in relation to your repository is this supposed to be?

This is my data tree.

image

This is the data tree you say we need to create before executing main.py

image

Thank you if you can help me better understand...

Michael

MichaelDHallPolarFlow commented 1 year ago

When I try to run main.py this is what I get.

image

MichaelDHallPolarFlow commented 1 year ago

Okay I had to fix a typo, in line 14 of the constants.py 'slach' needs to be 'slash'

I had to pip install 'geopy' and 'unidecode' from line 6, and line 7 of utils.py

And now I get to this...

image

MichaelDHallPolarFlow commented 1 year ago

Now, however, when I run the analysis. It fails to load .json files.

image Do I need to first Build database Option 3 before Analysis?

MichaelDHallPolarFlow commented 1 year ago

I created a config.yml file but I am not sure where to put it or if it is even working properly.

image

MichaelDHallPolarFlow commented 1 year ago

I was able to build a database processing three training sessions

image

MichaelDHallPolarFlow commented 1 year ago

I choose option 1 analysis after building the database. And even though it failed to find all *.json files out from the list of 15 provided.... image

I choose option 0 for ALL SPORT. I choose time span from the beginning to analyze.... I chooses option 1 get sessions count instead of option 2 get sessions distances...well because I am not using GPS...

At the end it produces a bar graph with number of sessions per sport training activity.

image