Note this has only been tested on a Pi running the full Raspian OS. I will try it on a Pi ZeroW with minimal Raspian install soon.
Control individual LEDs and the Blinkt strip as a whole via a node-red web dashboard eg.
sudo apt-get update | |
sudo apt-get install mosquitto | |
sudo mosquitto_passwd -c /etc/mosquitto/passwd [usernamehere] | |
sudo nano /etc/mosquitto/conf.d/default.conf | |
Add to this file: | |
allow_anonymous false | |
password_file /etc/mosquitto/passwd |
## Send the whole context object/all context variables via a webhook in one go | |
Create a webhook parameter key with any name you want and set it's value to be "<? context ?>" | |
## Create a random number | |
"<? new Random().nextInt(9999999)?>" | |
1 | |
{ | |
"context": { | |
"BotsName": "Chatty McChatface", | |
"BotNickname": "Chatty McC", | |
"BotAge" : "37 and a half" | |
}, | |
"output": { | |
"text": { |
Forked from dceejay's twitter version. Converted to use IBM Connections instead of Twitter. "Intelligent" stop list added. Changed to use the on-line D3 source as opposed to a local copy (needs v3 to work. v4 does not work with this code).
This flow generatates a dynamic Word Cloud type graphic. It takes the output of an IBM Connections Search node as input, and uses d3 to generate a Word Cloud based on the relative frequency of words found.
It includes a stop list to exclude common words and exclude the search term and words in the search term your are searching on.
As well as the flow you also need to download and save this web page