Skip to content

Commit 337b777

Browse files
Merge branch 'embed-webpage-dashboard' of github.com:FlowFuse/website into embed-webpage-dashboard
2 parents 35d7033 + 6f14fa1 commit 337b777

7 files changed

Lines changed: 51 additions & 68 deletions
Lines changed: 51 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: "How to Embed Webpages in the FlowFuse Dashboard"
3-
subtitle: Learn how to easily embed external content like maps, reports, and widgets into your FlowFuse dashboard.
4-
description: Learn how to embed external webpages such as maps, reports, and widgets into your FlowFuse dashboard. Follow this guide for easy, step-by-step instructions on improving your dashboard's functionality and collaboration.
2+
title: "How to Embed Webpages on the FlowFuse Dashboard"
3+
subtitle: Learn how to embed external content like maps, reports, and widgets onto your FlowFuse dashboard.
4+
description: Learn how to embed external web pages such as maps, reports, and widgets onto your FlowFuse dashboard. Follow this guide for easy, step-by-step instructions on improving your dashboard's functionality and collaboration.
55
date: 2025-05-14
66
authors: ["sumit-shinde"]
77
image:
@@ -10,53 +10,53 @@ tags:
1010
- flowfuse
1111
---
1212

13-
When building a dashboard in FlowFuse, it’s not just about displaying internal data it’s about centralizing all the resources your team needs. FlowFuse makes it easy to embed external content like live dashboards, maps, PDFs, and videos directly into your dashboard. This helps eliminate switching between tabs and keeps everything in one place. In this guide, we’ll show you how to embed these elements seamlessly into your FlowFuse dashboard for a more efficient and collaborative workspace.
13+
When you build a dashboard, sometimes you need more than just internal data. Maybe it’s a live map, a report hosted elsewhere, or another dashboard — whatever it is, having to switch tabs breaks the flow. FlowFuse lets you embed external content like web pages, dashboards, PDFs, and widgets right into your dashboard. This guide shows you how to do exactly that — step by step — so your team has everything they need, all in one place.
1414

1515
<!--more-->
1616

1717
## Why Embed Webpages in Your Dashboard?
1818

19-
- Less Switching: No more jumping between tabs or apps. Everything you need is right in front of you.
19+
Embedding external content directly into your FlowFuse dashboard can make your life a lot easier. Here’s why it’s worth considering:
2020

21-
- Use What You Already Have: If you’ve already built a chart, report, or page somewhere else, just embed it—no need to recreate it.
21+
- **Streamline Your Workflow:** No more hopping between tabs or switching apps. Everything you need can be in one place.
22+
23+
- **Save Time on Rework:** If you’ve already built a report, chart, or page somewhere else, just embed it into your dashboard. No need to start from scratch.
24+
25+
- **Quick Decisions:** Having all your key data together helps you see what’s important at a glance and act faster.
2226

23-
- Faster Decisions: With all your important information in one place, it's easier to understand what’s happening and act quickly.
24-
25-
- Keep Everyone on the Same Page: A shared dashboard ensures your whole team is looking at the same data and updates.
26-
27-
- Save Time, Every Day: Fewer clicks and less back-and-forth means more focus and better use of your time.
27+
- **Cut Down on Clicks:** The fewer actions needed to get to your information, the more time you can spend on actually getting things done.
2828

2929
## How to Embed Webpages On your FlowFuse Dashboard
3030

31-
Embedding external content into your FlowFuse dashboard is simple and straighforward.
31+
Embedding external content into your FlowFuse dashboard is straightforward and flexible. In this section, you'll learn two ways to do it: using a direct URL and using embed code. We’ll also cover common issues you might face and how to fix them. Lastly, you'll see how to embed one FlowFuse dashboard inside another, making it easier to centralize important views in one place.
3232

33-
### Prequastie.
33+
### Prerequisites
3434

35-
Before you begin embedding webpages on FlowFuse Dashboard make sure you have the following:
35+
Before you begin embedding webpages on FlowFuse Dashboard, make sure you have the following:
3636

