Coder Social home page Coder Social logo

node-red-flows's Introduction

node-red-flows

This a place for playground with node red. Some of the flows require some BlueMix services.

I used postman to make all the web requests

##watson-translator.json

  • requires a Watson Language translation service from Bluemix
    • use username and password given by the service
  • use postman to generate the POST request to this url http://localhost:1880/translate
    • add the header Content-Type = application/json
    • add the follwing raw body
    {
        "text":"one small step for men one giant leap for mankind",
        "target":"fr",
        "source":"en"
    }

##watson-text-speech.json

  • requires a Watson Text toSpeech service from Bluemix
    • use username and password given by the service

In the browser type the url http://localhost:1880/audio keep this page open. Then press the inject button on the flow. The web page (http://localhost:1880/audio) should speak out the text contained in the inject module. Open the inject module and change the text.

##mashup-watson-translator+text-speech.json This combines watson-translator.json and watson-text-speech.json

##get-request-triggers-ifttt.json

  • make sure the event and the apikey in the ifttt url is replaced with the relevant information from your receipy This shows how to get a ifttt reciepy containing the Maker module to send an email when the the request is sent. The url to go to in the browser is http://localhost:1880/test-ifttt

insert-find-in-mogodb.json

  • insert data in a mongodb collection
    {
    	"first":"arnold",
    	"last":"schwarzenegger",
    	"dob":"03/06/1925",
    	"gender":"m",
    	"hair_colour":"brown",
    	"occupation":"actor",
    	"nationality":"american"
    }

or for multiple insert

[{
	"first":"arnold",
	"last":"schwarzenegger",
	"dob":"03/06/1925",
	"gender":"m",
	"hair_colour":"brown",
	"occupation":"actor",
	"nationality":"american"
},
{
	"first":"tony",
	"last":"curtis",
	"dob":"21/04/1978",
	"gender":"m",
	"hair_colour":"brown",
	"occupation":"developer",
	"nationality":"american"
}]

ifttt-maker-email-channels.json

For this flow you need a ifttt account so that you can produce a receipy with the Maker and email channels. The idea is that when the POST request to http://localhost:1880/ifttt with the body {"value1":"some value", "value2":"some value", "value3":"some value"} is received an email is sent to the email address set in the email channel. The values contained in the body will also be part of the email.

image-classifier.json

This flow is used in conjunction of the image classifier on BlueMix. The classifier needs to be trained before it can be used with this flow. This is the url to use http://localhost:1880/recognise_nike?url={url to the image}&classifier_id={nike classifier}&version={version}&apikey={api key} or go to this url http://localhost:1880/recognise_nike and enter the necessary information in the form

arduino-test.json

This flow requires an Arduino board with an led on pin 12 and 13. And a button pin 2.

  • Pressing the button will light up the led 12.
  • Clicking the button whick on the flow will light up the led 13.

blynk-websocket.json

This is an example that shows how Blynk (http://www.blynk.cc/) can be used with web socket in order to update a webpage (http://127.0.0.1:1880/blynk).

gps-simulator--mqtt-ibm-iot--websocket.json

This flow shows how a gps simulator sending data to the ibm iot cloud. Then another flow recives that data extracts long and lat sends it via web socket to a webpage (http://127.0.0.1:1880/iotfeedback) so it can be displayed.

ibm-iot-mqtt.json

ibm iot module connected to a debug module.

simple-web-socket.json

This flow shows how web socket can be used with a web page (http://127.0.0.1:1880/simple). Clicking a button on the webpage will update all the webpages connected to the socket with the current time. Clicking the button on the flow will also do the same.

tube-status.json

Clicking the button on the flow will get the tube status and display them on the webpage (http://127.0.0.1:1880/tubestatus)

web-socket-and-html-widget.json

Synchs two webpages, when one thing is updated on a webpage http://127.0.0.1:1880/testing) the other automatically update.

node-red-flows's People

Contributors

sebastienjouhans avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.