Rev 2211 | Rev 2232 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2211 | Rev 2218 | ||
|---|---|---|---|
| Line 303... | Line 303... | ||
| 303 | last_value = eval("(" + last_value_string + ")"); |
303 | last_value = eval("(" + last_value_string + ")"); |
| 304 | } |
304 | } |
| 305 | 305 | ||
| 306 | var timestamp = get_time(); |
306 | var timestamp = get_time(); |
| 307 | last_value["Temperature_Celsius"] = { "value" : temp.toString(), "timestamp" : timestamp }; |
307 | last_value["Temperature_Celsius"] = { "value" : temp.toString(), "timestamp" : timestamp }; |
| - | 308 | if (humidity<101) |
|
| - | 309 | { |
|
| 308 | last_value["Humidity_Percent"] = { "value" : humidity.toString(), "timestamp" : timestamp }; |
310 | last_value["Humidity_Percent"] = { "value" : humidity.toString(), "timestamp" : timestamp }; |
| - | 311 | } |
|
| 309 | 312 | ||
| 310 | Storage_SetParameter("LastValues", alias_name, JSON.stringify(last_value)); |
313 | Storage_SetParameter("LastValues", alias_name, JSON.stringify(last_value)); |
| 311 | 314 | ||
| 312 | break loopAliases; |
315 | break loopAliases; |
| 313 | } |
316 | } |