Git Product home page Git Product logo

hercassi / mqtt2chrome Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matbor/mqtt2chrome

0.0 1.0 0.0 368 KB

An example of using the MQTT javascript library, websockets & chrome browser extensions. The extension will connect to a MQTT broker and then subscribe to a topic, when a message is received it will then display the notification using chrome's built-in notifications function.

License: MIT License

mqtt2chrome's Introduction

mqtt2chrome

by @bordignon October 2013

You can do what you want with the code as long as you provide attribution back to me and don’t hold me liable!

This is an example of using the MQTT javascript library, websockets and chrome extensions.

This extension will connect to a MQTT broker using websockets and then subscribe to a topic. When a message is received it will then display the notification using chrome's built-in notifications function.

Requires "notifications" permission.

Screenshot of what the notification looks like. (Note: the messagebox in bottom right and also the connection icon near the address bar, this will change color if the connection is lost.) notification box

##Installation;

  1. download all the files to a directory.
  2. edit the background.js file and change the three variables broker, broker port and topic
  3. in chrome, goto tools -> extenstions
  4. tick the 'developer mode' box, then click 'load unpacked extension'
  5. select the directory where you have download and edited the extension
  6. it should automatically connect!

Screenshot shows where the options are to install the extension in developer mode. example of install

mqtt2chrome's People

Contributors

matbor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.