Link to camera in app
In ProgressHello everyone,
As a part of my home automation setup, I've configured notifications to alert me whenever someone presses my front doorbell button.
I'm interested in enhancing these notifications by including a link that allows me to directly access the camera within the app on Android, PC, or Mac.
I've attempted to follow the instructions provided in this guide: link, but it seems to be outdated. The guide mentions authentication mechanisms that have been deprecated since version 5.0.
Additionally, I'm cautious about including a Bearer Token in the link, as it might grant access to my system without authentication to anyone who has the link.
Is it feasible to create a URL that opens the camera in the client and allows the client to handle authentication? For instance, if the client is already authenticated, it would instantly open the camera, or prompt for a username and password if not authenticated.
Thank you.
-
Hello,
The article you've mention is exactly the guide you need. It gives valid instruction.
It's indeed not up to date and several new features need to be described there.
What you want to make it working is creating an account with digest authorization scheme.
See the "three points option" in the screenshot.
-
Here is the paragraph explaining in detail the question you're asking.
{access_key}: An access key is used in the general format to authenticate the URL and gain access to the system without manually logging in. The access key is placed after
?auth=
; without it, the link would just open an “incorrect username/password” dialog box in the client. A ‘permanent' access key doesn't expire and doesn’t change unless the original login information changes. However, if you are using the cloud domain in the URL, you must create an access key based on your cloud login information. If using serverip:port, then use the server login.So, you can have a link to a specific camera without the auth parameter.
For openning a specific camera see the "How to open specific cameras?" section.
-
I've created 2 links (removed actual id/url to stop crawler from scraping my details).
<a href="nx-vms://nxvms.com/client/****/view?resources=2239b420-9cfc-0b0f-21eb-46876ebaa1e0">url</a></br><a href="nx-vms://nxvms.com/client/****/view?resources=2239b420-9cfc-0b0f-21eb-46876ebaa1e0">client-id</a>The client-id works on the my adroid client (not the URL) video.
Both do not work on my mac client. videoThe client replies with an error message saying I'm not authorized ... altough the client is connected to the cloud account.
Thanks
-
Sorry for the delay .
I've tried with the latest version of server and client. 5.1.1.37512
Also I've noticed that on the mobile app the camera is open properly but I can not use the 2 way audio.
It works fine if I open the camera by using the normal tap interaction, but If I access the camera with the link the 2 way audio doesn't work.
Please sign in to leave a comment.
Comments
6 comments