Move weather-based rain delay into it's own adjustment method

The previous implementation caused the scale to change to zero for
user’s not using a weather adjustment method. This is not ideal since
the water scale will remain at 0% until there is user intervention.

Now it will be a user selectable method which uses a user-configurable
delay value which defaults to 24 hours.
This commit is contained in:
Samer Albahra
2015-07-30 21:23:19 -07:00
parent abb37cc2bb
commit 58bc020f34
2 changed files with 40 additions and 13 deletions

View File

@@ -2,6 +2,7 @@
"WSI": {
"01002": {
"scale": 83,
"rd": -1,
"tz": 32,
"sunrise": 324,
"sunset": 1226,
@@ -11,6 +12,7 @@
"WU": {
"01002": {
"scale": 61,
"rd": -1,
"tz": 32,
"sunrise": 324,
"sunset": 1228,
@@ -20,6 +22,7 @@
"noWeather": {
"01002": {
"scale": -1,
"rd": -1,
"tz": 32,
"sunrise": 324,
"sunset": 1226,