# HG changeset patch # User Chiel Broek # Date 1532521119 -7200 # Node ID 8b56f1b4e7ec3fe647a011d1d41862cbaf12eff8 # Parent 3721f9c08843fd3755ddb64e879b407a3335048f Add INSTALL file. Less simulator logging. diff -r 3721f9c08843 -r 8b56f1b4e7ec INSTALL --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/INSTALL Wed Jul 25 14:18:39 2018 +0200 @@ -0,0 +1,10 @@ + +Compiling and building on a Raspberry runing Debian Stretch: + +Install the packages libjson-c-dev, libxml2-dev, mosquitto-clients, + libmosquitto-dev, wiringpi, i2c-tools, nginx, php-fpm, uuid-dev. + + +If running over WiFi consider running a local mosquitto server that runs as a +bridge to the main mosquitto server. Install mosquitto. + diff -r 3721f9c08843 -r 8b56f1b4e7ec thermferm/simulator.c --- a/thermferm/simulator.c Wed Jul 25 12:24:17 2018 +0200 +++ b/thermferm/simulator.c Wed Jul 25 14:18:39 2018 +0200 @@ -125,7 +125,8 @@ simulator->beer_temperature += ((simulator->air_temperature - simulator->beer_temperature) / 500.0); simulator->air_temperature += ((simulator->beer_temperature - simulator->air_temperature) / 2500.0); - syslog(LOG_NOTICE, "air=%.3f beer=%.3f heater=%.3f cooler=%.3f", simulator->air_temperature, simulator->beer_temperature, + if ((seconds % 15) == 0) + syslog(LOG_NOTICE, "air=%.3f beer=%.3f heater=%.3f cooler=%.3f", simulator->air_temperature, simulator->beer_temperature, simulator->s_heat_temp, simulator->s_cool_temp); // if (debug)