Freeboard Error

Hi.

I try to recreate this project and followed the steps, but when i test the Push Monitor in api explorer it appears inactive, and from there on i can’t run the Freeboard app.
Can anybody gave me advice where could i be wrong?
https://www.digi.com/resources/documentation/digidocs/pdfs/90002251.pdf

Those are the steps i make

1.Create a Push Monitor in api explorer digi manager

DataPoint/dia/channel/00000000-00000000-00409DFF-FF6BA6D5/router/temperature
http
https://dweet.io/dweet/for/00000000-00000000-00409DFF-FF6BA6D5-router-temperature monTransportUrl>
json
1
none
1
POST

https://dweet.io/get/dweets/for/00000000-00000000-00409DFF-FF5C525A-router-temperature

  1. Test the Push Monitor in api explorer digi manager

2
0
2
1000
0

765614
22067
2019-07-05T13:39:34.827Z
2019-06-25T09:50:45.890Z
DeviceCore
tcp
http://fakehost/dashboard/fakeendpoint
json
1000
zlib
INACTIVE
1
DHD session cache: 4e46dd92461e92c6aee1d363ec1795c7
false
explicit


850502
22067
2020-04-22T12:08:26.583Z
2019-10-19T14:07:30.623Z
DeviceCore
tcp
http://fakehost/dashboard/fakeendpoint
json
1000
zlib
INACTIVE
1
DHD session cache: a348a17d470f80878f657093b00dbf27
false
explicit
  1. Perform a GET to https://dweet.io/get/dweets/for/00000000-00000000-00409DFF-FF5C525A-router-temperature to get the last five data points.
    {“this”:“failed”,“with”:404,“because”:“we couldn’t find this”}

Can i upload files in this forum?

The Monitor you attempted to create in step 1 is not displayed in step 2. Be sure you have the path set to /ws/Monitor, the HTTP method set to POST, the content in the edit box, and then select the Send button. The response should display to the right and verify it has a 200 HTTP response code.

It doesn’t look like you created any monitor, so I think you made a mistake on step 1.
You have to POST that payload in the API explorer or using your favorite Web service API tool.
Also I notice that the payload has a few extra spaces in it so take care to look for errors when you post the payload to create the first monitor.

In step 2:
The monitors that you’re showing are internal monitors (used by the dashboard) to process changes to devices and are not one created manually by you.

According to the pdf, step 2 shows the results, that the monitor is active ( active),
but in my case is not ( INACTIVE), so it is different from the monitor in step 1.

My path is set to /ws/Monitor.

According to the pdf, the HTTP method had to be set to GET (i try the POST method too, but also received error).

I coped the code for the monitor in step 1, according to the pdf, and changed only the router MAC in it.

According to the pdf, the HTTP method had to be set to GET (i try the POST method too, but also received error).

I’ll check the extra spaces.

Yes, according to the pdf, step 2 shows the results, that the monitor is active ( active),
but in my case is not ( INACTIVE).

I put together a few things that might help you out along with some screenshots of a working setup.
Take a look at https://docs.google.com/document/d/e/2PACX-1vTgA5avBBK3cLfhQjvXcT49tW1kaIvBM9ef_fOyKoDJI2IRiyB3dTPetOgQ-GAhTk-0Db40zpxZkNYz/pub

Thank you very much !

Hi, i can’t listen to requests for my thing, by using curl on a MacOS or linux command line, because i use Win 7, and in CMD this command (curl --raw https://dweet.io/listen/for/dweets/from/{thing}) is unrecognisable. So what i have to do?

You might want to do a web search for online Web API clients. https://www.postman.com/ is popular. Alternatively, search for Windows PowerShell documentation. Use the PowerShell Invoke-RestMethod command to run HTTP APIs from your windows command line using PowerShell.

Hi, in PowerShell i receive, that the ‘‘curl’’ command is not recognized and i can’t proceed. Any help?

Every tool does web APIs a bit different. In powershell the command to call a web API is “Invoke-RestMethod”. You’ll have to do some searching on the syntax because its quite different than the way you do it in curl.
Here is the microsoft documentation on the Invoke-RestMethod API. https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7.1

I try the command ‘‘Invoke-RestMethod’’ and ‘‘Invoke-WebRequest’’, but in PowerShell the commands is also unrecognizable. Any help?

I’ve noticed that in digi remote manager- event log i receive messages with url address from the Digi cloud kit. So, i try to use this address in Freeboard (with JSON data source), in order to obtain sensor data, directly from the https://xbeegateway.herokuapp.com/api/monitor , but i don’t receive no data. Is my idea possible?

I’m not a powershell user so I don’t have any advice on that. Perhaps try another Web API client that you’re more familiar with.

I update the PowerShell and now, when i use curl https://dweet.io/listen/for/dweets/from/thing name i’ve got ‘’‘request time out’’ response and i can’t get the ‘‘listen’’ response. Any help?