17 |
|
|
18 |
|
|
19 |
public static int CurrentTemp { get { return ReadTemp(); } set { WriteTemp(value); } } |
public static int CurrentTemp { get { return ReadTemp(); } set { WriteTemp(value); } } |
|
|
|
20 |
public static int ExternalTemp { get { return GetExternalTemp(); } } |
public static int ExternalTemp { get { return GetExternalTemp(); } } |
21 |
|
public static int GetTemperatureAdjustment() |
22 |
|
{ |
23 |
|
int e_temp = Configuration.ExternalTemp; |
24 |
|
int d_temp = Configuration.DEFAULT_TEMP; |
25 |
|
int scale = 5; |
26 |
|
int s = (d_temp - e_temp) / scale; |
27 |
|
int offset = 2; |
28 |
|
int t = (d_temp + s) - offset; |
29 |
|
return t; |
30 |
|
} |
31 |
|
|
32 |
public static readonly string WEATHER_URL = ""; // 60 |
public static readonly string WEATHER_URL = ""; // 60 |
33 |
public static readonly string THERMISTAT_DEVICE = ""; // 60 |
public static readonly string THERMISTAT_DEVICE = ""; // 60 |
137 |
int k = Convert.ToInt32(t.Tag); |
int k = Convert.ToInt32(t.Tag); |
138 |
temp = k; |
temp = k; |
139 |
} |
} |
140 |
catch (Exception ex) |
catch (Exception) |
141 |
{ |
{ |
142 |
temp = 0; |
temp = 0; |
143 |
} |
} |