Bookmarks integration via HTTP request
AnsweredHow should I configure my HTTP request so that Wave associates the values we send as Tags?
This is an example of the HTTP we send ...
-
Hello Raúl,
could you please give more details on your case? Do you use generic events to trigger any action in addition to create a bookmark?
At the moment it isn’t possible to pass the value for tags for bookmark by triggering generic events. In general, you can use /ec2/bookmarks/add API call to create a bookmark without triggering generic event. Check my example below:
http://192.168.0.8:7001/ec2/bookmarks/add?guid=18c44b39-6e56-450d-81b1-4706fa058531&startTimeMs=1603977190000&durationMs=20000&name=milesight&cameraId=1612b3499-71be-4044-256f-a0be1171bdb1&tag=matricula:1112BHT,marca:Fiat,modelo:Rumbo,color:Blanco,tipo:Furgoneta
Please pay attention to guid parameter. It should be unique for each bookmark and you'll have to generate it in your code.
-
No, I only create generic events to create a marker every time I detect the registration of a vehicle.
I have tried the url that you have given me but it returns the following error: {"error":"1","errorString":"Missing parameter(s) or invalid parameter values"}
Could you check the url you have given me?
Thank you
-
Try this one :
http://192.168.0.8:7001/ec2/bookmarks/add?guid=18c44b39-6e56-450d-81b1-4706fa058533&startTimeMs=1603977190000&durationMs=20000&name=milesight&cameraId=1612b3499-71be-4044-256f-a0be1171bdb1&tag=matricula:1112BHT,marca:Fiat,modelo:Rumbo,color:Blanco,tipo:Furgoneta
It seems previous link had wrong cameraID. If you'll receive error bellow:
{"error":"3","errorString":"Can't add bookmark"}
It would mean that bookmark with provided guid already exists, so you'll have to change guid parameter in your request.
-
You can use third-party modules/packages for this. For example, if you're using NodeJs, you can use UUID package - https://www.npmjs.com/package/uuid
If you need few UUIDs for manual testing, you can use an online generator tool like this - https://www.guidgenerator.com -
I'm trying this request: http://192.168.0.8:7001/ec2/bookmarks/add?guid=c2eadfa5-6480-418c-b86b-49998b39cbcd&startTimeMs=1603977190000&durationMs=20000&name=milesight&cameraId=612b3499-71be-4044-256f-a0be1171bdb1&marca:Fiat,modelo:Rumbo,color:Blanco,tipo:Furgoneta but it returns next error:
{"error":"1","errorString":"Missing parameter(s) or invalid parameter values"}
What parameter am I missing?
-
I see 'tag=' sub-string is missing at the end of the request, but it shouldn't be an issue. I've copy-pasted your example, replaced server IP and cameraId values with mine and it worked at my end. Could you please verify cameraId value at your end?
Try executing request http://192.168.0.8:7001/ec2/getCamerasEx?id=612b3499-71be-4044-256f-a0be1171bdb1 . Would it return camera's parameters?
-
Hi Raúl, would it be possible to provide me with remote access to your system via TeamViewer? I don't see what's wrong with your request as it works on my test system, so having remote access will help us to move forward. I suggest we switch to support ticket so that you'll be able to send me remote access details securely. Would it be okay for you?
-
Hi Anton,
Sorry for not reply but I have been very busy during last month. I would like open again the support ticket because I haven't resolved the issue.
The next week I will have time for resolve the problem with you, could you tell me what day can you? And tell me, how I can send you my teamviewer credentials. -
Hi Raúl Colomer,
Anton is enjoying his holiday this week, but next week he should be back. I'll reopen the ticket (#24424) for you, and you can continue the conversation there with Anton Babinov.
Please sign in to leave a comment.
Comments
20 comments