OK folks small update. I'm thinking of sending a curl command to send variable and device state to Initial State in order to allow graphing. I have never used the restful API before. I am using the examples at initial state's restful api site. How would I integrate with this example in order to send the data?
curl --include \
--request POST \
--header "Content-Type: application/json" \
--header "X-IS-AccessKey: YOUR_KEY" \
--header "X-IS-BucketKey: curl_example_bucket" \
--header "Accept-Version: 0.0.1" \
--data-binary "[
{
\"key\": \"temperature\",
\"value\": \"22.2\"
},
{
\"key\": \"power\",
\"value\": \"6\"
},
{
\"key\": \"status\",
\"value\": \":thumbsup:\"
},
{
\"key\": \"current\",
\"value\": \"156\"
},
{
\"key\": \"door\",
\"value\": \"open\"
}
]" \
'https://groker.initialstate.com/api/events'
I know I can reach the device from here:
http://localhost/devices/KingdomBee.html I also have a list of the items under the "KingdomBee". How would I write that restful address and then how would it be inserted into the above example? When I put the address in with what I thought would work for the device it simply displayed the localhost address at initial state. When I removed the "" it failed.