Add INSTALL file. Less simulator logging.

Wed, 25 Jul 2018 14:18:39 +0200

author
Chiel Broek <mbse@mbse.eu>
date
Wed, 25 Jul 2018 14:18:39 +0200
changeset 552
8b56f1b4e7ec
parent 551
3721f9c08843
child 553
4091d4fe217f

Add INSTALL file. Less simulator logging.

INSTALL file | annotate | diff | comparison | revisions
thermferm/simulator.c file | annotate | diff | comparison | revisions
--- /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.
+
--- 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)

mercurial