SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.03k stars 123 forks source link

Better status #257

Closed SnAFKe closed 1 year ago

SnAFKe commented 1 year ago

Would be nice if p2pool status display in log file.

I propose shown interval times something like in 5min 15min 30min 60min etc. to avoid flood in log file, as extra if you can create in command line the interval you want.

This would be very helpful for those who use the program in background mode.

SChernykh commented 1 year ago

You can get everything from status in json api if you add --data-api path/to/api/directory --local-api to the command line. From there, you can do whatever you want with the json data - grab it by a script, show on your own custom dashboard etc.

Edit: the docker container has an example page doing it: https://github.com/SChernykh/p2pool/tree/master/docker-compose/statistics/app