This script it just run cgminer-api and extract some details from api. As you describe it runs every 30 minutes from cron process.I do not know why is this useful to get this on screen and into file every 30 minutes. Just connect ro S1 and run cgminer-api and you will see what do you need at iven time. Or connect via GUI and that is the same or even more readable from miner status page.