rafaelzimmermann / cryptowatcher

Run with one command grafana, prometheus, and a python script to collect and display cryptocurrency prices and track your wallet balance.
MIT License
14 stars 1 forks source link
btc cardano cryptocurrency docker-compose grafana prometheus

CryptoWatcher

Track your favorite crypto coin price and your wallet balance.

image

Import your tranasctions and manage your wallets. (Work In Progress)

image

Install

Create .env:

ADMIN_USER=admin  
ADMIN_PASSWORD=admin

Configure your wallet assets and prices to watch

vi walletwatcher/config.json

Clone this repository on your Docker host, cd into test directory and run compose up:

git clone https://github.com/rafaelzimmermann/cryptowatcher.git
cd cryptowatcher
docker-compose up -d

Grafana: http://localhost:3000/

Wallet watcher manager: http://localhost:1337/

To check the available symbols:

curl https://api.binance.com/api/v3/exchangeInfo | jq ".symbols[].symbol"

Prerequisites:

Containers:

Setup Grafana

Navigate to http://<host-ip>:3000 and login with user admin password admin. You can change the credentials in the compose file or by supplying the ADMIN_USER and ADMIN_PASSWORD environment variables via .env file on compose up. The config file can be added directly in grafana part like this

grafana:
  image: grafana/grafana:5.2.4
  env_file:
    - config

and the config file format should have this content

GF_SECURITY_ADMIN_USER=admin
GF_SECURITY_ADMIN_PASSWORD=changeme
GF_USERS_ALLOW_SIGN_UP=false

If you want to change the password, you have to remove this entry, otherwise the change will not take effect

- grafana_data:/var/lib/grafana

Grafana is preconfigured with dashboards and Prometheus as the default data source:


Special Thanks

Atomic labs for svg icons