Skip to content

knabb215/mqtt-websocket-dashboard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MQTT Websocket Dashboard

I searched for a opportunity to receive mqtt message from my ESP8266 Module and display it live in a Browser. I found a tutorial from Robert Hekkers. But the example didn't work for me.

After some hours spent on studying node.js, Javascript and Socket.io - i ended up with this nice looking Dashboard.

Dashboard

Basically it's the same concept of code with some enhancements.

How to Install:

  1. Install node.js (in my case, i used the newest Package-Installer for Mac from nodejs.org)

     brew install nodejs
    
  2. Clone the Repo

     git clone https://github.com/eLement87/mqtt-websocket-dashboard.git
    
  3. Download the Dependencies

     npm install mqtt
     npm install socket.io
    
  4. Start the Server

     node app.js
    
  5. Open your Browser

     http://localhost:8888
    

How

I used ESPeasy on my ESP-Module that publish's the Data to my Raspberry and Mosquitto.

To Do...

  • ...better Documentation
  • find out how to build the div's dynamicly based on the topic names/data (static divs)
  • how to build a config menu to subscribe topics in a webinterface and save that to a database
  • better comprehension in Javascript etc.
  • and of course better englisch :D

If somebody have the knowledge or improvements - feel free to send a pull request to tell me how ;)

Credits

About

A mqtt live Dashboard for ESP8266

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 63.6%
  • JavaScript 22.3%
  • CSS 14.1%