nice one @wes new version updated as you recommended only slight change is it outputs the safenode-manager status to file then greps it for the individual details
#!/bin/bash
export PATH=$PATH:$HOME/.local/bin
base_dirs="/var/safenode-manager/services"
# influx db and grafana need data that is to be worked with to have the same time stamp this rounds time to the nearest 100 seconds to
# attempt to keep all machines in sync for time purposes
influx_time="$(echo "$(date +%s%N)" | awk '{printf "%d0000000000\n", $0 / 10000000000}')"
######################################################
# coin gecko gets upset with to many requests this atempts to get the exchange every 15 min
# https://www.coingecko.com/api/documentation
######################################################
time_min=$(date +"%M")
CALCULATE_EARNINGS=0
# execute script every 15 min if the tig stack folder is present
if [ $time_min == 0 ] || [ $time_min == 15 ] || [ $time_min == 30 ] || [ $time_min == 45 ]
This file has been truncated. show original
3 Likes