Skip to content

Instantly share code, notes, and snippets.

@mblackstock
mblackstock / Image Recognition Flows.md
Last active December 8, 2017 01:02
Flows on FRED for remote photos and image recognition using AWS
@mblackstock
mblackstock / Camera Flow.md
Last active December 1, 2017 19:19
Node-RED flow that takes pictures when signalled using MQTT and sends them to a HTTP endpoint

Mac Camera Flow README

This flow runs on a Mac to take small photos using a web cam when signalled via MQTT.

Prequisites

This flow relies on imagesnap being installed on your Mac to take pictures using the built in web cam.

How it works

@mblackstock
mblackstock / README.md
Last active November 16, 2016 13:56
FRED Node-RED hosted chat application with sentiment analysis

This flow uses http nodes and web sockets nodes to serve up a simple web page with a chat application that colours messages depending on whether they are positive or negative according to the sentiment node.

Copy the flow, and import it from the clipboard using Node-RED on FRED.

Change the URL ws://fred.sensetecnic.com/public/guides/receive and ws://fred.sensetecnic.com/public/guides/publish, replacing guides with your FRED user name.

Change the same URL to get it working on a 'stock' Node-RED install, or check it out on the Node-RED flows library - flows.nodered.org.

@mblackstock
mblackstock / demo.py
Last active August 29, 2015 14:00
OAuth2 with local wotkit instance
# requires the following packages installed.
# Flask, Flask-OAuthlib
# to test locally with out SSL, set environment variable DEBUG=true
from flask import Flask, request, url_for, session, jsonify, redirect, Response
import json
from flask_oauthlib.client import OAuth
app = Flask(__name__)
#app.debug = True #interferes with pydev source debugging
@mblackstock
mblackstock / export_github_issues_csv.py
Last active November 5, 2015 17:27
exporting git hub issues to CSV that is almost ready to import into JIRA. Based mostly on https://gist.github.com/unbracketed/3380407
"""
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
"""
import csv
import requests