This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var meshblu = require('meshblu'); | |
var meshbluJSON = require("./meshblu.json"); | |
var LightwaveRF = require("lightwaverf"); | |
// Specifies how you want your message payload to be passed | |
// from Octoblu to your device | |
var MESSAGE_SCHEMA = { | |
type: 'object', | |
properties: { | |
roomNumber: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LightwaveRF = require("lightwaverf"); | |
var mqtt = require('mqtt'); | |
var config_lwrf = require("../config/config_lwrf.js"); | |
var lw = new LightwaveRF({ip:"10.52.2.118"}); | |
function LWRFController(lw) { | |
this.timeout = 100; | |
this.queue = []; | |
this.ready = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var readline = require('readline'); | |
var google = require('googleapis'); | |
var googleAuth = require('google-auth-library'); | |
var S = require('string'); | |
var schedule = require('node-schedule'); | |
var mqtt = require('mqtt'); | |
// Based on sample code from https://developers.google.com/google-apps/calendar/quickstart/nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define BAUD_RATE 57600 | |
// Receiver state | |
bool lastValue = LOW; | |
unsigned long last = -1; | |
const unsigned int upperThreshold = 70; //upper threshold value | |
const unsigned int lowerThreshold = 50; //lower threshold value | |
// Decoder state | |
#define MAX_REPS 64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import threading | |
import time | |
import glob | |
import os | |
import os.path | |
import signal | |
import sys | |
import Queue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import os | |
try: | |
import xbmc | |
import xbmcaddon | |
except ImportError, e: | |
import time | |
class xbmc: | |
class Monitor: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var meshblu = require('meshblu'); | |
var meshbluJSON = require("./meshblu.json"); | |
// meshblu.json must contain the UUID and token for a generic device created | |
// within Octoblu: {"server":"meshblu.octoblu.com","port":80,"uuid":"56<redacted>c0","token":"93<redacted>42"} | |
// Specifies how you want your message payload to be passed | |
// from Octoblu to your device | |
var MESSAGE_SCHEMA = { | |
type: 'object', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const long DEBOUNCE_DELAY = 50; | |
const long TRIGGER_PULSE = 50; | |
const int PIN_MOTOR_MOUTH = 10; | |
const int PIN_MOTOR_HEAD = 9; | |
const int PIN_MOTOR_TAIL = 11; | |
const int PIN_CMD_MOUTH = 1; | |
const int PIN_CMD_HEAD = 2; | |
const int PIN_CMD_TAIL = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Put a meshblu.json file in the same directory as this file. This must | |
// contain the Meshlu device UUID and token, e.g.: | |
// {"server":"meshblu.octoblu.com","port":80,"uuid":"01234567-89ab-cdef-0123-456789abcdef","token":"123456789012345678901234567890"} | |
var meshblu = require('meshblu'); | |
var meshbluJSON = require("./meshblu.json"); | |
var exec = require('child_process').exec; | |
var tempfile = require('tempfile'); | |
var fs = require('fs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"intents": [ | |
{ | |
"intent": "BillySay", | |
"slots": [ | |
{ | |
"name": "Saying", | |
"type": "LIST_OF_SAYINGS" | |
} | |
] |
OlderNewer