Commit Graph

58 Commits

Author SHA1 Message Date
Matthew Oslan
d56f66e61f Don't reset scale on error for manual mode 2020-03-04 22:36:43 -05:00
Matthew Oslan
3f11dbc1cc Tidy up unexpected error handling 2019-09-02 12:11:27 -04:00
Matthew Oslan
1a1ecafcb0 Throw errors instead of returning them 2019-09-02 11:32:38 -04:00
Matthew Oslan
2918527bcb Remove errMessage 2019-09-01 15:05:41 -04:00
Matthew Oslan
d77553bce4 Include an error code in every response 2019-08-31 18:36:25 -04:00
Matthew Oslan
9b99b993ab Add error codes to watering data errors 2019-08-24 19:02:41 -04:00
Matthew Oslan
7df7e0d5ec Merge pull request #77 from OpenSprinkler/eto
Add ETo Support
2019-07-16 17:33:23 -04:00
Matthew Oslan
2992df9c33 Remove "pws:" prefix from PWS ID 2019-07-12 20:04:25 -04:00
Matthew Oslan
5787300b87 Silently fallback to default WeatherProvider if PWS key is omitted 2019-07-12 19:43:25 -04:00
Matthew Oslan
114786efba Merge 'dev' into 'eto' 2019-07-06 10:15:22 -04:00
Matthew Oslan
c53e60e090 Split PWS ID and API key into 2 parameters 2019-07-06 09:30:32 -04:00
Matthew Oslan
7ea1824048 Improve PWS support
The previous implementation would have required a firmware update
2019-07-05 22:47:07 -04:00
Matthew Oslan
5eb696c3e8 Cache calculated watering scale when using data from Dark Sky 2019-07-03 16:26:14 -04:00
Samer Albahra
9149aaaa93 Merge pull request #69 from Derpthemeus/automatic-base-eto
Add baseline ETo endpoint
2019-07-02 15:09:27 -07:00
Matthew Oslan
a248eaab53 Merge 'dev' into 'eto' 2019-06-30 16:33:54 -04:00
Matthew Oslan
aa26698481 Fix compatibility with earlier Node.js versions
Named regex match groups are not supported until Node.js 10.0.0
2019-06-29 13:10:22 -04:00
Matthew Oslan
5f35b0410c Add WUnderground WeatherProvider with Zimmerman PWS support 2019-06-28 20:13:51 -04:00
Matthew Oslan
dc171ebe68 Refactor watering scale logic flow 2019-06-28 20:07:22 -04:00
Matthew Oslan
7a7fde393f Add baseline ETo endpoint 2019-06-25 17:11:03 -04:00
Matthew Oslan
69e8d64f41 Register ETo AdjustmentMethod 2019-06-12 11:02:10 -04:00
Matthew Oslan
3f748704e0 Automatically URL query format response 2019-06-09 12:07:09 -04:00
Matthew Oslan
0281a835e2 Refactor adjustment method selection 2019-06-09 11:34:53 -04:00
Matthew Oslan
f489993d8c Make error handling backwards compatible 2019-06-06 17:14:03 -04:00
Matthew Oslan
b57b019295 Add default implementations to WeatherProvider 2019-06-06 16:17:06 -04:00
Matthew Oslan
8368991c67 Convert WeatherProvider from interface to class 2019-06-06 16:11:59 -04:00
Matthew Oslan
16b13c1e43 Handle errors thrown by calculateZimmermanWateringScale 2019-06-06 13:01:26 -04:00
Matthew Oslan
b44cd4502c Overhaul error handling 2019-06-06 10:46:24 -04:00
Matthew Oslan
cd6285fa86 Don't disable watering when rain is forecasted 2019-05-31 22:09:23 -04:00
Matthew Oslan
74f6a00f7b Fix weather restrictions check
This was accidentally removed in a bad merge
2019-05-27 02:56:57 -04:00
Matthew Oslan
8c94af1fdb Merge branch 'master' into improve-weather-provider-handling 2019-05-27 01:47:59 -04:00
Pete ba
7edae63027 Revert California Restrictions check 2019-05-27 04:09:21 +01:00
Matthew Oslan
7ab7a1cec2 Miscellaneous code cleanup 2019-05-26 00:55:18 -04:00
Matthew Oslan
4490df0aef Improve WeatherProvider error handling 2019-05-25 15:00:42 -04:00
Matthew Oslan
4c0a1d2e47 Merge branch 'master' into improve-weather-provider-handling 2019-05-23 14:54:34 -04:00
Matthew Oslan
dec9f31dec Revert "Add support for fallback WeatherProviders"
This reverts commit 0e23e56817.
2019-05-23 14:36:34 -04:00
Samer Albahra
10c3a67387 Hide raw data when not used 2019-05-23 11:08:27 -05:00
Matthew Oslan
1313e170fb Don't fetch WateringData if manual watering mode is being used 2019-05-23 11:53:52 -04:00
Matthew Oslan
4ffeed5999 Convert local to a WeatherProvider 2019-05-21 22:49:49 -04:00
Matthew Oslan
0e23e56817 Add support for fallback WeatherProviders 2019-05-21 22:14:46 -04:00
Matthew Oslan
0297341670 Refactor watering scale adjustment method selection 2019-05-21 21:32:58 -04:00
Pete ba
5d8ab45244 Addresses rmloeb feedback 2019-05-19 09:12:02 +01:00
Matthew Oslan
df1ae9e63f Improve location resolution error handling 2019-05-13 20:40:07 -04:00
Samer Albahra
e94f8bf8ff Fix bug with updated geo-tz package 2019-05-13 19:09:33 -05:00
Matthew Oslan
0a75b3da52 Use 24 hour windows in OWM WeatherProvider 2019-05-13 19:43:35 -04:00
Matthew Oslan
16e913caf3 Add support for DarkSky API 2019-05-13 15:14:06 -04:00
Matthew Oslan
ee31e736ba Allow dynamic selection of weather provider 2019-05-12 01:55:00 -04:00
Matthew Oslan
31af9d3320 Use ES6 modules 2019-05-12 01:38:27 -04:00
Matthew Oslan
f0c32a32ba Add HTTPS support to httpRequest 2019-05-12 00:21:19 -04:00
Matthew Oslan
31e7e5401a Rebase on master 2019-05-11 16:21:30 -04:00
Matthew Oslan
08211acbc8 Separate OWMWeatherData and OWMWateringData from TimeData 2019-05-10 19:30:40 -04:00