#!/bin/bash

mysql -u pi -pTemp314 -e 'TRUNCATE sensors.sensors_info'
mysql -u pi -pTemp314 -e 'TRUNCATE sensors.sensors_groups'

ls -1 /opt/tempberrypi/rrds/ | grep -v sensortemp.rrd | xargs -i++ /bin/rm /opt/tempberrypi/rrds/++
ls -1 /opt/tempberrypi/www/plots/ | grep png | xargs -i++ /bin/rm /opt/tempberrypi/www/plots/++

