Skip to content

A Flask-based web application demonstrating real-time IoT data visualization from edge devices through Coreflux's MQTT broker. This example showcases secure MQTT communication and dynamic web display of device data and images encoded in base64.

License

Notifications You must be signed in to change notification settings

CorefluxCommunity/CorefluxEdgeMonitorDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coreflux Edge Monitor Demo

Coreflux Edge Monitor Demo is a demonstration project that visualizes real-time data from IoT edge devices. Utilizing Flask for the web interface and Paho MQTT for subscribing to topics, it showcases how data sent to a Coreflux MQTT broker can be securely received and displayed. This project is perfect for learning how to integrate IoT device data with web technologies for real-time monitoring and visualization.

Features

  • Real-time subscription to MQTT topics with Paho MQTT.
  • Secure MQTT communication with TLS support.
  • Dynamic data display in a Flask web application.
  • Visualization of device data and images encoded in base64.

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/CorefluxIoTDataDisplay.git
    cd CorefluxIoTDataDisplay
    
  2. Install the necessary Python packages:

    pip install -r requirements.txt
    

Configuration

  1. Open app.py and configure the Cloud Coreflux MQTT broker settings:

    MQTT_BROKER = "your_broker_address"
    MQTT_PORT = 8883  # or 1883 for non-TLS
    MQTT_TOPIC = "your_topic"
  2. If your broker requires authentication or you're using TLS, ensure to configure username_pw_set and tls_set methods accordingly in app.py.

Running the Application

Execute the following command from the project directory:

flask run

Access the web interface by navigating to http://127.0.0.1:5000/ in your web browser.

License

This project is licensed under Apache License Version 2.0. You can use it no problem 🚀

About

A Flask-based web application demonstrating real-time IoT data visualization from edge devices through Coreflux's MQTT broker. This example showcases secure MQTT communication and dynamic web display of device data and images encoded in base64.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published