/AipEnr6Downloader

A simple utility to download ENR-6 maps from ENAV, AIP

Primary LanguagePythonMIT LicenseMIT

AIP ENR-6 downloader

A simple utility to download ENR-6 maps from ENAV, AIP, based on Docker with Python 3.9.7 slim buster, Selenium and ChromeDriver.

Dismission note

Due to changes to the ENAV's site, this project doesn't work any more and has been dismissed.

License

View the LICENSE file.

Usage

To use this utility, you must be registered on the ENAV site; your username and password are required to download the maps.

Build the Docker image

After having cloned or downloaded this repository, in Powershell, cd the project's root directory, then launch:

docker build -t starnutoditopo/aipenr6downloader:1.0.0 .

Run

After having built the Docker image, in your working folder, create a folder called Data, with a subfolder named AIP, then launch:

docker run -it --rm -v "${PWD}/Data:/Data" starnutoditopo/aipenr6downloader:1.0.0 /usr/local/bin/python AipEnr6Downloader.py -u <username> -p <password>

Find the downloaded files in ./Data/AIP.

Develop and debug

This project contains a .devcontainer folder, configured to create a Docker container to be used with Visual Studio Code: just launch VSC and open this folder in container.

For your convenience, create a .vscode/launch.json file with a content like this:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Current File",
            "type": "python",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "args": [
                "-u", "<your userName here>",
                "-p", "<your password here>",
                "-o", "./Data/AIP"
            ]
        }
    ]
}

Open the AipNr6Downloader.py file and press the F5 key to start debugging.