Skip to content

t-muehlberger/rio-tachograph-downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RIO Tachograph Downloader

CLI for downloading DDD-Files from rio.cloud to a local folder. This can be helpful to integrate third-party-software or for backup/archival tasks.

Features:

  • Downloads all *.DDD files from the Tachograph Archive in the Compliant module of rio.cloud.
  • Files that are already present are not downloaded again, only new files.
  • Files are organized by type, year and month into sub-folders.
  • Downloads are rate-limited to a given number of files per second in order to be nice to the API.

The downloader uses the Rio Partner API. It is required to get API-Keys from the RIOs Team in order to be able to use the downloader.

Hot to install

Build from source:

git clone https://github.com/t-muehlberger/rio-tachograph-downloader.git
cd ./rio-tachograph-downloader
go mod download
go build -o rio-tachograph-downloader *.go

Install via go get

go get -u github.com/t-muehlberger/rio-tachograph-downloader

How to run

The following environment variables should be defined:

API_INTEGRATION_ID=...
API_CLIENT_ID=...
API_CLIENT_SECRET=...
TARGET_DIR="." (optional)

Run the binary to download the files.

./rio-tachograph-downloader

About

CLI downloader for tachograph files from RIO (https://rio.cloud)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages