Skip to content

Instantly share code, notes, and snippets.

View redaphid's full-sized avatar
💭
Adrift, in an ocean of stars.

Aaron Herres redaphid

💭
Adrift, in an ocean of stars.
  • Loqwai
  • Drifting
View GitHub Profile
@redaphid
redaphid / meshblu-proxy
Created August 31, 2014 18:31
Pebble watch to meshblu proxy
var express = require('express'),
app = express(),
skynet = require('skynet');
var conn = skynet.createConnection({
server: 'http://skynet.im',
port: 80,
uuid: '1f1200c1-2b02-11e4-9001-b7f689b1ce71',
token: '2pe8dz4uuh6ez5mirkhi857ohxrjxlxr'
});
@redaphid
redaphid / Twitter-flow
Created October 30, 2014 22:05
twitter-flow-example
{
"flowId": "bc8c25c1-5fb8-11e4-92ee-297ea4fd1389",
"token": "c2dn8x0yycoywrk9otm5b3ilvv6uhaor",
"hash": "aac952aa",
"name": "Reaper - Twitter",
"nodes": [
{
"id": "9f0a2c30-5fb9-11e4-adc8-dbaae6c6bcce",
"resourceType": "flow-node",
"channelid": "5409f79403f1d8b163401370",
@redaphid
redaphid / twitter.json
Created November 5, 2014 18:17
Filter unique tweets flow
{
"flowId": "38843fe1-6514-11e4-866a-cb70c40d1a73",
"token": "upxaxdccmxxswcdia0jm8qezah3hm2t9",
"hash": "c28f1f0a",
"name": "Twitter -Once -Demo",
"nodes": [
{
"id": "4321fe10-6514-11e4-ad16-27957fdf8e88",
"resourceType": "flow-node",
"payloadType": "date",
@redaphid
redaphid / flow
Created November 5, 2014 21:36
New comparators
{
"flowId": "5ab32ea0-6532-11e4-9497-572fbf10f28e",
"token": "6d1vd3ecr8yhw7b9871s064bjnd5z5mi",
"hash": "7dd8b782",
"name": "Filter tests",
"nodes": [
{
"id": "60835f30-6532-11e4-8d59-fb17a8c5e048",
"resourceType": "flow-node",
"value": 0,
@redaphid
redaphid / twitter-blink
Created November 5, 2014 22:01
Test flow for comparison nodes
@redaphid
redaphid / Cat-facts
Created November 12, 2014 18:10
Flow-to-flow communication
{
"flowId": "dd4e0f21-5000-11e4-baa6-6f19a6abebaa",
"token": "0yr22bcs1iuul3dibn6zyntyw48wipb9",
"hash": "c86083c3",
"name": "Cat-Facts",
"nodes": [
{
"id": "e2613140-5000-11e4-adbf-91df5d5432ef",
"resourceType": "flow-node",
"output": 1,
@redaphid
redaphid / configuration-example.json
Created July 21, 2015 23:35
The Tentacle Message Formats
{
"options": {
"port" : "/dev/tty.usbmodem14110000.1",
"broadcastPins" : true,
"broadcastInterval": 2500,
"pins": [
{"action" : "digitalWrite", "number" : 7},
{"action" : "analogRead", "number" : 15}
]
}
#include <Bridge.h>
#include <YunClient.h>
#include "tentacle-build.h"
IPAddress server(192,168,1,69);
#define port 8111
static const char uuid[] = "1335d63e-3494-45d7-9e0b-d08c42818c6d";
@redaphid
redaphid / meshblu-rest-tentacle.ino
Created August 5, 2015 07:02
Arduino Yun Meshblu REST + Tentacle example
#include <Bridge.h>
#include <YunClient.h>
#include "tentacle-build.h"
#include <SoftwareSerial.h>
#define tentacleServer "tentacle.octoblu.com"
#define meshbluServer "meshblu.octoblu.com"
#define port 80
@redaphid
redaphid / dash button
Last active August 29, 2015 14:28
Dash button
#!/usr/bin/node
var request = require('request');
var arpListener = require('arp-listener')
var _ = require('lodash');
var throttledTrigger = _.throttle(trigger, 5000);
arpListener('wlan0', function(arpData) {
console.log(arpData.sender_ha);
if(arpData.sender_ha !== '80:37:73:f4:b7:fa') {
return;