Code Monkey home page Code Monkey logo

check-fuel-prices's Introduction

Check fuel prices

Introduction

Check fuel prices is a script that shows the nearest fuel stations in Portugal near to you in a certain radius. The fuel prices are obtained through the API of the website Preço dos Combustiveis Online

Usage

Install dependencies

pip install -r requirements.txt

Then create the file ~/.config/check-fuel-prices.yaml and insert the following options, changing each value to your default choises:

# Configuration file for check-fuel-prices.py
# With the default options
location: [0.0000, 0.0000] # [latitude, longitude]
fuel: "95" # 95, 98, diesel
create_kml: false
search_radius: 8 # kilometers

Where is <latitude> and <longitude> you should replace with the coordinates of the place you want to be your default.

Atention: All the above options have to be set in the configuration file for the script to work

Then run in your terminal:

python3 check-fuel-prices.py [latitude] [longitude]

latitude and longitude are optional fields.

Options

  • -f,--fuel - Select the type of fuel 95, 98 or diesel. The default is 95
  • -r, --radius - Radius of search in kilometers
  • -k, --kml - Save the fuel stations locations in a KML file
  • -h, --help - Show help menu

check-fuel-prices's People

Contributors

drcor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.