DERO Mining Stats is a simple website that track your solo mining stats in one convenient location.
The backend part uses the Paladin Framework and is made in Java.
The frontend part uses VueJS Framework and Vuetify and can be found in dero-stats folder.
Each miner is (for the moment) recognized by IP.
Backend updates the job every 200ms by default (configurable: job-interval
) by querying the daemon.
This way the miners get the job back from the backend and allows us to make statistics to see which miner is connected, the number of blocks found, the last query made…
To start, you will need to build the backend and frontend separately.
First, you must have a java version higher or equal to Java 8. To compile the backend, do the following command:
gradlew fatJar
The executable jar file will be found in build/libs/
folder.
To execute it, all you’ll have to do is:
java -jar dero-mining-stats-1.0.1.jar
config.json
file will be created once the application is launched.
config.json
{
"port": 8080,
"enableSSL": false,
"keystoreFile": "",
"keystorePassword": "",
"daemonURL": "https://wallet.dero.io:443",
"walletAddress": "dERokevAZEZVJ2N7o39VH81BXBqX9ojtncnPTDMyiVbmYiTXQY93AUCLcor9xsWCKWhYy25ja89ikZWXWab9kXRB7LYfUmbQyS",
"reserveSize": 10,
"job-interval": 200
}
port
is the port on which the application is going to listen to.
daemonURL
is the URL of the DERO node you want to mine.
reserveSize
is used by the DERO daemon.
walletAddress
is the DERO address where you want to mine on.
job-interval
is the interval in milliseconds between each request to update the job.
There are two ways to enable SSL on DERO Mining Stats:
For the second solution, you will need to generate a Java keystore file (.jks). To create a java keystore file from an already existing certificate, please refer here
For more examples: here
once this step is done, just configure the “config.json” file.
enableSSL
must be set to true
if you want to activate it.
keystoreFile
is the path to your file. If it is in the same folder as the application, you can simply specify the file name as above.
keystorePassword
is the password needed for the keystore file.
Yarn must be installed, if not, click here to find out how to install it.
First you will need to change the value of Vue.prototype.$api
with your API address (so the IP address/domain name where your backend is running) in the src/main.js
file.
Install dependencies:
yarn install
Then, to build the frontend:
yarn run build
The result will be available in the dist
folder and all you have to do is move its content to a web server.
Some screenshots of the current design.
Donations are greatly appreciated and I thank you for them.
dERokevAZEZVJ2N7o39VH81BXBqX9ojtncnPTDMyiVbmYiTXQY93AUCLcor9xsWCKWhYy25ja89ikZWXWab9kXRB7LYfUmbQyS