Skip to content

Instantly share code, notes, and snippets.

@endorxmr
endorxmr / mining-profitability.py
Last active November 5, 2022 15:57
Estimate a Monero miner's income and profitability, plus an upper bound for the total energy consumption of the mining network and the number of cpus involved
import texttable as tt
import datetime
import requests
import json
import math
node_jsonrpc = "http://node.supportxmr.com:18081/json_rpc"
time_format = "%Y-%m-%d %H:%M:%S"
# BASH ISN'T PREINSTALLED SO YOU HAVE TO MANUALLY INSTALL IT TO USE THIS SCRIPT
tce-load -iw bash
# FIX WRONG TIME TO SOLVE SSL PROBLEMS
tce-load -iw ntpclient
sudo ntpclient -s -c 1 -h pool.ntp.org
# REQUIRED PACKAGE LIST
# https://xmrig.com/docs/miner/build/ubuntu
tce-load -iw git compiletc cmake automake autoconf libtool libtool-dev