Fit Browser
Fit Browser loads your fitness activities and renders them in your browser, with Google Maps integration so that you can see your running or cycling tracks on a map.
Background
I got robbed! Once upon a time, I paid for a license of Sport Tracks, a software that imported all of my activities into a local database, and allowed me to browse them, and to see them on a map. Eventually, the publisher introduced a new version where all your activities were uploaded to their cloud. I did not like that but kept using the legacy software version. I had paid for a perpetual license, after all. But then the publisher published a mandatory "security update", which did nothing for security but first showed a big, red banner at the top saying, "this software is discontinued." Then, the software refused to import new activity files, rendering it useless. I'm not giving them any more of my money! Instead, I rolled my own. For me, the standout feature was the display of my running and cycling routes on a map, so I focused on that.
Usage
- Start Fit Browser.
- Load activities using
Openfrom the File menu, or just drag and drop the activity file into the application. - Start the built-in Web server using
Startfrom theServermenu. - Click on
Open URL in Browserfrom theServermenu. This opens a new browser window showing your activities.
See below for more details.
Installation
Fit Browser runs on Linux, Windows, and MacOS.
-
On Windows, you can download and run the
fitbrowser.exeexecutable from the latest release. -
On any platform (including on Windows, if you do not want to or are not allowed to run foreign-built executables), first install Python. Make sure to include both
pipandTcl/Tk. Then you can either:- Download the fitbrowser Wheel
and run
pip install <whl file>in a console, or - Use
pip install fitbrowserin a console to install Fit Browser from the Python Package Index.
- Download the fitbrowser Wheel
and run
-
Afterwards, you can run
fitbrowserorpython -m fitbrowserin a console.
Set Up
Fit Browser depends on two online services that are free to use, Google Maps and Geonames.
Google Maps
For Google Maps integration, you need a Maps Demo Key from Google. This requires a private Google account. Billing information is not necessary.
In the Fit Browser user interface, go to Google Maps ... in the
Options menu and enter your Maps Demo Key.
Geonames
Geonames is used to look up place names
corresponding to latitude and longitude values. You need to create a
free account by clicking on Account and Create an account in the
top right corner.
After creating and confirming your account, go to Geonames ... in
the Options menu and enter your User Name (not your email
address).
Details
Fit Browser can read activities in the following formats:
- Garmin FIT files (
*.fit). When I connect my Garmin Forerunner 235 device to a PC, these files show up in the device'sACTIVITYfolder. - Garmin Training Center files (
*.tcx). - Sport Tracks Logbook files (
*.logbook3). - ZIP files containing any combination of the above.
After loading an activity file, the GUI shows the word Loaded in green.
Now you can configure options or choose a filter, if you like. When you are
ready, you can click Start in the Server menu to start the built-in Web
server. The status will now show Running in green, and the status bar
will show the URL that you can now open in your Web browser. For
convenience, you can also use Copy URL to Clipboard or Open URL in
Browser from the Server menu.
The Menu
FileOpen ...Opens an activity. You can also choose multiple files at once to merge them.CloseDoes the obvious. You can also useCtrl-w.ExitDoes the obvious. You can also useCtrl-x.
FilterBy date ...Filters the activities by start and end dates. This can be done after loading activities, but before starting the Web server.ResetResets the date filter.
ServerStartStarts the built-in Web server.StopStops the built-in Web server.Copy URL to ClipboardCopy the URL to the clipboard. You can then paste the URL into your favorite browser's address bar.Open URL in BrowserStarts your default browser, or opens a new tab in your default browser, and opens your chat history.
Options
The Options menu has the following options. Note that the Options
menu is disabled when the built-in Web server is running.
AutostartAutomatically start the built-in Web server immediately after loading a chat archive.HTMLOptions related to the HTML rendering.Style SheetBuilt-InUse the built-in style sheet for formatting.Load ...Use a separate CSS file for formatting messages.Save Template As ...Save the built-in style sheet to a file for editing.
HTTPConfigureConfigure the host name and port number to use for the built-in Web server.Host NameThe host name to bind to. Usinglocalhostas the host name is highly recommended. Using your actual host name might make the built-in Web server visible from your local network -- use at your own risk, if you know what you are doing. See the documenation for http.server.Port NumberThe port number to bind to. When0, the built-in Web server automatically chooses an available port number at random, meaning that the URL for the built-in Web server will be different every time. When set to any other valid port number (between 1024 and 65535), the built-in Web server binds to the same address every time.
Google MapsConfigures the Google Maps API key.GeonamesConfigures the Geonames user name and database. For valid database names, see thecitiesparameter here.
Formatting
Formatting is controlled by a CSS Stylesheet. Fit Browser by default
uses a built-in stylesheet. If you want to modify formatting, you can
save the built-in stylesheet using Save Template As ... from the
Options menu, edit it, and then use Load ... to use your modified
style sheet instead.
Configuration
Configuration options are stored in the JSON-formatted configuration
file ~/.fitBrowser. On Windows, this file is typically located in
c:\Users\<your user name>.
Fit Browser might misbehave if this file is broken, or if it references files (like the style sheet) that do not exist. So if anything goes wrong, try deleting this file. It will then be re-created from built-in default values.
Command Line
When installed from the Wheel or using pip, you also get the
fitbrowser command-line tool.
fitbrowser can be used to run the web server from the command line.
It also reads the ~/.fitBrowser configuration file and therefore
applies the same options configured in the GUI.
Issues
If the map does not show, then the Google Maps API key is incorrect.
See Set-Up above.
If locations are shown as numerical latitude and longitude values,
then the Geonames user name is incorrect. See Set Up above.
Local Processing
Fit Browser processes your activity files locally, in memory, on the fly.
Of course, the integration with Google Maps requires that your activity locations and are processed using Google's cloud services. While Google will not know your tracks, it will know what parts of the world you are looking at.
Likewise, Geonames will know the locations that Fit Browser is looking up -- i.e., the start locations of your activities.
Metadata
Release files for fitbrowser 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fitbrowser-0.0.1.tar.gz | 71.7 kB | Without provenance | Details for fitbrowser-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fitbrowser-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for fitbrowser-0.0.1-py3-none-any.whl |
Total release size: 146.0 kB
Release files / fitbrowser-0.0.1.tar.gz
| Download URL | fitbrowser-0.0.1.tar.gz |
|---|---|
| Size | 71.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
84adde707b4647a7481b201c5622a6f7cf224cac166a70a190998611b79a4349
|
|
BLAKE2b-256 checksum How to use checksums |
291f8c4424d109bacc8222cfda4b1b92beee4f664094cf26c8776c1dee9b7fd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / fitbrowser-0.0.1-py3-none-any.whl
| Download URL | fitbrowser-0.0.1-py3-none-any.whl |
|---|---|
| Size | 74.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca168c9d28ef734afdaab0c07e31d8a8057143dedcfab32f0642e7facc94494b
|
|
BLAKE2b-256 checksum How to use checksums |
ed50091056f1382e03763766bf9b16d70a0d37f80fc29719a04b6dffab556c42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Security for fitbrowser 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.