@@ -23,6 +23,10 @@ class Hydrawise {
customerdetails() {
return this.request('GET', 'customerdetails', {type: 'controllers'});
}
+
+ statusschedule(tag = '', hours = 168) {
+ return this.request('GET', 'statusschedule', {tag, hours});
+ }
export default Hydrawise;
@@ -11,3 +11,12 @@ test('Customer Details', t => {
t.pass();
});
+test('Status Schedule', t => {
+ return hydrawise.statusschedule().then(data => {
+ if (data.error_msg) {
+ t.fail(`Error: ${data.error_msg}`);
+ t.pass();
+ });
+});