
#!/bin/bash

# script that translates the info from fetch2300
# into the format used by cacti
# By Graham Billiau
# Licence GPLv2
#"If it breaks you get to keep both pieces"

COUNTER=0
THINGS=(`tail -n1 /opt/open2300-1.10/htdocs/weather_log.log`)
(( THINGS[8] = THINGS[8] * 3.6 ))
echo "To:${THINGS[4]} Ti:${THINGS[3]} DP:${THINGS[5]} RHi:${THINGS[6]} RHo:${TH;2FINGS[7]} WS:${THINGS[8]} DIR0:${THINGS[9]} WC:${THINGS[11]} R1h:${THINGS[12]} R24h:${THINGS[13]} Rtot:${THINGS[14]} RP:${THINGS[15]}"

