Skip to content

zertyn/streamr_node_earnings_checker

Repository files navigation

Streamr Node Earnings Checker

Python script that shows statistics of your node earnings (see image for an example of all statistics).

Help a poor student in need 😁 Donations are very welcome

  • (MATIC): 0x4CC2c2A32e38445d6a91A3eD69D1fdC6F6Ec989D (Polygon chain)
  • (BTC): bc1q65sme8mf4q32qntksa93ke3x7znhx894e63gq0

Only things to change

  • Add your node addresses in the config.json file.
  • Optional:
    • add your gmail email and extra settings in config.json to your liking (if you have 2FA gmail account, check this link to make a temporary password: https://support.google.com/accounts/answer/185833?hl=en). Leave the values 0 or false if you don't want emails.
    • add preffered currency type in config.json (i.e., EUR, JPY, GBP, USD), default is USD.
  • Caution: Only change the time settings if you know what you're doing (I don't recommend going under 3600 with any value)!

Uses the following imports/requires the following packages to be installed

  • requests
  • datetime
  • apscheduler
  • pandas
  • tabulate
  • email
  • currency_symbols

Sample output

image

How to run in Python (presuming you have changed the config.json)

git clone https://github.com/zertyn/streamr_node_earnings_checker.git
cd streamr_node_earnings_checker/
py -m pip install -r requirements.txt
python3 data_earnings_checker.py

Possible solutions to errors

If you receive an error, or the Python window closes immediately, go through the following steps:
  1. Make sure you have installed all neccessary packages with the pip installer.
  2. Make sure you have filled in your information in the config.json file correctly (see example nodes file).
  3. Make sure you have generated a temporary password for your gmail account if you have 2FA enabled: https://support.google.com/accounts/answer/185833?hl=en.
  4. if you launch the script via Python: make sure when you launch the Python script, that you are in the correct directory.
  5. if you launch the script via the .exe: make sure the config.json is in the same directory as the .exe file

About

Shows statistics of your Streamr nodes and the value it creates.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages