I can't figure out how to do this tbh. The website has great instructions on getting to the desktop folder but nowhere else. *Edit I fixed that by just copying the files directly to my desktop.
When I type pip install -r requirements.txt it gives an error that Pip is not a valid instruction.
Then when I try to run the script python geo_heatmap.py <file> it claims the syntext is not correct.
If python isn't running correctly take a look at https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation
It's a pain but you have to sometimes insert the environment variables to make things run.
And if you are using powershell remember a dot slash may be required to run a script.
Yo man. Having no knowledge of anything, it took me about 45 minutes and I just wanted to say thank you. This is super cool. I've got location data for the past 5 or 6 years on takeout, and it's super neat to see places I've been, how long, etc...
I finally did get it to work, but I had to more my locationhistory.json into the python folder, as well as the github download. I got to the "python geo_heatmap.py <file>" step, and couldn't get past it.... so I don't know why, or what I was doing wrong, but I ended up putting the github download, and the json into c:\python and typed "python geo_heatmap.py locationhistory.json" and BAM.
I've now spent a good 15 minutes moving around the USA seeing all the places I've been. And again. Thank you.
Thanks for this! I'm so close...
I got to enter " .\geo_heatmap.py h o 2019-09-12 2019-09-30 'OpenStreetMap' C:\Users\me\Downloads\Map Italy Trip\takeout.tgz " but it opens up PyCharm and says webbrowser is undefined?
What do I need to change? the Directory or define something?
i have absolutely no experience with python, and barely any with coding in general. i cant seem to figure out how to navigate to the directory containing the repository's contents. i'm using the commandscreen that pops up when you open python, after freshly installing it. anybody that could help me out?
Here's what you need to know to get past that challenge:
When you're in a command terminal/prompt/screen, you're always in some directory on your computer as far as the command terminal is concerned. See this image. Notice how I'm in "C:\Users\danrb"?
If I were to type run
pip install -r requirements.txt in the command prompt I showed in the image earlier, it would look for a file named C:/Users/danrb/requirements.txt. That file doesn't exist on my computer though, so it would return an error.
You need to make your terminal navigate to the directory you cloned from OP's github. How you do that depends on your operating system and possibly some other stuff. Since you're not familiar with command terminals, I think it's safe to assume you're using Windows. The easiest way is to open up the cloned repository, then hold Shift and then right click inside the repo's folder in Windows. The context menu should say something like "Open PowerShell Window Here" or perhaps "Open command window here". Use that. An alternative way is to use the
cd path/to/directory command in the command terminal. This will allow you to navigate to any folder on your Windows PC from within the terminal.
cd stands for "change drive/directory".
Once you're in the cloned repo, do
pip install -r requirements.txt and it should succeed, assuming you have pip and python installed on your PC correctly.
Feb 14, 2012