Blink1Control2 icon indicating copy to clipboard operation
Blink1Control2 copied to clipboard

Trigger blink(1) via MQTT

Open kfdm opened this issue 7 years ago • 5 comments

Similar to the script, url, and file sources, do you think it would be within scope to add support to subscribe to an MQTT topic to update? I suppose I could easily write an external script to subscribe and write it out as a file if you don't think it would be in scope. Though I am not familiar with development with Electron, if you thought perhaps it would be in scope, I could give it a try myself.

kfdm avatar Jan 08 '18 05:01 kfdm

This is a great idea. I'm looking into it now. What would be the common user-level parameters you would like for watch MQTT topics? If you use Node.js, which MQTT package do you prefer?

todbot avatar Jan 08 '18 05:01 todbot

I had not thought through the specifics too much, but my naive idea was to just have the setting for an mqtt broker (with user and password options) and then a topic, and reuse the same options for parsing (as JSON, as pattern name, as color)

I tend to do most of my development in other languages so I do not have any input for node.js packages.

kfdm avatar Jan 08 '18 07:01 kfdm

Out of curiosity, did you ever figure out the issues with webpack ? https://github.com/todbot/Blink1Control2/commit/63e1fa2905642c51bf885346145c1a4f33d8af5d

kfdm avatar Aug 16 '22 01:08 kfdm

@todbot a friendly bump to see if perhaps you were able to get things working :)

kfdm avatar Nov 17 '22 08:11 kfdm