🚴♂️
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
<!-- | |
Copyright 2013 IBM Corp. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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
<!-- | |
Copyright 2013 IBM Corp. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
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 SensorTag = require('sensortag'); | |
var node = {}; | |
console.log("starting"); | |
SensorTag.discover(function(sensorTag){ | |
console.log("discovered: " + sensorTag); | |
console.log(tag); | |
node.st = tag; |
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
Verifying that +hardillb is my blockchain ID. https://onename.com/hardillb |
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 Client = require('node-ssdp').Client; | |
var http = require('http'); | |
var url = require('url'); | |
var request = require('request'); | |
var express = require('express'); | |
var bodyparser = require('body-parser'); | |
var os = require('os'); | |
var xml2js = require('xml2js'); | |
var util = require('util'); |
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
<html> | |
<head> | |
<title>Push button, send message</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<button onclick="sendMessage();">Push Me</button> | |
<script type="text/javascript"> | |
var clientID = "ID-" + Math.round(Math.random() * 1000); | |
var client = new Paho.MQTT.Client(location.hostname, Number(location.port), clientID); |
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 wemo = require('wemo-js'); | |
var http = require('http'); | |
var util = require('util'); | |
var xml2js = require('xml2js'); | |
var postbodyheader = [ | |
'<?xml version="1.0" encoding="utf-8"?>', | |
'<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">', | |
'<s:Body>'].join('\n'); |
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
{ CapabilityProfileList: | |
{ CapabilityProfile: | |
[ { CapabilityID: [ '10006' ], | |
CapabilitySpec: [ 'ZigBee' ], | |
CapabilityProfileName: [ 'OnOff' ], | |
CapabilityAttrName: [ 'OnOff' ], | |
CapabilityDataType: [ 'IntegerSet' ], | |
CapabilityNameValue: [ '{Off:0,On:1,Toggle:2}' ], | |
CapabilityControl: [ 'RW' ] }, | |
{ CapabilityID: [ '10008' ], |
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
<?xml version="1.0"?> | |
<scpd xmlns="urn:Belkin:service-1-0"> | |
<specVersion> | |
<major>1</major> | |
<minor>0</minor> | |
</specVersion> | |
<actionList> | |
<action> | |
<name>OpenNetwork</name> | |
<argumentList> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<CreateGroup> | |
<GroupID>1489757700</GroupID> | |
<GroupName>Lighting Group</GroupName> | |
<DeviceIDList>94103EA2B278030F,94103EA2B27803ED</DeviceIDList> | |
<GroupCapabilityIDs>10008,10006,30008,30009,3000A</GroupCapabilityIDs> | |
<GroupCapabilityValues>255:0,0,,,</GroupCapabilityValues> | |
</CreateGroup> |