Skip to content

Commit

Permalink
Merge pull request #729 from Avaiga/demo_pollution_dash
Browse files Browse the repository at this point in the history
🎉 Adds a Realtime Pollution Dashboard Demo
  • Loading branch information
jrobinAV authored and FlorianJacta committed Jan 10, 2024
1 parent 1a32389 commit 7e42c2b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/knowledge_base/demos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,18 @@ Let's explore demos of applications made with Taipy.
</div>
</a>
</li>
<li class="tp-col-12 tp-col-md-6 d-flex" data-keywords="gui dashboard vizelement layout chart">
<a class="tp-content-card tp-content-card--horizontal tp-content-card--small" href="pollution_sensors">
<header class="tp-content-card-header">
<img class="tp-content-card-image" src="images/pollution_dashboard.png">
</header>
<div class="tp-content-card-body">
<h4>Realtime Pollution Dashboard</h4>
<span class="tp-tag">Front-end | Back-end</span>
<p> Displays real-time pollution data from sensors around a factory. The data is streamed
from another server and displayed in a dashboard.
</p>
</div>
</a>
</li>
</ul>
13 changes: 13 additions & 0 deletions docs/knowledge_base/demos/pollution_sensors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
A use-case of measuring air quality with sensors around a factory to showcase the ability of Taipy to dashboard streaming data.

[Try it live](https://realtime-pollution.taipy.cloud/){: .tp-btn target='blank' }
[Get it on GitHub](https://github.com/Avaiga/demo-realtime-pollution){: .tp-btn .tp-btn--accent target='blank' }

# Understanding the Application
This application shows pollution levels around a factory in real-time. The data is generated on
another server and sent to this Taipy app via a WebSocket. Taipy then processes the data and
displays it on a dashboard. The dashboard is updated in real-time as new data is received.

![Pollution Dashboard](images/pollution_dashboard.png){width=100%}

A tutorial on how to visualize data streamed from another thread is available [here](../tips/multithreading/index.md).
1 change: 1 addition & 0 deletions docs/knowledge_base/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ hide:
</div>
</a>
</li>

<li data-keywords="gui dashboard vizelement layout chart">
<a class="tp-content-card tp-content-card--horizontal tp-content-card--small" href="demos/pollution_sensors/">
<header class="tp-content-card-header">
Expand Down
2 changes: 2 additions & 0 deletions docs/knowledge_base/tips/multithreading/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ a server.
<img src="realtime_dashboard.png" alt="Dashboard Example" width="80%"/>
</p>

The dashboard displayed in this image is available [here](../../demos/pollution_sensors.md)

In this article, we will code a simple example where:
- A `sender.py` script will generate a random number and send it through a socket.
- A `receiver.py` script will receive and display the number in a Taipy application.
Expand Down

0 comments on commit 7e42c2b

Please sign in to comment.