Coder Social home page Coder Social logo

mqtt-growl's Introduction

mqtt-growl

A simple little app that subscribes to a given list of mqtt topics on the specified broker and generates a growl notification whenever a message arrives

dependencies

todo

Notifications on growl servers other than localhost

known problems

Tends to crash on very busy mqtt brokers (such as test.mosquitto.org). This is likely due to node-growl spawning too many processes. The stop gap solution is the -d parameter, which allows node-growl to spawn a process only every x milliseconds.

mqtt-growl's People

Stargazers

dap avatar  avatar thunder avatar H. Hommersom avatar Allan Hudgins avatar Mike English avatar Andy Piper avatar Adam Rudd avatar Benjamin Cabé avatar

Watchers

James Cloos avatar bjkim avatar

Forkers

hfeeki ustbgaofan

mqtt-growl's Issues

Connects but never growls?

I've been trying this in node 0.8.8 against m2m.eclipse.org - it appears to connect and ping, but as messages are published on the topic it is listening on, no Growl notifications appear.

Crashes if too many publishes occur

node-growl spawns a new growlnotify process for each notification and if we get a whole heap of publishes it tends to hit the process limit.

child_process.js:477
    throw errnoException(errno, 'spawn');
    ^
Error: spawn EMFILE
    at errnoException (child_process.js:514:11)
    at ChildProcess.spawn (child_process.js:477:11)
    at child_process.js:375:9
    at Object.execFile (child_process.js:285:15)
    at child_process.js:252:18
    at growl (/usr/local/lib/node_modules/mqtt-growl/node_modules/growl/lib/growl.js:187:3)
    at Connection.<anonymous> (/usr/local/lib/node_modules/mqtt-growl/mqtt-growl:64:9)
    at Connection.emit (events.js:67:17)
    at Connection.parse (/usr/local/lib/node_modules/mqtt-growl/node_modules/mqttjs/lib/connection.js:108:9)
    at Socket.emit (events.js:67:17)

Consider migrating to something that has a persistent connection to the growl server or throttle node-growl somehow.

Suggestions:

https://github.com/betamos/Node-Growler

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.