Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Gasvaktin

Gasvaktin

Gasvaktin aims to be an open and automated price lookup project for petrol stations in Iceland (95 octan bensin and diesel).

Check out gasvaktin.is if you're travelling Iceland and want to find your preferred petrol station in your near vicinity.

Follow Gasvaktin on Twitter if you'd like to be notified on price changes, they're automatically tweeted by @gasvaktin when detected.

If you're interested in working with the current petrol price data provided there is a publicly available API endpoint which exposes current price data, the API is hosted by the awesome icelandic apis.is project, check it out.

If you notice any issues or errors please contact maintainer, or submit a PR to fix the issue.

Gasvaktin watches the following Icelandic oil companies:

Setup and usage

You need to install Python (3.6.8 or newer) and pip and install the following python modules:

pip install -r pip_requirements.txt

Note: Either make sure Python3 is set to default over Python2 in your environment, or use python3 and pip3 instead of python and pip. Python2 lifecycle ended in 2019, so hopefully we can stop worrying about default Python sometime in 2020.

Open a terminal in this repository and

python gasvaktin.py --collect-and-write-data

This updates the pretty vaktin/gas.json and the minified vaktin/gas.min.json with newest price data from the oil companies webpages. This is run every 15 minutes and in case of price changes they are automatically commited to the repository.

Run python gasvaktin.py --help to see available input arguments.

Origination of data

Data over petrol stations and locations is currently just static. Price data from the oil companies is fetched regularly. See here for more details on when prices were last checked.

If you're interested in price trends over time, it can be extracted from git history via the following:

cd scripts
python trends.py

Run python trends.py --help to see available input arguments.

Atlantsolía

Stations

Atlantsolía has a list of its stations here.

Prices

Gas price for each station can be found here, also showing discount prices available if you have Atlantsolía fuel key ring.

Costco Iceland

Stations

Costco Iceland has a single petrol station in Iceland, in Kauptún next to IKEA. Note that you can't buy petrol at this station unless you're a Costco member, Costco membership card in Iceland costs ~5.000 ISK (~49 USD) annually.

Prices

Costco Iceland doesn't plan on showing their petrol prices on their web, at least not in the near future, so we currently have no way of tracking their prices except reading it straight off their pumps in Kauptún. We check and update their prices from time to time in this Google Docs Spreadsheet but due to this procedure not being automatic, prices may not be correct from time to time.

N1

Stations

N1 station locations can be viewed here.

Prices

Prices for N1 can be found here, you can find information on special fuel card discount here. At the time of this writing the minimum discount amount is 5 ISK and 2 N1 points per liter, both for bensin and diesel.

Dælan

Stations

Station locations for Dælan are shown on a picture of a map on dælan.is.

Prices

Dælan stations don't have any discount prices, prices are shown on dælan.is.

Olís (and ÓB)

Stations

List of stations can be seen here but unfortunately no geo coordinates seem to be exposed. We might be able to do automatic lookup on for example google maps and use that but manual review would probably always be needed. This is one of the reasons stations data is static.

Prices

Prices for Olís can be seen here and prices for ÓB can be seen here, you can find information on special fuel key ring discount here.

Skeljungur (and Orkan)

Stations

In the beginning of 2018 Skeljungur rebranded its remaining stations to Orkan, there are no fuel stations operating under the Skeljungur brand anymore. Also, it seems the Orkan X brand is no more too, with the last Orkan X station being rebranded to Orkan in either late 2019 or beginning of 2020.

List of stations for Orkan can be seen here.

Prices

Prices for Orkan and Orkan X individual stations can be seen here. Information on the discount for Orkan (Afsláttarþrep) is currently missing from the updated Orkan website, before the update there was information available that it's threefold (5/6/8 ISK discount) and is controlled by how much fuel you bought from Orkan the month before (extra +2 discount for user selected station). To simplify we only use the default minimum discount, currently 5 ISK. Orkan X does not maintain a discount program.

Maintainer

@Loknar

Licence

MIT Licence

About

Automated price comparer for petrol stations in Iceland.

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.