Integrate external API in dashboard

Hello Team Helical,

I am using Helical Insight 3.1 enterprise version. How to call external API like for example weather API in a Dashboard?

Thank You

1 Like

Hello Riwim,

You can right click and add a text component / image component and keep its content blank or via dashboard objects you will have the option of adding an HTML component. If you have added an image or text component right click on it and go to HTML portion. Over there you can write HTML code for invoking an iframe inside which you can call that weather API via src tag.

Thank You
Team Helical

Note: in certain cases you might not be able to save the dashboard. This might be happening because of the following reasons
a. cross origin issue
b. HTTP to HTTPS and vice versa
c. The API or website you are integrating might not be allowing to embed

Workaround: One of the workaround you can do is you can create a webpage inside which you would can call that external API. Then you can save this file in this folder “C:\Program Files\Helical Insight\hi\apache-tomcat-7\webapps\examples”

Then this file you can call within your dashboard like mentioned in the previous post by this syntax
<iframe src= "http://localhost:8081/examples/index2.html"/> (assuming you have saved that with the file name index2.html)

Now since the call is happening to a localhost file the dashboard will be getting saved.