Earnings calculation script for Storj V3 storagenodes
Python is required to run this script.
This script was tested on Windows 10 and Linux, with Python 2.7 and 3.7. Other OS's and versions will likely also work.
Especially if you are running on Windows or MacOS, stop the node, copy the bandwidth.db, storage_usage.db and piece_spaced_used.db to a different location and run the script from there. Running the script on these OS's while the node is using it could lead to corruption of the database, which will kill the node.
Earnings for current month:
python earnings.py /path/to/storj/data
Note: If you omit the path it will look in the current working directory.
Earnings for previous months:
python earnings.py /path/to/storj/data 2019-05