Embedding evalink talos screens
Show an evalink talos screen, or the attachments of one alarm, inside another application, for example a customer portal.
What an embedded screen is
Some evalink talos screens have a second web address that shows the screen on its own, without the main menu and the top bar. Load that address in an iframe of your own web application, and your users see the live alarm queue, the list of sites or another screen inside your application.
An embedded screen is the real screen: it shows the same data and offers the same actions as in evalink talos. It shows one screen only. To show another screen, your application loads another address.
For the attachments of one alarm, such as photos and video clips, there is a separate, even smaller view. See Embed the attachments of an alarm.
Screens you can embed
Add the path to your evalink talos address.
| Path | Shows | Needs |
|---|---|---|
/alarms-embedded |
The Alarms screen: the queue and the workflows | UI:ViewAlarms |
/events-embedded |
The Events page | UI:ViewEvents |
/event-logs-embedded |
The Event Logs page. Add /<id> to open one entry. |
UI:ViewEventLogs |
/devices-embedded |
The Sites list | UI:ViewDevices |
/device-groups-embedded |
The Site Groups list | UI:ViewDevices |
/device-embedded/<site ID> |
The page of one site | UI:ViewDevices |
The permissions are part of the user's role. See Role permissions.
Embed a screen in your application
To embed a screen, you need access to the code of the application that shows it.
- Pick the path of the screen from the table.
- In your application, add an iframe whose address is your evalink talos address followed by that path.
- Make the iframe large enough for the panels that open on top of the screen, for example a site or a workflow.
When a user opens the page, the screen asks them to sign in to evalink talos if they aren't signed in yet. They then see the screen with their own permissions, in the company they work in.
What works inside an embedded screen
- Opening a site, a site group or a workflow from the screen works as in evalink talos. It opens on top of the embedded screen.
- The chat and the softphone work as in the full application. See How calls and chat work.
- The embedded Alarms screen shows no desktop notifications for new alarms. Your application is expected to handle notifications itself.
- There is no main menu, so users can't move to another screen from inside the iframe.
Embed the attachments of an alarm
The attachments view shows only the attachments of one alarm: photos, video clips, live camera, location, audio and links. It has no buttons, so nobody can act on the alarm from it.
- Find the alarm's ID. It is shown on the Overview tab of the alarm detail dialog. See Link to an alarm.
- Build the address: your evalink talos address, then
/alarm-attachments/<alarm ID>?access_token=<token>. The token is an access token of the evalink talos API that may read the alarm. See Authentication and API tokens. - If you like, add
&background_color=<color>and&color=<color>to match your page, for example#222andwhite. The defaults are white and black. - Load the address in an iframe.
The view needs no sign-in: the access token in the address gives it access. Attachments that arrive later, such as a video clip that finishes uploading, appear within 30 seconds.
Keep attachment links safe
Treat the full attachments address like a password. Anyone who has it can open the alarm's attachments, as long as the token is valid.
If the alarm ID or the token is missing, or the token isn't accepted, the view stays empty and shows no error. The address is read once when the view loads; to show another alarm or use a new token, load a new address.
Which attachments appear, and whether links play inline, follows the same rules as in the alarm detail dialog. See Alarm photos, videos and other attachments.