Short script to monitor walletbalance and channelbalance for LND, and log to csv file for later graphing. You need a working LND, and jq installed.
first setup by editing balances.txt and add a header line
date,walletbalance,channelbalance
add the following script, edit lndbalances.sh
#!/bin/bash