-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running make on linux complains about pip #14
Comments
pip is installed for your user. sudo is using user 'root''s environment and I bet pip is not in root's path. I assume sudo pip --version also fails. Sicne you have python installed for your user only, you don't want sudo pip, just pip. I can look later at making it configurable to install python packages for all users for the user. In the meantime you can remove 'sudo' form in front of pip. |
Oh, good catch. Yes, that's correct. I'm running inside a |
It appears that the
(py27) Tue Sep 11 08:12:47 warthog:~/data/explorations/GarminDB
$ ls ~/HealthData/
DBs FitFiles |
|
Thanks for the update! This gets me past the initial hurdle and it started to download a bunch of sleep data. However, when trying to import it (I think), I think
After doing a git pull and stashing my local changes, I just tried running |
If you look at 2018-07-10 on the Garmin site, do you have sleep data? Should there be 0 entries for that date?
|
Nope -- no sleep data for that day (which is correct). |
Is it working without issues now? |
Getting a little farther. I just did a pull and re-ran make. I think now it didn't make the directory
I certainly appreciate the support, but don't feel any time pressure to work on this for me. I'm just interested in playing with the data when I have it. |
commit e0f7314 (HEAD -> master, origin/master, origin/HEAD)
NP. Your debugging it for me on a platform I'm not using, so your helping me. |
It appears to finish Although I'm not sure what things are in which database. If I open |
Is there data in the JSON files in HealthData/RHR/ ? |
Nope -- that directory is empty. And now that I look back at the output
from `make`, I can see that it has 0 or None for a lot of things that
should have data.
```
INFO:analyze_garmin.py:File records: 0
INFO:analyze_garmin.py:tcx files: 0
INFO:analyze_garmin.py:activity files: 0
INFO:analyze_garmin.py:monitoring_b files: 0
INFO:analyze_garmin.py:Weight records: 0
INFO:analyze_garmin.py:Max Weight: None
INFO:analyze_garmin.py:Min Weight: None
INFO:analyze_garmin.py:Avg Weight: None
INFO:analyze_garmin.py:Latest Weight: None
INFO:analyze_garmin.py:Stress records: 0
INFO:analyze_garmin.py:Max Stress: None
INFO:analyze_garmin.py:Min Stress: None
INFO:analyze_garmin.py:Avg Stress: None
INFO:analyze_garmin.py:Latest Stress: None
INFO:analyze_garmin.py:RHR records: 0
INFO:analyze_garmin.py:Max RHR: None
INFO:analyze_garmin.py:Min RHR: None
INFO:analyze_garmin.py:Avg RHR: None
INFO:analyze_garmin.py:Latest RHR: None
INFO:analyze_garmin.py:Sleep records: 342
INFO:analyze_garmin.py:Max Sleep: 13:24:00
INFO:analyze_garmin.py:Min Sleep: 00:08:00
INFO:analyze_garmin.py:Avg Sleep: 9.0
INFO:analyze_garmin.py:Latest Sleep: 09:46:00
INFO:analyze_garmin.py:Activity summary records: 0
INFO:analyze_garmin.py:Activities lap records: 0
INFO:analyze_garmin.py:Activity records: 0
INFO:analyze_garmin.py:Activities years: 0 []
INFO:analyze_garmin.py:Running activities: 0
INFO:analyze_garmin.py:Walking activities: 0
INFO:analyze_garmin.py:Cycling activities: 0
INFO:analyze_garmin.py:Mountain_Biking activities: 0
INFO:analyze_garmin.py:Hiking activities: 0
INFO:analyze_garmin.py:Elliptical activities: 0
INFO:analyze_garmin.py:Treadmill_Running activities: 0
INFO:analyze_garmin.py:Paddling activities: 0
INFO:analyze_garmin.py:Resort_Skiing_Snowboarding activities: 0
INFO:analyze_garmin.py:Monitoring records: 0
INFO:analyze_garmin.py:Monitoring Years (0): []
```
…On Sun, Sep 16, 2018 at 3:33 PM Tom Goetz ***@***.***> wrote:
Is there data in the JSON files in HealthData/RHR/ ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFJOS70unA97ELmwmVvfOkbx_42JRAw9ks5ubtHJgaJpZM4WjfG6>
.
|
What types of data do you have on Connect? Do the dates you have data for fall in the values you used for GC_DATE and GC_DAYS? You can try just downloading particular types of data to see if you get what you expect:
You can also try running
and it should download data for the previous year. |
I tried your last command to get all the data for the previous year. STill gives None for some things that have recorded in Connect. Ohhhhhh. I tried to login to the website -- "Your account has been locked. Please reset your password." I did reset the password now, but I'm wary of running |
Actually, no, I've never had my account get locked, even in the early development when I was working out the login. |
Thinking about this more, I have a guess. The sleep, RHR, and a few other types of data can get a whole year+ of data from one graph. That's one page access. Monitoring data is retrieved one page access per day. Accessing 365 monitoring pages in a row probably set off a threshold alarm. I've chnaged the default to get one month of data. Hopefully that's small enough. To get your data set you can get it one month at a time with sequential fetches spaced out over time using GC_DATE and GC_DAYS to cover the period you need. I'll look at adding some pauses into the web browsing. |
… chunks, and activity files to avoid flooding
Have you tried this again? Does this work for you? |
Sorry, not yet. Will get back to this next week.
… On Sep 25, 2018, at 7:33 AM, Tom Goetz ***@***.***> wrote:
Have you tried this again? Does this work for you?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#14 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AFJOSxcOeKMUtPFnEVlwfBtNGA1R6eu5ks5uej7VgaJpZM4WjfG6>.
|
Hm, just did a
|
There is no "make pull". Did you mean "git pull" or "make update"? Either way it looks like your Fit submodule didn't get updated. |
Oops, Now seeing:
|
Yep. See the first bullet in the "Notes" section of the front page. |
Awesome! I opened |
Sleep data comes from json files downloaded into ~/HealthData/Sleep/. The other columns come from daily monitoring fit files downloaded into ~/HealthData/FitFiles/_Monitoring. Do you have that directory and are there files in it? On the Garmin Connect website what date ranges do you have "Daily Summary" pages for? Are those same date ranges represented in ~/HealthData/FitFiles/_Monitoring? If not then you need to download them via "make GC_DATE=[date to start downloading] GC_DAYS=[number of days to download] download_monitoring" |
Ah. I do have |
Actually, there is an easier way to tell how much and what kind of data you have. When you run "make" and you DB is updated, the last thing that does it to run "make garmin_summary" which displays stats about whats in the DB. Here's the summary Re monitoring data I get:
|
Why don't you start with downloading the last months data? What happens when you run: |
Weird. Getting a login error even though I just confirmed via connect.garmin.com it works. I'll look into it further tonight or tomorrow. One thought: I don't see anything after
|
It's GC_PASSWORD. The case matters. |
I'm trying to install and run the package on linux in a Python 2.7
conda
environment, and I'm getting stuck atmake setup
. I see an error forpip
(copied below), but I'm not sure what's going on becausepip
is definitely installed in this environment. I also manually installedsqlalchemy
withconda
to see if this would skip that part ofmake
(it doesn't). Can you suggest any debugging tips?The text was updated successfully, but these errors were encountered: