GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dpjanes/node-iotdb: Easily control the Internet of Things using Semantics

BranchesTags
Open more actions menu

Latest commit

 

History

740 Commits
740 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
helpers
helpers
 
 
samples
samples
 
 
test
test
 
 
.jshintrc
.jshintrc
 
 
DIST.sh
DIST.sh
 
 
Gruntfile.js
Gruntfile.js
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
bridge.js
bridge.js
 
 
exit.js
exit.js
 
 
helpers.js
helpers.js
 
 
iotdb.js
iotdb.js
 
 
modules.js
modules.js
 
 
package.json
package.json
 
 
settings.js
settings.js
 
 
thing_manager.js
thing_manager.js
 
 
thing_set.js
thing_set.js
 
 
users.js
users.js
 
 
windows.js
windows.js
 
 

Repository files navigation

node-iotdb

A Node.JS platform for semantically control all your Things. 100% test coverage.

Node.JS 6 or higher is required!

Hello, World

Install IOTDB

$ npm install iotdb

Turn WeMo on or off

const iotdb = require("iotdb");
iotdb.use("homestar-wemo");

things = iotdb.connect("WeMoSocket");
things.set(":on", true)
things.set(":on", false)

N.B.

  • you must have installed the NPM package homestar-wemo
  • :on is the "semantic" term that universally means "turn/is something on or off". It expands to iot-purpose:on which in turn expands to the URL https://iotdb.org/pub/iot-purpose#on.

Wait for a WeMo to change state

const iotdb = require("iotdb");
iotdb.use("homestar-wemo");

things = iotdb.connect("WeMoSocket");
things.on("istate", thing => {
	console.log("istate", thing.state("istate"));
	console.log("on", thing.get(":on"));
})

N.B.

  • istate is the actual current state of the Thing. In IOTDB a Thing may have many states associated with it, called bands.

Documentation

We are in the process of collecting all the documents into this project.

Start here:

  • https://github.com/dpjanes/node-iotdb/tree/master/docs

About

Easily control the Internet of Things using Semantics

Resources

Readme
Apache-2.0 license
Activity

Stars

47 stars

Watchers

8 watching

Forks

9 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.