diff -r c31ea86fec43 -r 56b008563db8 thermferm/thermferm.c --- a/thermferm/thermferm.c Fri Aug 01 09:25:38 2014 +0200 +++ b/thermferm/thermferm.c Fri Aug 01 11:45:35 2014 +0200 @@ -231,7 +231,7 @@ char buf[1024], *filename, target[40], heater[40], cooler[40], fan[40], door[40]; time_t now, last = (time_t)0; units_list *unit; - int rc, run = 1, seconds = 0; + int rc, run = 1, seconds = 0, minutes = 0; #ifdef HAVE_WIRINGPI_H struct tm *tm; int row; @@ -380,6 +380,13 @@ filename = NULL; } } + + minutes++; + if (minutes == 60) + minutes = 0; + + if ((minutes == 15) || (minutes == 45)) + wrconfig(); } } usleep(100000);