This file contains hidden or 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
POST http://api.usergrid.com/mdobson/sandbox/devices/76b745c8-1a25-3e6a-8ca9-3d81f369e8cc | |
payloads: { | |
apple: { | |
aps: { | |
sound: "chime", | |
alert: "Hello!" | |
} | |
} | |
} |
This file contains hidden or 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
GET https://c2815232.web.cddbp.net/webapi/json/1.0/radio/register?client=2815232-CFAEDCBD2BE16C72BC207130AD59416C | |
GET https://c2815232.web.cddbp.net/webapi/json/1.0/radio/fieldvalues?fieldname=RADIOMOOD&client=2815232-CFAEDCBD2BE16C72BC207130AD59416C&user=261581788711889075-EDD2BB7181C47ADD3B6318143E577B3F | |
GET https://c2815232.web.cddbp.net/webapi/json/1.0/radio/create?mood=42955&client=2815232-CFAEDCBD2BE16C72BC207130AD59416C&user=261581788711889075-EDD2BB7181C47ADD3B6318143E577B3F |
This file contains hidden or 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 packet = require('packet'); | |
var SerialPort = require('serialport'); | |
var serializer = packet.createSerializer(); | |
var sender = 'libpebble'; | |
var subject = 'Hello, Pebble!'; | |
var body = 'I hate you.'; | |
var ts = Date.now().toString(); | |
var data = [ sender, subject, ts, body ]; |
This file contains hidden or 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/env python | |
import serial, codecs, sys, binascii, time, threading, stm32_crc, zipfile | |
from pprint import pprint | |
from struct import * | |
class EndpointSync(): | |
timeout = 10 | |
def __init__(self, pebble, endpoint): |
This file contains hidden or 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
0xc0, 0x10, 0xd |
This file contains hidden or 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
host="ec2-23-23-69-22.compute-1.amazonaws.com"| timechart avg(data) |
This file contains hidden or 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 crypto = require('crypto'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var sign = crypto.createSign('RSA-SHA256'); | |
var privateKey = path.join(__dirname, 'priv.pem'); | |
var publicKey = path.join(__dirname, 'pub.pem'); |
This file contains hidden or 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 PhotosensorDriver = module.exports = function() { | |
this.type = 'photosensor'; | |
this.name = "joes-office-photosensor"; | |
this.data = {}; | |
this.state = 'on'; | |
this.value = 0; | |
}; | |
PhotosensorDriver.prototype.init = function(config) { | |
config |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Argo Sample</title> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script> | |
$(document).ready(function() { | |
$("#go").on("click", function() { | |
var uname = $("#uname").val(); |
This file contains hidden or 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 argo = require('argo'); | |
var mosca = require('mosca'); | |
var settings = { | |
port: 1883 | |
}; | |
var server = new mosca.Server(settings); | |
server.on('ready', function() { |