A massive mess of a hacked lines from all over the place that somehow gets the I2C interfaced OLED working on a Raspberry Pi Zero working with hardcoded data. Currently supported data providers are:
- CoinGecko
- CoinmarketCap
Prerequisites:
- a file
settings.json
defines the assets and intervals between API requests. Changes during runtime will be loaded with the next cycle:
{
"assets": [
"BTC",
"ETH",
"DOT"
],
"interval": 900
}
- in a directory
venv
make a filekeys.json
and do this for exchange keys:
{
"coinmarketcap": {
"key": "some-super-secret-key",
"interval": 900
}
}
- if you want to get the directions for unit base price, in the directory
venv
make a fileucb.json
and do something like this:
{
"BTC": 3000,
"ETH": 1000,
"DOT": 20
}