Skip to content

This program download data from open data hosted on website of Ministero dello sviluppo economico and process it for find the best fuel price in your town

License

Notifications You must be signed in to change notification settings

marcoM32/cliFuel

Repository files navigation

CLIFUEL

cliFuel is a command line fuel price finder for Italy

This program is based on open data published every day by Ministero Dello Sviluppo Economico. The database URL is:

Examples

  • Simple search
$ ./cliFuel -q roma -s

  • Search for best price
$ ./cliFuel -q roma

or use list notation

$ ./cliFuel -q list:roma,milano,trieste

it is also possible to search for a particular petrol station by its ID

$ ./cliFuel -q id:3000

or by province

$ ./cliFuel -q prov:RM

for other usage tips, use the -h command

$ ./cliFuel -h

Libraries linked statically

  1. https://sourceforge.net/projects/cccsvparser/
  2. https://github.com/rxi/log.c
  3. https://github.com/rxi/map
  4. https://github.com/doches/progressbar
  5. https://github.com/rxi/dmt

Libraries linked dynamically

  1. https://curl.haxx.se/libcurl/c/libcurl.html

CliFuel as Docker service with email notification

It is possible to receive cliFuel elaborations on your email using the Docker container which can be created as follows

To build your own Docker image run

$ docker build -t clifuel --build-arg ARG_ACCOUNT_GMAIL_TO=<your user> \
--build-arg ARG_ACCOUNT_GMAIL_USER=<your user> \
--build-arg ARG_ACCOUNT_GMAIL_PASSWORD=<your password> --progress=plain .

To run the Docker container using your preference

$ docker run --name clifuel --rm clifuel -q <your place>

License

GNU GPLv3 Image

This application is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

This program download data from open data hosted on website of Ministero dello sviluppo economico and process it for find the best fuel price in your town

Resources

License

Stars

Watchers

Forks

Packages

No packages published