It turned out that the scaling mechanism in FANN 2.1 was broken. this commit implementsa scaly mechanismin the training script and the thermostat script. The maximum and minimum value for everymeasurement device/nput is recorded in a separate file for each room. Input data to thethermostat scriptis scaled using the valuesfrom this file.