Commit Graph

325 Commits

Author SHA1 Message Date
Samer Albahra
7425a65038 Update incorrect reference to callback 2015-08-11 15:24:30 -05:00
Samer Albahra
36a70a14ce Small improvements and code cleaning 2015-08-11 15:21:57 -05:00
Samer Albahra
76acc76f0f Fix bug referencing invalid value from cache 2015-08-07 20:34:02 -05:00
Samer Albahra
57b44e4dd6 Fix bug parsing adjustment options when encoded in \x?? format 2015-08-07 20:31:13 -05:00
Samer Albahra
f2a02d4f42 Correctly support Weather Underground unique IDs 2015-08-02 00:06:28 -05:00
Samer Albahra
a8827dbb96 Use the correct adjustmentOption for auto rain delay 2015-07-30 22:30:48 -07:00
Samer Albahra
58bc020f34 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.
2015-07-30 21:23:19 -07:00
Samer Albahra
abb37cc2bb Remove code climate badge 2015-07-30 20:57:52 -07:00
Samer Albahra
1d1ecea46b Add secondary method to retrieve data from weather.com
Currently incomplete as it does not get precipitation data
2015-07-24 01:44:49 -05:00
Samer Albahra
9ef4cb759b Use Weather Underground astronomy data for sun rise/set
Changes discussed in issue #3
2015-07-23 18:25:23 -05:00
Samer Albahra
eeae47ef5d Change the way restrictions are applied 2015-07-19 23:01:35 -05:00
Samer Albahra
b11f952502 Remove duplicate JSHint dependency 2015-07-12 16:04:31 -05:00
Samer Albahra
d832c61f0b Add ability to test against Weather Underground 2015-07-12 15:54:51 -05:00
Samer Albahra
ec2d681299 Add code coverage badge 2015-07-12 15:26:02 -05:00
Samer Albahra
a4d466e0e8 Add code coverage and upload to Codecov.io 2015-07-12 15:16:39 -05:00
Samer Albahra
34752edd74 Add expected data reply to compare 2015-07-12 14:24:27 -05:00
Samer Albahra
9cacab7deb Added first working version of unit tests 2015-07-12 09:41:47 -05:00
Samer Albahra
5190a65b77 Update package version in readme to working image 2015-07-09 21:31:11 -05:00
Samer Albahra
aa2eccc955 Replace coverage badge with code climate badge 2015-07-09 15:16:53 -05:00
Samer Albahra
44c14aa53e Change reply to 100% when invalid data is recieved 2015-07-08 00:21:14 -05:00
Samer Albahra
800aab8251 Exclude Weather Underground "null" values 2015-07-08 00:08:00 -05:00
Samer Albahra
c8e5040293 Fix typo in readme link 2015-07-06 17:28:23 -05:00
Samer Albahra
2714f8650c Fix language in Travis 2015-07-06 17:13:33 -05:00
Samer Albahra
65546075cf Add Travis configuration 2015-07-06 17:09:37 -05:00
Samer Albahra
f72c577d90 Save developer dependencies to package.json 2015-07-06 17:02:36 -05:00
Samer Albahra
240f2c727d Update readme 2015-07-06 16:53:04 -05:00
Samer Albahra
b489324425 Add support for API without using old Python URL 2015-07-06 13:31:23 -05:00
Samer Albahra
e5e9b242c8 Fix bug incorporating precipitation values for WUnderground 2015-07-05 16:53:49 -05:00
Samer Albahra
bf65fc6593 Remove unused zip from gitignore 2015-07-04 15:56:30 -05:00
Samer Albahra
baf2af9bbf Remove privacy disclaimer from readme
No longer collecting data to Google Analytics
2015-07-04 15:53:59 -05:00
Samer Albahra
03d273c7c8 Allow stations with yesterday's precip but not today's to report scale 2015-07-03 18:50:39 -05:00
Samer Albahra
21e579f0e1 Use Weather Underground for data when PWS or ICAO are used 2015-07-03 18:36:12 -05:00
Samer Albahra
d4b7c2db16 Merge pull request #2 from OpenSprinkler/nodejs-rewrite
Application rewrite from Python to Node
2015-07-03 16:49:31 -05:00
Samer Albahra
bc713d0380 Fix bug with Weather Underground queries 2015-07-03 16:05:03 -05:00
Samer Albahra
2bdc995825 Fix incorrect variable definitions 2015-07-03 14:17:40 -05:00
Samer Albahra
b7bf17ee9d Add fallback coordinates if none are provided by observation location 2015-07-03 13:56:06 -05:00
Samer Albahra
1a1a744dd7 Add timezone offset to Date object so overflow is handled 2015-07-03 13:22:45 -05:00
Samer Albahra
6ad0f0ff33 Add data validation before running water calculation function 2015-07-03 13:13:30 -05:00
Samer Albahra
d07e861722 Fix timezone issues with sunrise/sunset times 2015-07-03 11:21:44 -05:00
Samer Albahra
7541c21bb4 Attempt to generate UTC timestamp for sun times 2015-07-03 11:08:39 -05:00
Samer Albahra
261ffb4d35 Attempt to remove timezone offset from sun time calculations 2015-07-03 10:50:02 -05:00
Samer Albahra
c096106738 Generate date using the local observation time instead of server 2015-07-03 10:29:05 -05:00
Samer Albahra
859bce73dd Remove debug code 2015-07-03 02:54:58 -05:00
Samer Albahra
288733a190 Add the ability to retrieve weather data from Weather Underground 2015-07-03 02:53:51 -05:00
Samer Albahra
cd67a6f997 Minor fixes 2015-07-03 01:27:40 -05:00
Samer Albahra
687e3c6ca7 Remove unnecessary IIFE
https://stackoverflow.com/questions/21531329/are-node-js-modules-need-to
-be-wrapped-inside-the-module-pattern
2015-07-03 01:10:59 -05:00
Samer Albahra
69d4c9ca4d Many improvements and big fixes 2015-07-02 20:53:18 -05:00
Samer Albahra
8bfe799a01 Small changes to read and weather route 2015-07-02 20:28:16 -05:00
Samer Albahra
e82d72067f Change cronjob for weather cache processor to daily 2015-07-02 19:45:12 -05:00
Samer Albahra
90faf0f2fb Speed up Elastic Beanstalk update times 2015-07-02 19:43:57 -05:00