/[ThermoControl]/trunk/libThermoControl/Configuration.cs
ViewVC logotype

Diff of /trunk/libThermoControl/Configuration.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 26 by william, Wed Nov 13 03:39:04 2013 UTC revision 28 by william, Wed Feb 12 03:22:55 2014 UTC
# Line 21  namespace libThermoControl Line 21  namespace libThermoControl
21          public static int GetTemperatureAdjustment()          public static int GetTemperatureAdjustment()
22          {          {
23              int e_temp = Configuration.ExternalTemp;              int e_temp = Configuration.ExternalTemp;
24              int d_temp = Configuration.DEFAULT_TEMP;              int d_temp = Configuration.CurrentTemp;
25              int scale = 5;              int scale = 5;
26              int s = (d_temp - e_temp) / scale;              int s = (d_temp - e_temp) / scale;
27              int offset = 2;              int offset = 4;
28              int t = (d_temp + s) - offset;              int t = (d_temp + s) - offset;
29              return t;              return t;
30          }          }
31    
32          public static readonly string WEATHER_URL = ""; // 60          public static readonly string WEATHER_URL = "http://www.accuweather.com/en/us/chattanooga-tn/37421/current-weather/331086"; // 60
33          public static readonly string THERMISTAT_DEVICE = ""; // 60          public static readonly string THERMISTAT_DEVICE = "AC_THERMOSTAT"; // 60
34          public static readonly int MIN_TEMP = 0; // 60          public static readonly int MIN_TEMP = 0; // 60
35          public static readonly int MAX_TEMP = 0; // 90          public static readonly int MAX_TEMP = 0; // 90
36          public static readonly int DEFAULT_TEMP = 0; // 70          public static readonly int DEFAULT_TEMP = 0; // 70
37          public static readonly string DEFAULT_MODE = ""; // cool          public static readonly string DEFAULT_MODE = "cool"; // cool
38          public static readonly string DEFAULT_FAN_SPEED = ""; // auto_fan          public static readonly string DEFAULT_FAN_SPEED = "auto_fan"; // auto_fan
39    
40          [Conditional("CONFIG_UNITTEST")]          [Conditional("CONFIG_UNITTEST")]
41          public static void UnitTest()          public static void UnitTest()

Legend:
Removed from v.26  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.22