Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/meatcar/lcbo-car-fuel

Find the most cost-effective product to fuel an ethanol car with from LCBO
https://github.com/meatcar/lcbo-car-fuel

lcbo-api nix sqlite

Last synced: 12 days ago
JSON representation

Find the most cost-effective product to fuel an ethanol car with from LCBO

Awesome Lists containing this project

README

        

# LCBO Car Fuel Index

Pull the [LCBO REST API](https://api.lcbo.com) into a ~200MB sqlite database. Originally intended to be used to figure out the least expensive volume of ethanol at a specific location, but can be used to explore other interesting correlations.

## Requirements

- Linux, MacOS, or WSL under Windows.
- [nix](https://nixos.org/download.html)

## Usage

Open a shell with the dependencies.

```sh
$ nix-shell
```

Scrape api.lcbo.com into a sqlite database, as defined in `.env`.

```sh
$ bin/fetch all # Takes about 1hr
$ bin/tune-db
```

Optionally, explore the data with [metabase](https://metabase.com)

```sh
$ metabase
```

## Questions

- [ ] Most represented country, alcohol, etc by total volume, price adjusted, etc.
- [ ] Wine vs Beer popularity
- [ ] Geographic distributions