merged and made some slight adjustments

This commit is contained in:
David Sulpy
2015-09-11 10:37:26 -05:00

View File

@@ -102,9 +102,6 @@ def subscribeToEvents() {
if (contacts != null) { if (contacts != null) {
subscribe(contacts, "contact", genericHandler) subscribe(contacts, "contact", genericHandler)
} }
if (doorsControllers != null) {
subscribe(doorsControllers, "door", genericHandler)
}
if (energyMeters != null) { if (energyMeters != null) {
subscribe(energyMeters, "energy", genericHandler) subscribe(energyMeters, "energy", genericHandler)
} }
@@ -182,7 +179,6 @@ def getAccessKey() {
httpError(404, "Access Key Not Found") httpError(404, "Access Key Not Found")
} else { } else {
[ [
grokerRootUrl: atomicState.grokerRootUrl,
accessKey: atomicState.accessKey accessKey: atomicState.accessKey
] ]
} }
@@ -275,8 +271,7 @@ def createBucket() {
uri: "https://${atomicState.grokerSubdomain}.initialstate.com/api/buckets", uri: "https://${atomicState.grokerSubdomain}.initialstate.com/api/buckets",
headers: [ headers: [
"Content-Type": "application/json", "Content-Type": "application/json",
"X-IS-AccessKey": accessKey, "X-IS-AccessKey": accessKey
"Accept-Version": "0.0.1"
], ],
body: bucketCreateBody body: bucketCreateBody
] ]