3737
- **Running FlowFuse Instance:** Make sure you have a FlowFuse instance set up and running. If you don't have an account, check out our [free trial](https://app.flowfuse.com/account/create).
3838
- **FlowFuse Dashboard:** Ensure you have [FlowFuse Dashboard](https://flows.nodered.org/node/@flowfuse/node-red-dashboard) (also known as Node-RED Dashboard 2.0 in the community) installed and properly configured on your instance.
39-
- **@flowfuse/node-red-dashboard-2-ui-iframe:** Ensure you have [node-red-contrib-sqlite](https://flows.nodered.org/node/@flowfuse/node-red-dashboard-2-ui-iframe) installed.
39+
- **@flowfuse/node-red-dashboard-2-ui-iframe:** Ensure you have [node-red-dashboard-2-ui-iframe](https://flows.nodered.org/node/@flowfuse/node-red-dashboard-2-ui-iframe) installed.
4040

4141
#### Step 1: Obtain the URL or Embed Code of the Webpage You Want to Embed
4242

43-
The first step is identifying and grabbing the URL of the webpage or external content you want to embed into your FlowFuse dashboard. This could be a live dashboard, report, Google Map, video, or any other type of content.
43+
The first step is identifying and grabbing the URL of the webpage or external content you want to embed into your FlowFuse dashboard. This could be a live dashboard, report, Google Maps, video, or any other type of content.
4444

45-
When embedding content from third-party sources, make sure the following conditions the page or content you're embedding should be publicly accessible or have the proper permissions for embedding. For example, private reports or webpages might require login credentials or an API key, which should be handled securely.
45+
When embedding content from third-party sources, make sure the following conditions the page or content you're embedding should be publicly accessible or have the proper permissions for embedding. For example, private reports or webpages require login credentials or an API key, which should be handled securely.
4646

47-
Some websites may restrict embedding through iframes due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS) policies. If the content doesn’t load properly, check whether the external site allows embedding.
47+
Some websites may restrict embedding through iframes due to [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS) policies. Check whether the external site allows embedding if the content doesn’t load properly.
4848

49-
Many platforms, such as YouTube and Google Maps, provide a specific "embed code or URL" that’s more suitable for embedding. Ensure that you’re using the correct embed link or code provided by these platforms to guarantee smooth integration.
49+
Many platforms, such as YouTube and Google Maps, provide a specific "embed code or URL" that is more suitable for embedding. Ensure you use the correct embed link or code these platforms offer to guarantee smooth integration.
5050

51-
Once you have the URL (or embed code) ready, move on to the next step.
51+
Once the URL or embed code is ready, move on to the next step.
5252

53-
#### Step 2: Embedding the Webpage in FlowFuse Dashboard
53+
#### Step 2: Embedding the Webpage on FlowFuse Dashboard
5454

5555
Now that you’ve gathered the URL or embed code for the external content you want to embed, it’s time to add it to your FlowFuse dashboard. Below are two methods for embedding external content:
5656

5757
##### 2.1 Embed via URL
5858

59-
The easiest and most straightforward way to embed external content is by using the URL. FlowFuse's ui_iframe node allows you to directly use an external URL. Here’s how to do it:
59+
The easiest and most straightforward way to embed external content is by using the URL. FlowFuse's iframe node allows you to use an external URL directly. Here’s how to do it:
6060

6161
1. Drag the ui_iframe widget onto the canvas.
6262
2. Double-click the widget to open its configuration dialog.
@@ -69,39 +69,25 @@ _iframe widget configuration_
6969

7070
3. Click Done and then Deploy.
7171

72-
For quick testing, you can use the weather widget, Google Map embedded URL, or the PDF URL. Below, I’ve included an image of a dashboard with the weather widget, Google Map, and PDF embedded.
73-
74-
<div style="display: flex; justify-content: space-around; align-items: stretch; flex-wrap: wrap;">
75-
<img src="./images/weather-widget.png" alt="Weather widget embedded in FlowFuse Dashboard" style="height: 200px; width: auto; object-fit: contain;"/>
76-
<img src="./images/google-map.png" alt="Google Map embedded in FlowFuse Dashboard" style="height: 200px; width: auto; object-fit: contain;"/>
77-
<img src="./images/pdf.png" alt="PDF embedded in FlowFuse Dashboard" style="height: 200px; width: auto; object-fit: contain;"/>
78-
<img src="./images/google-calendar.png" alt="Google Calendar embedded in FlowFuse Dashboard" style="height: 200px; width: auto; object-fit: contain;"/>
79-
</div>
80-
81-
<style>
82-
/* Mobile responsiveness */
83-
@media (max-width: 768px) {
84-
div {
85-
flex-direction: column;
86-
align-items: center;
87-
}
88-
img {
89-
height: auto; /* Adjust height to maintain aspect ratio */
90-
width: 100%; /* Ensure images use the full width of the container */
91-
max-height: 200px; /* Limit max height to avoid distortion */
92-
margin-bottom: 20px; /* Adds space between images */
93-
object-fit: contain; /* Ensure images maintain their aspect ratio */
94-
}
95-
}
96-
</style>
97-
98-
_Weather widget, Google Map, and PDF embedded in FlowFuse Dashboard_
99-
100-
##### 2.1 Embed via HTML Embed Code
101-
102-
If you have an embed code from third party services you can use this HTML code to embed the content into your FlowFuse dashboard. Here’s how to do it:
103-
104-
1. Drag the ui_template widget onto the canvas.
72+
For a quick hands-on practice, you can try embedding a weather widget, Google Maps, Google Calendar, or a hosted PDF on your dashboard.
73+
74+
![Weather widget embedded in FlowFuse Dashboard](./images/weather-widget.png)
75+
_Weather widget embedded in FlowFuse Dashboard_
76+
77+
![Google Map embedded in FlowFuse Dashboard](./images/google-map.png)
78+
_Google Map embedded in FlowFuse Dashboard_
79+
80+
![PDF embedded in FlowFuse Dashboard](./images/pdf.png)
81+
_PDF embedded in FlowFuse Dashboard_
82+
83+
![Google Calendar embedded in FlowFuse Dashboard](./images/google-calendar.png)
84+
_Google Calendar embedded in FlowFuse Dashboard_
85+
86+
##### 2.2 Embed via HTML Embed Code
87+
88+
If you have an embed code from third-party services, you can use this code to embed the content into your FlowFuse dashboard. Here’s how to do it:
89+
90+
1. Drag the **ui-template** widget onto the canvas.
10591
2. Double-click on it to open its configuration dialog.
10692
- Create a new group for it to render in.
10793
- Set the size (width and height).
@@ -116,40 +102,37 @@ If you have an embed code from third party services you can use this HTML code t
116102
</script>
117103
```
118104

119-
Some services provide an iframe tag. In this case, all you need to do is copy the URL and use the embedding via the URL method.
105+
Some services provide an **iframe** tag. In this case, you need only copy the URL and use the embedding via the URL method.
120106

121-
4. Once you've added the code, click Done and then Deploy to save your changes.
122-
123-
Following is the image of the dashboard on which we are embedding the animated weather widget on the FlowFuse dashboard using embed code.
107+
4. Click **Done** and **Deploy** to save your changes once you've added the code.
124108

125109
![Animated weather widget on the Flowfuse dashboard, embedded with code.](./images/weather-widget.gif){data-zoomable}
126110
_Animated weather widget on the Flowfuse dashboard, embedded with code._
127111

128-
Now that you’ve learned how to embed external content into your FlowFuse dashboard, you might have tried embedding your FlowFuse dashboard into other websites or another FlowFuse dashboard and found that it is not working as expected.
112+
Now that you’ve learned how to embed external content into your FlowFuse dashboard, one day you may need to embed your FlowFuse dashboard elsewhere—either on another FlowFuse dashboard or an external site. If you’ve tried and found that it’s not working as expected.
129113

130-
This is actually a security feature designed to protect your data. FlowFuse dashboards, like many other web applications, implement security policies such as Cross-Origin Resource Sharing (CORS) and the X-Frame-Options header. These policies are in place to ensure that your dashboard is only viewed in trusted environments, preventing malicious sites from potentially tampering with your data or exposing it to unauthorized users.
114+
This is a security feature designed to protect your data. FlowFuse dashboards, like many other web applications, implement security policies such as Cross-Origin Resource Sharing (CORS) and the X-Frame-Options header. These policies ensure that your dashboard is only viewed in trusted environments, preventing malicious sites from tampering with your data or exposing it to unauthorized users.
131115

132-
However, if you really need to embed your FlowFuse dashboard into other websites or another FlowFuse dashboard, it is actually possible to do so with some configuration changes. Following is the section on how to enable embedding securely:
116+
However, if you need to embed your FlowFuse dashboard into other websites or on another FlowFuse dashboard, it’s possible to do so with some configuration changes. Below is a section on how to enable embedding securely of FlowFuse Dashboard:
133117

134118
### Enabling Embedding of FlowFuse Dashboards
135119

136120
1. Go to your FlowFuse instance settings.
137-
2. Switch to the editor settings and enable the option "Allow Dashboard to be embedded in an iFrame".
121+
2. Switch to the **editor** settings and enable **"Allow Dashboard to be embedded in an iFrame"**
138122

139123
![FlowFuse instance settings showing the option to allow dashboard embedding in an iframe.](./images/allow-dashboard-embedding.png){data-zoomable}
140124
_FlowFuse instance settings showing the option to allow dashboard embedding in an iframe._
141125

142-
3. Click Save Settings and restart your instance for the changes to take effect.
126+
3. Click **Save Settings and restart** your instance for the changes to take effect.
143127

144-
![FlowFuse OEE Dashboard embedded in another FlowFuse dashboard.](./images/embedding-flowfuse-oee-dashboard.png){data-zoomable}
128+
[![FlowFuse OEE Dashboard embedded in another FlowFuse dashboard.](./images/embedding-flowfuse-oee-dashboard.png){data-zoomable}](https://flowfuse.com/blueprints/manufacturing/oee-dashboard/)
145129
_FlowFuse OEE Dashboard embedded in another FlowFuse dashboard._
146130

147131
FlowFuse dashboards offer great flexibility, making it easy to embed external content like weather widgets, maps, and PDFs directly into your workspace. With a few simple steps, you can also embed FlowFuse dashboards into other websites, ensuring everything you need is in one place.
148132

149-
150133
## Up Next
151134

152135
If you're interested in learning more about embedding webpages or enhancing your FlowFuse dashboards, check out the following blog articles:
153136

154-
- [Mapping Location on Dashboard](/blog/2024/05/mapping-location-on-dashboard-2/): In this article, we dive into how you can embed location maps into your FlowFuse dashboard. Learn how to map locations, track real-time data, and make your dashboards even more interactive and informative.
155-
- [Generating PDF Reports with Node-RED and FlowFuse](#): This guide explains how to generate PDF reports directly with Node-RED and FlowFuse. We also cover how to preview these reports within your FlowFuse dashboards.
137+
- [Mapping Location on Dashboard](/blog/2024/05/mapping-location-on-dashboard-2/): In this article, we dive into how you can embed location maps into your FlowFuse dashboard. Learn how to map locations, track real-time data, and make your dashboards more interactive and informative.
138+
- [Generating PDF Reports with Node-RED and FlowFuse](#): This guide explains how to generate PDF reports directly with Node-RED and FlowFuse and how to preview these reports within your FlowFuse dashboards.
-50.3 KB
Loading
-119 KB
Loading
-32.8 KB
Loading
-199 KB
Loading

src/blog/2025/05/images/pdf.png

-53.9 KB
Loading
-57.9 KB
Loading

0 commit comments

Comments
 (0)