Data Graphing with Initial State?

Posted on
Sun Aug 14, 2016 8:27 am
exos offline
Posts: 57
Joined: Feb 02, 2016

Data Graphing with Initial State?

For those that haven't found 'Initial State', it's a pretty decent IOT data grapher/streamer. I used it while experimenting with Smartthings and I was pretty happy with it's ability to track and store data. Anyone have any tips or example projects that could be used to get our data to Initial state?

Posted on
Sun Aug 14, 2016 3:26 pm
exos offline
Posts: 57
Joined: Feb 02, 2016

Re: Data Graphing with Initial State?

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.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests