These flows are used in the Security Applications Tutorial. They do require external services (STS MQTT, AWS Services) and additional nodes installed (node-red-contrib-aws).
This flow runs on a Mac to take small photos using a web cam when signalled via MQTT.
This flow relies on imagesnap being installed on your Mac to take pictures using the built in web cam.
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.
# 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 |
""" | |
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 | |