Skip to content

Commit 66e0501

Browse files
committed
Updated documentation
1 parent 2fac7b5 commit 66e0501

File tree

2 files changed

+128
-6
lines changed

2 files changed

+128
-6
lines changed

README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,31 @@ Tool designed to parse and extract data from the travel tracking app [Polarsteps
55
1. **Data backup**: The data export does not support viewing your data in any useful way. To preserve the data (who knows if Polarsteps still exists in 20 years), the tool combines the data and generates a PDF document.
66
2. **Data analysis & visualization**: The parsed data can also be leveraged for in-depth analysis, enabling users to gain insights into their travel patterns, destinations visited, duration of stays, distances traveled, and more. This opens up possibilities for statistical analysis, trend identification, and visualization of the trip data.
77

8+
## Detailed Usage Guide
9+
10+
If you’re new to Python or command-line tools, I’ve created a step-by-step usage guide to help you install and run polarsteps-data-parser (no programming experience required).
11+
12+
👉 Read the guide here: [Usage guide](https://github.com/niekvleeuwen/polarsteps-data-parser/blob/main/USAGE_GUIDE.md)
13+
814
## Getting started
915

10-
### Installation
11-
To set up the project, ensure you have Python 3.11+ installed.
1216

13-
Install from PyPI using pip:
17+
1. Clone the repository and navigate to the project root:
18+
19+
```shell
20+
git clone https://github.com/niekvleeuwen/polarsteps-data-parser.git
21+
cd polarsteps-data-parser
22+
```
23+
24+
2. Install dependencies using [uv](https://docs.astral.sh/uv/).
25+
Make sure `uv` is installed on your system before proceeding.
26+
1427
```shell
15-
pip install polarsteps-data-parser
28+
uv sync
1629
```
1730

1831
### Usage
19-
To get the following output, run `polarsteps-data-parser --help`.
32+
To get the following output, run `uv run polarsteps-data-parser --help`.
2033

2134
```shell
2235
Usage: polarsteps-data-parser [OPTIONS] INPUT_FOLDER
@@ -35,7 +48,7 @@ Options:
3548
For example, to load and analyse a trip with the data located in the `./data/trip1` folder and enrich the trip with comments, use the following command:
3649

3750
```shell
38-
polarsteps-data-parser ./data/trip1 --enrich-with-comments
51+
uv run polarsteps-data-parser ./data/trip1 --enrich-with-comments
3952
```
4053

4154
## Disclaimer

USAGE_GUIDE.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Usage guide
2+
Detailed step-by-step guide for non-programmers to install and use the polarsteps-data-parser program.
3+
4+
## Step 1: Install Python
5+
6+
The program requires Python. If you don’t have it installed:
7+
8+
1. Go to the official Python website: https://www.python.org/downloads/
9+
1. Click Download Python (choose the latest version with a minium version of Python 3.11).
10+
1. **IMPORTANT:** When installing, make sure to check the box that says
11+
`Add Python to PATH` before clicking **Install Now**.
12+
13+
Once installed, you’re ready to install the polarsteps data parser.
14+
15+
## **Step 2: Open the Command Prompt (Terminal)**
16+
17+
* On **Windows**
18+
Press `Windows Key + R`, type `cmd`, and press **Enter**.
19+
20+
* On **Mac**
21+
Press `Command + Space`, type `Terminal`, and press **Enter**.
22+
23+
* On **Linux**
24+
Open the Terminal from your applications menu.
25+
26+
## **Step 3: Install the Program**
27+
28+
In the command prompt or terminal window, type this and press **Enter**:
29+
30+
```
31+
pip install polarsteps-data-parser
32+
```
33+
34+
You only have to do this once, it installs the tool onto your computer.
35+
36+
## **Step 4: Export Your Trip Data from Polarsteps**
37+
38+
You need the data from your Polarsteps trip.
39+
40+
1. Go to [Polarsteps.com](https://www.polarsteps.com/) and log in.
41+
1. Click on your profile and go to the 'Account settings'.
42+
1. Download the ZIP file via 'Download my data' in the Privacy section.
43+
1. Go the the downloads folder on your computer and **extract** (right-click the ZIP file and choose **Extract All**).
44+
1. Inside the newly created folder, there will be two folders: `trip` and `user`.
45+
1. Navigate inside the `trip` folder and locate the trip you want to convert to a PDF (for example `guatemala_12345678`).
46+
47+
👉 Let’s say you extracted the folder to `Documents`. You will need to pass the following path to the program:
48+
49+
`C:\Users\YourName\Documents\PolarstepsTriptrip\guatemala_12345678` (Windows)
50+
51+
or
52+
53+
`/Users/YourName/Documents/PolarstepsTrip/trip/guatemala_12345678/` (Mac)
54+
55+
56+
## **Step 5: Run the Program**
57+
58+
Back in your command prompt / terminal, navigate to where your trip folder is located.
59+
60+
### On **Windows**
61+
62+
```
63+
cd "C:\Users\YourName\Documents"
64+
```
65+
66+
### On **Mac/Linux**
67+
68+
```
69+
cd /Users/YourName/Documents
70+
```
71+
72+
Now run this command to generate the PDF:
73+
74+
```
75+
polarsteps-data-parser "C:\Users\YourName\Documents\PolarstepsTriptrip\guatemala_12345678"
76+
```
77+
78+
✅ This will create a PDF called **Trip report.pdf** inside the `Documents` folder (where you ran the command).
79+
80+
---
81+
82+
### **Optional: Customize the Output PDF Name**
83+
84+
If you want the PDF to have a custom name (for example, "Guatemala Trip.pdf"), run:
85+
86+
```
87+
polarsteps-data-parser "<path>" --output "Guatemala Trip.pdf"
88+
```
89+
90+
## **Step 6: Open and Enjoy Your Trip Report**
91+
92+
The program will create a **PDF** file, just open it like any regular document. You can view it, print it, or share it!
93+
94+
---
95+
96+
## **Troubleshooting**
97+
98+
* **Command not found?**
99+
Close the command prompt/terminal and open it again. Make sure Python is properly installed.
100+
101+
* **Missing files?**
102+
Ensure the folder has both `trip.json` and `locations.json`. The program needs both.
103+
104+
* **Program updates?**
105+
If you want to update the program later, simply run:
106+
107+
```
108+
pip install --upgrade polarsteps-data-parser
109+
```

0 commit comments

Comments
 (0)