Webhook and InitialState Compatibility

Hello Guys…I am trying to send data to initialstate.com site every 10 seconds using a web hook connected to V1. I can see V1 data in my Serial Monitor.

I have tried to paste this url directly in a browser and it works fine,

https://groker.initialstate.com/api/events?accessKey=…&bucketKey=weight1&weight1=5

I am attaching a screen shot of my web hook settings and my URL I am using in the web hook.

https://groker.initialstate.com/api/events?accessKey=…&bucketKey=weight1&weight1=/pin/

Any suggestions? Thanks.

Hello.

In case you use url from browser and it works your request is GET and not POST.

Thanks Dmitriy. I have tried GET and don’t see any data on initialstate.

I will post this issue on initialstate’s support aswell. Before I do that, is there a log that I can see any failure/reject responses from initialstate?

Thanks.

Now you have to check if V1 is actually triggered.

Thanks. I know V1 is getting triggered as I have V1 tied to a labeled value widget aswell. See attached image.

Hello Dmitriy- Any more suggestions? In the mean time, I have submitted a question on initialstate.com support page aswell.

I did a requestbin capture of the http GET and POST. I see the pin value in the URL but the size is 0 bytes. Is this helpful?

Hello Folks,

Did exchange some notes with initial state support team. Based on their feedback, they recommend to use the JSON body option to encode the data like this:

http://docs.initialstateeventsapi.apiary.io/#reference/event-data/events-json

In my example, using JSON options for web hook, the body should look like this for one data point that I was sending to initial state:

{“key”: “weight1”, “value”: “/pin/” }

Is this something you folks can support going forward for users like me trying to use initialstate.com?

Thanks.

Hello. Yes. This is supported.

I am having no luck. Can I request you to take a look at initialstate API documentation to see if the current configuration options will meet their API?

http://docs.initialstateeventsapi.apiary.io/#reference/event-data/events-json