Skip to content

Instantly share code, notes, and snippets.

@NeilCFord
NeilCFord / TwitterBot_RaspberryPi_Node-RED_flow.txt
Created February 19, 2016 17:12
A Node-RED flow for a PiZero/Explorer pHat powered bot that moves randomly in response to Twitter
[{"id":"fd281537.bb234","type":"twitter in","z":"422b74cb.e7ca14","twitter":"","tags":"#robotweet","user":"false","name":"Twitter","topic":"tweets","x":55,"y":447,"wires":[["186743dc.d9a4d4","122e8f2d.2c2e91"]]},{"id":"b6577013.c6b1b8","type":"rpi-gpio out","z":"422b74cb.e7ca14","name":"Motor 2 +","pin":"40","set":true,"level":"0","out":"out","x":810,"y":57,"wires":[]},{"id":"651477be.f76588","type":"rpi-gpio out","z":"422b74cb.e7ca14","name":"Motor 2 -","pin":"37","set":true,"level":"0","out":"out","x":809,"y":146,"wires":[]},{"id":"2e8f1150.62cefe","type":"rpi-gpio out","z":"422b74cb.e7ca14","name":"Motor 1 +","pin":"35","set":true,"level":"0","out":"out","x":808,"y":243,"wires":[]},{"id":"a7b1651d.3f1de","type":"rpi-gpio out","z":"422b74cb.e7ca14","name":"Motor 1 -","pin":"38","set":true,"level":"0","out":"out","x":806,"y":334,"wires":[]},{"id":"db739db1.91e7e8","type":"inject","z":"422b74cb.e7ca14","name":"forward","topic":"","payload":"1","payloadType":"string","repeat":"","crontab":"","once":false,"x":2
[{"id":"1605b793.585938","type":"debug","name":"twitter output","active":true,"console":"false","complete":"payload","x":190,"y":187,"z":"7c10843a.b24ab4","wires":[]},{"id":"208812e7.780cbe","type":"twitter in","twitter":"","tags":"#wakedino, #bdf2016, bathcamp, #blackgangpi","user":"false","name":"Twitter","topic":"tweets","x":74,"y":244,"z":"7c10843a.b24ab4","wires":[["5a30c653.d2fc28","1605b793.585938"]]},{"id":"5a30c653.d2fc28","type":"trigger","op1":"1","op2":"on","op1type":"nul","op2type":"val","duration":"250","extend":false,"units":"ms","name":"send \"on\"","x":169,"y":334,"z":"7c10843a.b24ab4","wires":[["ad304de8.b2ec6","476d1f70.07b678"]]},{"id":"ad304de8.b2ec6","type":"delay","name":"rate limit","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"4","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":264,"y":245,"z":"7c10843a.b24ab4","wires":[["ae1ad60f.a9b4e8","14ee19f1.ea588e","fec86d2.02e301","31a8a05d.7b9848"]]},{"id":"476d1f70.07b678",
@NeilCFord
NeilCFord / 1.md
Last active December 19, 2015 17:04 — forked from daniellevass/1.md
christmas countdowns

#Christmas Countdowns

we're going to look at making a count down timer that you can use with the littlebits or put on a website

1. JSFiddle

Start a new JSFiddle

2. JQuery

@NeilCFord
NeilCFord / node-red
Last active August 29, 2015 14:16 — forked from Belphemur/node-red
#!/bin/bash
### BEGIN INIT INFO
# Provides: node-red
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the node-red server
### END INIT INFO
# Can be downloaded and installed in one go by using this command
#!/bin/bash
# Check for Homebrew,
# Install if we don't have it
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# Update homebrew recipes
brew update

Keybase proof

I hereby claim:

  • I am neilcford on github.
  • I am neilcford (https://keybase.io/neilcford) on keybase.
  • I have a public key whose fingerprint is A775 6E34 C500 7526 D2E4 D96F 1C2D EC02 4EC6 535A

To claim this, I am signing this object: