jimmyH / mypois

Build POIs for Skoda MIB2 (Columbus & Amundsen) SatNavs
GNU General Public License v2.0
20 stars 5 forks source link

Simple scripts for POIs on the Skoda MIB2 (Columbus2 and Amundsen) SatNavs

Overview

For MIB1 (from what I can gather from googling):

Notes

Icons are converted to 39x39 png images (using the PIL library).

The following issues may be encountered:

Installation

On Windows you can find a prebuilt executable in the releases page.

Alternatively, you need a version of python 2.7 or later, and require the following python modules to be installed:

It also requires a version of sqlite with rtree support (only for Columbus).

If you install python from python.org on Windows, the included version of sqlite does NOT include rtree support. You will need to replace the installed sqlite3.dll file with one from sqlite.org

Fixing the checksums using poifix

# For Amundsen
python /path/to/poifix.py /path/to/MIB2TSD

# For Columbus
python /path/to/poifix.py /path/to/MIB2HIGH

Note: If you wish to use poifix, you must have installed python and the configparser dependency.

Building a new POI database

You need a configuration file to tell the script which POI categories to add and which icons to use

An (annotated) example configuration file:

[General]
OutputDirectory=mydir                 # The name of the output directory (must not exist)
SkipMIB2HIGH=False                    # Set to True to skip building the MIB2HIGH database
SkipMIB2TSD=False                     # Set to True to skip building the MIB2TSD database

[traffic]                             # One section per category
Name=GB Traffic Light Cameras         # The category name
Warning=True                          # Use 'True' to get a sound notification when near
Source=../GBFeuRougeGB.csv            # The input file containing the POIs **Currently only csv and gpx files are supported**
                                      # NB Use / for Unix paths, and \ for Windows Paths
Icon=../traffic.png                   # The icon to use                    **Will be resized and converted to 39x39 png**
Disabled=False                        # Optional element, set to True if you want this section to be skipped

[variable]                            # Another section
Name=GB Variable Speed Cameras
Warning=True
Source=../variable_speed.csv
Icon=../variable.png

Another example:

[General]
OutputDirectory=pois

[avg]
Name=UK Average Speedcams
Warning=True
Source=UK Average Speedcams.csv
Icon=UK Average Speedcam.bmp

[fixed]
Name=UK Fixed Speedcams
Warning=True
Source=UK Fixed Speedcams.csv
Icon=UK Fixed Speedcam.bmp

[redlight]
Name=UK Redlight Speedcams
Warning=True
Source=UK Redlight Speedcams.csv
Icon=UK Redlight Speedcam.bmp

[variable]
Name=UK Variable Speedcams
Warning=True
Source=UK Variable Speedcams.csv
Icon=UK Variable Speedcam.bmp

To run using the mypois.exe executable on windows:

c:\path\to\mypois.exe c:\path\to\config.ini

To run using python:

python /path/to/mypois.py /path/to/config.ini

Supported CSV format

Using pyinstaller to distribute as an executable on Windows

c:\Python27\Scripts\pyinstaller.exe --onefile  mypois.spec