Hello All, Newbie question incoming...
I have a Monitor One reading a sensor, and according to the Event log the reads are successful. I'm attempting to publish the events to Datacake. Datacake says it's not getting anything:
The Particle Integrations summary page says the POSTing is happening:
How does one debug this, everything appears to be working, except it's not?
Suggestions welcome.
Steve
Datacake seems to actually have a native Particle integration. Could you try configuring the integration from the Datacake side as described in their documentation?
Hello Eric,
Thank you for answering.
Yes the instructions were followed. Note that after the Device was created in Datacake using the Particle CLI generated access key, the correct device in my Particle Product was populated, note the serial number in my Datacake dashboard:
And here's the serial number in Particle:
Apparently the access key was generated correctly. Datacake knows that the device was instantiated by Particle. Particle says that events are occuring. It appears that everything is working. Except that it's not....
My question was, how to troubleshoot this??
Hi, if you "view details" on the integration, and scroll down, you can see the request sent by particle, can you check that and see that is going where it is supposed to?
Hey Gus,
When you said "view details", did you mean "View integration"? If so then is this the correct destination:
One more thing, the Particle doc for the Modbus/Monitor One demo was apparently written prior to when the Datacake builder function was available. The doc was never updated, still shows a generic webhook procedure. This is a screen grab from the Modbus/Monitor One document:
Note that the Request Format field is Web Form, not JSON.
This is the detail of the integration built with the new (??) Datacake integration builder:
(image embedded in next post, 2 item limit for new user)
Note that the Request Format field was JSON, if I change it to Web Form, then the "Save" button is disabled, changing this field is not possible.
The default settings apparently don't work. The settings can't be changed (?). Datacake says it's not receiving anything from Particle.
Is the Datacake integration feature broken? Should I start over with a manually created webhook?
Thank you,
Steve
Hey Steve, I meant there:
In the view details page, you can scroll down and find the logs:
The logs, if you open for one particular request, will show you more info about the request, and teh response as well.
Best,
1 Like
Gus,
I found an event in the log which was triggered from a modbus event. The detail shows the error returned by Datacake:
Thank you,
Steve
good, so you have more information now, the response was "device not found".
You might need to check what is going on with that. (I am not familiar with Datacake).
Maybe @simmikolon might help?
1 Like
@ses_wellstat my guess would be that there is something wrong with the Datacake configuration. Maybe deleting the workspace and retrying the configuration steps will shed some light?
I deleted the Particle device in the Datacake workspace, then installed it again. No change. Then I did it one more time, this time with a paid account. The previous attempts were using a free demo account. No change in symptoms.
Particle says the events are POSTing. Datacake reports to Particle that the device can't be found when the POST occurs. The device was instantiated by Datacake using an access key supplied by Particle, and the device found during that process has the correct serial number. No errors occur when a new device is added in Datacake, and no information about the Particle device is available except the serial number, which is correct.
I could not find an answer to my question about the report format, just assuming that JSON is ok.
Guys, this integration process isn't working. Any ideas?
Thank you,
Steve
I would try validating everything with the docs as Eric mentioned above:
There is also a datacake discord server:
1 Like
Hi @ses_wellstat I followed the instructions from the modbus configuration tutorial and created a new integration in your account from my admin view. It looks like I was able to get a successful response. Can you check the Datacake view on your end?
1 Like
SOLVED:
Thanks to @ericpietrowicz for sleuthing this out:
When building an Integration in the Particle Dashboard, first navigate to a Product, then the Device within the Product, then use the left side flyout menu Cloud Services, Integrations. When the Integration is built the scope of the integration will be applied to the correct device.
If your landing page is the Sandbox and you immediately navigate to Cloud Services, Integrations, then build the Integration from there the integration will not apply correctly to the intended device and Datacake will respond to any events POSTed with a "device not found" error visible in the Particle Event Log and Datacake will not see any events in the Debug tab.
Everything is working well now.
Happy New Year everyone!
1 Like