mta-map-fetcher

Crates.iomta-map-fetcher
lib.rsmta-map-fetcher
version0.1.1
sourcesrc
created_at2024-05-18 23:48:44.490029
updated_at2024-05-19 00:12:14.4392
descriptionFetch MTA Maps for offline usage
homepage
repositoryhttps://salsa.debian.org/legoktm/mta-maps-fetcher
max_upload_size
id1244557
size40,924
Kunal Mehta (legoktm)

documentation

README

MTA Maps Fetcher

Overview

The MTA Maps Fetcher is a command-line tool designed to download PDF map files from the MTA website. The tool fetches links to maps, downloads them, and saves them to a specified directory. It also includes options for dry run mode, specifying the download directory, and skipping the deletion of old files.

The intention is to set this up on a timer (see contrib/ for sample systemd units) and use a file synchronization service (e.g. syncthing) to copy to your phone for both offline and regularly-updated maps.

Installation

Ensure you have Rust installed on your system, and then:

cargo install mta-map-fetcher

Pre-built binaries may be offered in the future.

Usage

Run the tool with the desired options:

MTA Map Fetcher

Usage: mta-map-fetcher [OPTIONS]

Options:
      --dry-run                      Run the operation in dry run mode without downloading or deleting files
      --download-dir <DOWNLOAD_DIR>  Directory to download the files to [default: .]
      --skip-delete                  Skip deleting old maps
  -h, --help                         Print help
  -V, --version                      Print version

License

This project is released into the public domain. Most of it was written by ChatGPT 4o and therefore ineligible for copyright protection.

Commit count: 0

cargo fmt