forked from anthonywebb/sprinkler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostman.json
1 lines (1 loc) · 9.87 KB
/
postman.json
1
{"id":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","name":"sprinkler","timestamp":1377319458569,"requests":[{"collectionId":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","id":"0df59294-f64a-4717-7f3f-71daee537ca9","name":"Program On","description":"Clear the queue and turn on a specific program, which contains and array of zones to process. NOTE: Use the index of the array returned in the config for the program ID, which is 0 based.","url":"localhost:8080/program/0/on","method":"GET","headers":"","data":"{\n \"webserver\": {\n \"host\": \"127.0.0.1\",\n \"port\": 8080\n },\n \"zones\": [\n {\"name\":\"Zone 1\",\"pin\":\"P9_11\"},\n {\"name\":\"Zone 2\",\"pin\":\"P9_13\"},\n {\"name\":\"Zone 3\",\"pin\":\"P9_15\"},\n {\"name\":\"Zone 4\",\"pin\":\"P9_17\"},\n {\"name\":\"Zone 5\",\"pin\":\"P9_21\"},\n {\"name\":\"Zone 6\",\"pin\":\"P9_23\"},\n {\"name\":\"Zone 7\",\"pin\":\"P9_25\"},\n {\"name\":\"Zone 8\",\"pin\":\"P9_27\"},\n {\"name\":\"Zone 9\",\"pin\":\"P9_28\"},\n {\"name\":\"Zone 10\",\"pin\":\"P9_26\"},\n {\"name\":\"Zone 11\",\"pin\":\"P9_24\"},\n {\"name\":\"Zone 12\",\"pin\":\"P9_22\"},\n {\"name\":\"Zone 13\",\"pin\":\"P9_18\"},\n {\"name\":\"Zone 14\",\"pin\":\"P9_16\"},\n {\"name\":\"Zone 15\",\"pin\":\"P9_14\"},\n {\"name\":\"Zone 16\",\"pin\":\"P9_12\"}\n ],\n \"zipcode\": \"83406\",\n \"timezone\": \"America/Boise\",\n \"rain\": \"P9_29\",\n \"button\": \"P9_30\",\n \"programs\": [\n {\n \"active\":true,\n \"name\":\"Program 1\",\n \"start\":\"01:41\",\n \"days\":[0,1,2,3,4,5,6],\n \"zones\":[\n {\"zone\":1,\"seconds\":15},\n {\"zone\":3,\"seconds\":10}\n ]\n }\n ]\n}","dataMode":"raw","timestamp":0,"version":2,"time":1377464622385},{"collectionId":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","id":"1f295521-1f58-4e3d-117b-43a958c0c579","name":"Config","description":"Config returns the entire configuration for the sprinkler system including all zones, programs, schedules, etc.","url":"localhost:8080/config","method":"GET","headers":"","data":[],"dataMode":"params","timestamp":0,"responses":[],"version":2},{"collectionId":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","id":"1ff8bb9b-1ebd-80a2-dabb-c8827893253a","name":"Config","description":"Post a new copy of the config, this will overwrite the existing config and be made effective immediately.","url":"localhost:8080/config","method":"POST","headers":"Content-Type: application/json\n","data":"{\n \"webserver\": {\n \"host\": \"127.0.0.1\",\n \"port\": 8080\n },\n \"zones\": [\n {\"name\":\"Zone 1\",\"pin\":\"P9_11\"},\n {\"name\":\"Zone 2\",\"pin\":\"P9_13\"},\n {\"name\":\"Zone 3\",\"pin\":\"P9_15\"},\n {\"name\":\"Zone 4\",\"pin\":\"P9_17\"},\n {\"name\":\"Zone 5\",\"pin\":\"P9_21\"},\n {\"name\":\"Zone 6\",\"pin\":\"P9_23\"},\n {\"name\":\"Zone 7\",\"pin\":\"P9_25\"},\n {\"name\":\"Zone 8\",\"pin\":\"P9_27\"},\n {\"name\":\"Zone 9\",\"pin\":\"P9_28\"},\n {\"name\":\"Zone 10\",\"pin\":\"P9_26\"},\n {\"name\":\"Zone 11\",\"pin\":\"P9_24\"},\n {\"name\":\"Zone 12\",\"pin\":\"P9_22\"},\n {\"name\":\"Zone 13\",\"pin\":\"P9_18\"},\n {\"name\":\"Zone 14\",\"pin\":\"P9_16\"},\n {\"name\":\"Zone 15\",\"pin\":\"P9_14\"},\n {\"name\":\"Zone 16\",\"pin\":\"P9_12\"}\n ],\n \"zipcode\": \"83406\",\n \"timezone\": \"America/Boise\",\n \"rain\": \"P9_29\",\n \"button\": \"P9_30\",\n \"programs\": [\n {\n \"active\":true,\n \"name\":\"Program 1\",\n \"start\":\"01:41\",\n \"days\":[0,1,2,3,4,5,6],\n \"zones\":[\n {\"zone\":1,\"seconds\":15},\n {\"zone\":3,\"seconds\":10}\n ]\n }\n ]\n}","dataMode":"raw","timestamp":0,"version":2,"time":1377330629787},{"collectionId":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","id":"2e089c2e-b1cd-8c03-880b-e6fc5283b111","name":"Off","description":"Turns off all zones and kills any further tasks that were in the queue.","url":"localhost:8080/off","method":"GET","headers":"","data":[],"dataMode":"params","timestamp":0,"responses":[],"version":2},{"collectionId":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","id":"6209dae6-f8f9-1e19-7e60-38eecf71b1ee","name":"Zone On","description":"Clear the queue and turn on a specific zone for a certain number of seconds. NOTE: Use the index of the array returned in the config for the program ID, which is 0 based.","url":"localhost:8080/zone/0/on/60","method":"GET","headers":"","data":"{\n \"webserver\": {\n \"host\": \"127.0.0.1\",\n \"port\": 8080\n },\n \"zones\": [\n {\"name\":\"Zone 1\",\"pin\":\"P9_11\"},\n {\"name\":\"Zone 2\",\"pin\":\"P9_13\"},\n {\"name\":\"Zone 3\",\"pin\":\"P9_15\"},\n {\"name\":\"Zone 4\",\"pin\":\"P9_17\"},\n {\"name\":\"Zone 5\",\"pin\":\"P9_21\"},\n {\"name\":\"Zone 6\",\"pin\":\"P9_23\"},\n {\"name\":\"Zone 7\",\"pin\":\"P9_25\"},\n {\"name\":\"Zone 8\",\"pin\":\"P9_27\"},\n {\"name\":\"Zone 9\",\"pin\":\"P9_28\"},\n {\"name\":\"Zone 10\",\"pin\":\"P9_26\"},\n {\"name\":\"Zone 11\",\"pin\":\"P9_24\"},\n {\"name\":\"Zone 12\",\"pin\":\"P9_22\"},\n {\"name\":\"Zone 13\",\"pin\":\"P9_18\"},\n {\"name\":\"Zone 14\",\"pin\":\"P9_16\"},\n {\"name\":\"Zone 15\",\"pin\":\"P9_14\"},\n {\"name\":\"Zone 16\",\"pin\":\"P9_12\"}\n ],\n \"zipcode\": \"83406\",\n \"timezone\": \"America/Boise\",\n \"rain\": \"P9_29\",\n \"button\": \"P9_30\",\n \"programs\": [\n {\n \"active\":true,\n \"name\":\"Program 1\",\n \"start\":\"01:41\",\n \"days\":[0,1,2,3,4,5,6],\n \"zones\":[\n {\"zone\":1,\"seconds\":15},\n {\"zone\":3,\"seconds\":10}\n ]\n }\n ]\n}","dataMode":"raw","timestamp":0,"version":2,"time":1377464617245},{"collectionId":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","id":"68fb8c90-2f3b-222a-c8c7-22dd4da85177","name":"Zone History","description":"This array contains all of the times this zone has ran for more than 60 seconds","url":"localhost:8080/zone/0/history","method":"GET","headers":"","data":"{\n \"webserver\": {\n \"host\": \"127.0.0.1\",\n \"port\": 8080\n },\n \"zones\": [\n {\"name\":\"Zone 1\",\"pin\":\"P9_11\"},\n {\"name\":\"Zone 2\",\"pin\":\"P9_13\"},\n {\"name\":\"Zone 3\",\"pin\":\"P9_15\"},\n {\"name\":\"Zone 4\",\"pin\":\"P9_17\"},\n {\"name\":\"Zone 5\",\"pin\":\"P9_21\"},\n {\"name\":\"Zone 6\",\"pin\":\"P9_23\"},\n {\"name\":\"Zone 7\",\"pin\":\"P9_25\"},\n {\"name\":\"Zone 8\",\"pin\":\"P9_27\"},\n {\"name\":\"Zone 9\",\"pin\":\"P9_28\"},\n {\"name\":\"Zone 10\",\"pin\":\"P9_26\"},\n {\"name\":\"Zone 11\",\"pin\":\"P9_24\"},\n {\"name\":\"Zone 12\",\"pin\":\"P9_22\"},\n {\"name\":\"Zone 13\",\"pin\":\"P9_18\"},\n {\"name\":\"Zone 14\",\"pin\":\"P9_16\"},\n {\"name\":\"Zone 15\",\"pin\":\"P9_14\"},\n {\"name\":\"Zone 16\",\"pin\":\"P9_12\"}\n ],\n \"zipcode\": \"83406\",\n \"timezone\": \"America/Boise\",\n \"rain\": \"P9_29\",\n \"button\": \"P9_30\",\n \"programs\": [\n {\n \"active\":true,\n \"name\":\"Program 1\",\n \"start\":\"01:41\",\n \"days\":[0,1,2,3,4,5,6],\n \"zones\":[\n {\"zone\":1,\"seconds\":15},\n {\"zone\":3,\"seconds\":10}\n ]\n }\n ]\n}","dataMode":"raw","timestamp":0,"responses":[],"version":2},{"collectionId":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","id":"e5d7fa5e-9994-d389-96e9-b223f65dd19f","name":"Status","description":"Get a system status. Returned values are \"running\" and \"queue\", running represents the currently running zones (if any) and the queue represents the list (in order) or zones that are set to run.","url":"localhost:8080/status","method":"GET","headers":"","data":[],"dataMode":"params","timestamp":0,"responses":[],"version":2},{"collectionId":"c0449c2f-39fa-b4fc-ae6c-ab8dc064b882","id":"f636b769-626f-aefd-08a6-87de00c7cc27","name":"History","description":"This array contains all of the times this sprinkler controller has run across all time","url":"localhost:8080/history","method":"GET","headers":"","data":"{\n \"webserver\": {\n \"host\": \"127.0.0.1\",\n \"port\": 8080\n },\n \"zones\": [\n {\"name\":\"Zone 1\",\"pin\":\"P9_11\"},\n {\"name\":\"Zone 2\",\"pin\":\"P9_13\"},\n {\"name\":\"Zone 3\",\"pin\":\"P9_15\"},\n {\"name\":\"Zone 4\",\"pin\":\"P9_17\"},\n {\"name\":\"Zone 5\",\"pin\":\"P9_21\"},\n {\"name\":\"Zone 6\",\"pin\":\"P9_23\"},\n {\"name\":\"Zone 7\",\"pin\":\"P9_25\"},\n {\"name\":\"Zone 8\",\"pin\":\"P9_27\"},\n {\"name\":\"Zone 9\",\"pin\":\"P9_28\"},\n {\"name\":\"Zone 10\",\"pin\":\"P9_26\"},\n {\"name\":\"Zone 11\",\"pin\":\"P9_24\"},\n {\"name\":\"Zone 12\",\"pin\":\"P9_22\"},\n {\"name\":\"Zone 13\",\"pin\":\"P9_18\"},\n {\"name\":\"Zone 14\",\"pin\":\"P9_16\"},\n {\"name\":\"Zone 15\",\"pin\":\"P9_14\"},\n {\"name\":\"Zone 16\",\"pin\":\"P9_12\"}\n ],\n \"zipcode\": \"83406\",\n \"timezone\": \"America/Boise\",\n \"rain\": \"P9_29\",\n \"button\": \"P9_30\",\n \"programs\": [\n {\n \"active\":true,\n \"name\":\"Program 1\",\n \"start\":\"01:41\",\n \"days\":[0,1,2,3,4,5,6],\n \"zones\":[\n {\"zone\":1,\"seconds\":15},\n {\"zone\":3,\"seconds\":10}\n ]\n }\n ]\n}","dataMode":"raw","timestamp":0,"responses":[],"version":2}]}