-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got unit tests working for Maker API
- Loading branch information
1 parent
f354cfe
commit bf58adf
Showing
6 changed files
with
187 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
COUCHDB_URL=http://localhost | ||
DB_NAME=irrigation-events | ||
DB_USERNAME=username | ||
DB_PASSWORD=passowrd | ||
DB_AUTH_REFRESH_MINUTES=9 | ||
MAKER_API_URL=http://localhost | ||
MAKER_API_ACCESS_TOKEN=fake-token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,4 +34,4 @@ lerna-debug.log* | |
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
.env* | ||
.env.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
{ | ||
"input": [ | ||
{ | ||
"name": "Generic Component Switch", | ||
"label": "North lawn", | ||
"type": "Generic Component Switch", | ||
"id": "768", | ||
"date": "2024-01-16T18:58:54+0000", | ||
"model": null, | ||
"manufacturer": null, | ||
"room": "Irrigation", | ||
"capabilities": ["Actuator", "Switch", "Refresh"], | ||
"attributes": { "switch": "on", "dataType": "ENUM", "values": ["on", "off"] }, | ||
"commands": [{ "command": "off" }, { "command": "on" }, { "command": "refresh" }] | ||
}, | ||
{ | ||
"name": "Generic Component Switch", | ||
"label": "Back plants", | ||
"type": "Generic Component Switch", | ||
"id": "769", | ||
"date": "2024-02-01T15:16:01+0000", | ||
"model": null, | ||
"manufacturer": null, | ||
"room": "Irrigation", | ||
"capabilities": ["Actuator", "Switch", "Refresh"], | ||
"attributes": { "switch": "off", "dataType": "ENUM", "values": ["on", "off"] }, | ||
"commands": [{ "command": "off" }, { "command": "on" }, { "command": "refresh" }] | ||
}, | ||
{ | ||
"name": "Generic Component Switch", | ||
"label": "Front trees", | ||
"type": "Generic Component Switch", | ||
"id": "675", | ||
"date": "2024-01-17T14:07:24+0000", | ||
"model": null, | ||
"manufacturer": null, | ||
"room": "Irrigation", | ||
"capabilities": ["Actuator", "Switch", "Refresh"], | ||
"attributes": { "switch": "off", "dataType": "ENUM", "values": ["on", "off"] }, | ||
"commands": [{ "command": "off" }, { "command": "on" }, { "command": "refresh" }] | ||
}, | ||
{ | ||
"name": "Generic Component Switch", | ||
"label": "Front plants", | ||
"type": "Generic Component Switch", | ||
"id": "676", | ||
"date": "2024-01-29T15:18:01+0000", | ||
"model": null, | ||
"manufacturer": null, | ||
"room": "Irrigation", | ||
"capabilities": ["Actuator", "Switch", "Refresh"], | ||
"attributes": { "switch": "off", "dataType": "ENUM", "values": ["on", "off"] }, | ||
"commands": [{ "command": "off" }, { "command": "on" }, { "command": "refresh" }] | ||
}, | ||
{ | ||
"name": "Virtual irrigation relay", | ||
"label": "Virtual irrigation relay", | ||
"type": "Virtual Switch", | ||
"id": "852", | ||
"date": null, | ||
"model": null, | ||
"manufacturer": null, | ||
"room": null, | ||
"capabilities": ["Switch", "Refresh"], | ||
"attributes": { "switch": "off", "dataType": "ENUM", "values": ["on", "off"] }, | ||
"commands": [{ "command": "off" }, { "command": "on" }, { "command": "refresh" }] | ||
}, | ||
{ | ||
"name": "Generic Component Switch", | ||
"label": "Back trees", | ||
"type": "Generic Component Switch", | ||
"id": "677", | ||
"date": "2024-01-13T13:34:01+0000", | ||
"model": null, | ||
"manufacturer": null, | ||
"room": "Irrigation", | ||
"capabilities": ["Actuator", "Switch", "Refresh"], | ||
"attributes": { "switch": "off", "dataType": "ENUM", "values": ["on", "off"] }, | ||
"commands": [{ "command": "off" }, { "command": "on" }, { "command": "refresh" }] | ||
}, | ||
{ | ||
"name": "Bhyve Hose Timer", | ||
"label": "Tangelo tree", | ||
"type": "Orbit Bhyve Sprinkler Timer", | ||
"id": "813", | ||
"date": "2024-01-24T14:41:16+0000", | ||
"model": null, | ||
"manufacturer": null, | ||
"room": "Irrigation", | ||
"capabilities": ["Refresh", "Battery", "Initialize", "Valve", "Switch", "Sensor"], | ||
"attributes": { | ||
"battery": "60", | ||
"dataType": "NUMBER", | ||
"values": null, | ||
"last_watering_volume": "0", | ||
"programs": "Tangelo Programs\nSmart Hose Timer: None", | ||
"scheduled_auto_on": "true", | ||
"water_flow_rate": null, | ||
"valve": "closed", | ||
"next_start_time": "1693917000000", | ||
"start_times": "5:30 am", | ||
"switch": "off", | ||
"sprinkler_type": "Unknown ", | ||
"station": "1", | ||
"next_start_programs": "Station 1: A", | ||
"run_mode": "auto", | ||
"stop_time": "1705678385556", | ||
"is_connected": "true", | ||
"rain_icon": "sun", | ||
"start_time": "1705672984235", | ||
"preset_runtime": "10", | ||
"rain_delay": "0", | ||
"manual_preset_runtime_min": "10" | ||
}, | ||
"commands": [ | ||
{ "command": "close" }, | ||
{ "command": "initialize" }, | ||
{ "command": "off" }, | ||
{ "command": "on" }, | ||
{ "command": "open" }, | ||
{ "command": "open" }, | ||
{ "command": "refresh" }, | ||
{ "command": "setRainDelay" } | ||
] | ||
}, | ||
{ | ||
"name": "Generic Component Switch", | ||
"label": "South lawn", | ||
"type": "Generic Component Switch", | ||
"id": "767", | ||
"date": "2024-01-16T19:14:12+0000", | ||
"model": null, | ||
"manufacturer": null, | ||
"room": "Irrigation", | ||
"capabilities": ["Actuator", "Switch", "Refresh"], | ||
"attributes": { "switch": "off", "dataType": "ENUM", "values": ["on", "off"] }, | ||
"commands": [{ "command": "off" }, { "command": "on" }, { "command": "refresh" }] | ||
} | ||
], | ||
"output": { | ||
"768": "on", | ||
"769": "off", | ||
"675": "off", | ||
"676": "off", | ||
"852": "off", | ||
"677": "off", | ||
"813": "off", | ||
"767": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters