Skip to content

Instantly share code, notes, and snippets.

View tim-minter's full-sized avatar

Tim Minter tim-minter

View GitHub Profile
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
@tim-minter
tim-minter / ibm-watson-assistant-cheat-sheet
Last active July 21, 2020 16:23
IBM Watson Assistant Cheat Sheet
## 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)?>"
@tim-minter
tim-minter / chatbotmaterial.txt
Created October 19, 2017 10:53
Chatbot Demo Material
1
{
"context": {
"BotsName": "Chatty McChatface",
"BotNickname": "Chatty McC",
"BotAge" : "37 and a half"
},
"output": {
"text": {
@tim-minter
tim-minter / README.md
Last active May 23, 2017 23:09
Pimoroni Blinkt Dashboard

Control a Pimoroni Blinkt via a browser based dashboard

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.

screenshot 1

Installation

@tim-minter
tim-minter / README.md
Last active April 11, 2017 16:37 — forked from dceejay/README.md
Dynamic Word Cloud

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