I thought I already had a topic for this earnings calculator, but I guess not. I made this calculator as an extension of the dashboard functionality already provided by storj.
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 info.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. This approach is best practice on Linux as well.
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
Get latest version
v7.0.1 - Cleanup output
- Remove debug print lines
- Made the script compatible with the split up sqlite3 databases
- Changed readme to reflect the 3 databases required for the script to work
v6.1.0 - Historic storage data
- Storage information for historic months is now also available starting with September 2019
- Small change in terminology for used storage to align with planned changes on the SNOboard (GBm instead of GB/Month, which was actually mathematically the wrong unit anyway)
- USD amount is now shown on the Disk Average Month line
v6.0.0 - Big refactor with several updates
- No more estimates for disk usage, it now uses the nodes own numbers
- Switched Disk Average to usage so far based on Bh (Bytes*hour)
- Added Bh line and switched the total line to Bh as well
- USD calculation for disk usage now doesn’t assume usage will stay the same for the rest of the month and displays USD based on usage until now. Just like for bandwidth only USD made until now is displayed. This results in this version displaying a lower number than the previous version as future income is not counted yet.
- Known satellites are now mentioned by name
- Visual tweaks