|
| 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