{"action":"created","issue":{"url":"https://api.github.com/repos/joshbaird/MoistureSensingSprinkler/issues/1","labels_url":"https://api.github.com/repos/joshbaird/MoistureSensingSprinkler/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/joshbaird/MoistureSensingSprinkler/issues/1/comments","events_url":"https://api.github.com/repos/joshbaird/MoistureSensingSprinkler/issues/1/events","html_url":"https://github.com/joshbaird/MoistureSensingSprinkler/issues/1","id":69003211,"number":1,"title":"Decide JSON object structure","user":{"login":"joshbaird","id":5050145,"avatar_url":"https://avatars.githubusercontent.com/u/5050145?v=3","gravatar_id":"","url":"https://api.github.com/users/joshbaird","html_url":"https://github.com/joshbaird","followers_url":"https://api.github.com/users/joshbaird/followers","following_url":"https://api.github.com/users/joshbaird/following{/other_user}","gists_url":"https://api.github.com/users/joshbaird/gists{/gist_id}","starred_url":"https://api.github.com/users/joshbaird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshbaird/subscriptions","organizations_url":"https://api.github.com/users/joshbaird/orgs","repos_url":"https://api.github.com/users/joshbaird/repos","events_url":"https://api.github.com/users/joshbaird/events{/privacy}","received_events_url":"https://api.github.com/users/joshbaird/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joshbaird/MoistureSensingSprinkler/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-16T20:27:36Z","updated_at":"2015-04-17T17:15:36Z","closed_at":null,"body":"Need to come up with the params and fields for the JSON Object to store in Mongo:\r\nIll start with this:\r\n{\r\n    \"address\" : \"string\",\r\n    \"turnOnMoisture\" : \"string\",\r\n    \"turnOffMoisture\" : \"string\",\r\n    \"moistureHistory\" : [ { \"dateTime\" : \"string\", \"value\": \"string\", {},{} ],\r\n    \"turnOnLight\" : \"string\",\r\n    \"turnOffLight\" : \"string\",\r\n    \"LightHistory\" : [ { \"dateTime\" : \"string\", \"value\": \"string\", {},{} ],\r\n    \"turnOnTemp\" : \"string\",\r\n    \"turnOffTemp\" : \"string\",\r\n    \"tempHistory\" : [ { \"dateTime\" : \"string\", \"value\": \"string\", {},{} ],\r\n    \"turnOnTime\" : \"string\",\r\n    \"turnOffTime\" : \"string\"\r\n}\r\n\r\nCan anyone think of anything else?"},"comment":{"url":"https://api.github.com/repos/joshbaird/MoistureSensingSprinkler/issues/comments/94030000","html_url":"https://github.com/joshbaird/MoistureSensingSprinkler/issues/1#issuecomment-94030000","issue_url":"https://api.github.com/repos/joshbaird/MoistureSensingSprinkler/issues/1","id":94030000,"user":{"login":"bdcannon","id":1226524,"avatar_url":"https://avatars.githubusercontent.com/u/1226524?v=3","gravatar_id":"","url":"https://api.github.com/users/bdcannon","html_url":"https://github.com/bdcannon","followers_url":"https://api.github.com/users/bdcannon/followers","following_url":"https://api.github.com/users/bdcannon/following{/other_user}","gists_url":"https://api.github.com/users/bdcannon/gists{/gist_id}","starred_url":"https://api.github.com/users/bdcannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdcannon/subscriptions","organizations_url":"https://api.github.com/users/bdcannon/orgs","repos_url":"https://api.github.com/users/bdcannon/repos","events_url":"https://api.github.com/users/bdcannon/events{/privacy}","received_events_url":"https://api.github.com/users/bdcannon/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T17:15:36Z","updated_at":"2015-04-17T17:15:36Z","body":"The json format needs \"unique\" id to handle duplicates \r\n```javascript\r\n{\r\n  \"sensorId\" : \"string\", \r\n  \"address\" : \"string\",\r\n  \"turnOnMoisture\" : \"string\",\r\n  \"turnOffMoisture\" : \"string\",\r\n  \"moistureHistory\" : [ { \"dateTime\" : \"string\", \"value\": \"string\", {},{} ],\r\n  \"turnOnLight\" : \"string\",\r\n  \"turnOffLight\" : \"string\",\r\n  \"LightHistory\" : [ { \"dateTime\" : \"string\", \"value\": \"string\", {},{} ],\r\n  \"turnOnTemp\" : \"string\",\r\n  \"turnOffTemp\" : \"string\",\r\n  \"tempHistory\" : [ { \"dateTime\" : \"string\", \"value\": \"string\", {},{} ],\r\n  \"turnOnTime\" : \"string\",\r\n  \"turnOffTime\" : \"string\"\r\n}\r\n```"}}