Core Lightning (previously c-lightning) Earning Script for Raspiblitz.
When using Core Lightning in conjunction with the CLBOSS autpilot under Raspiblitz, this script will gather relevant information about the node's proftability. It accounts for earnings and expenditures (caused by automatic rebalancing iniatiated by CLBOSS). It then prints out the net profit.
Copy the earning.sh file into the directory
/home/bitcoin
Make the file executable
sudo chmod a+x earning.sh
Run the script within the same directory
sudo -u bitcoin ./earning.sh