npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

phidgetapi

v2.3.1

Published

Full official phidget interface API for node.js

Downloads

6

Readme

Phidgets API for javascript!

A node.js and io.js based API for interacting with your own analog sensors and all official Phidget boards and sensors. This module is compatible with all operating systems which can run node.js or io.js. phidgetsapi is perfect for projects using BeagleBone Black and Raspberry Pi too!

npm info : See npm trends and stats for phidgetapi
phidgetapi npm version supported node version for phidgetapi total npm downloads for phidgetapi monthly npm downloads for phidgetapi npm licence for phidgetapi

GitHub info :
node-phidget-API GitHub Release GitHub license node-phidget-API license open issues for node-phidget-API on GitHub

Package Quality :
phidgetapi Package Quality

Known supported platforms

  1. node.js
  2. io.js
  3. nw.js formerly node-webkit -> nw.js github
  4. atom electron formerly atom shell -> electron github

Phidgets

Phidget boards are a great prototyping tool which can handle digital inputs and outputs, along with a great array of analog sensors (RFID, temperature, accelerometer, servo motors etc). They make learning even easier and more fun than arduino. Prototyping is ridiculously easy with phidgets and the Phidget SBC, Beaglebone Black or Raspberry Pi.

Phidget Server Requirement

This project assumes you have the Phidget server up and running for your OS. If you need to do that yet, you can check out the info for your system at one of these links.

  1. Linux
  2. Mac OS X
  3. Windows

For most "regular" (USB) Phidget boards, that assumes that the computer or SBC (BeagleBone Black, Raspberry Pi etc.) you have connected to the Phidget board via USB has the webservice up and running. For stand-alone Phidget micro-computers (phidgetsbc), this assumes you have configured the server via the web portal. You will be connecting to the Phidget server via TCP, so be sure you can access the server from the machine running this project.

If you are staring from the command line it will look something like this, you can add -v if you want to see some more verbose logging from the service.

Linux phidget webservice info
Mac phidget webservice info

sudo phidgetswbservice21

Windows phidget webservice info

PhidgetWebservice21

For a guide on installing the required libraries and services on your platform, see the below wikis

  1. Linux
  2. Mac OS X
  3. Windows

Installation

NPM

  • npm install phidgetapi

GIT

  • git clone git://github.com/RIAEvangelist/node-phidget-API.git OR
  • git clone https://github.com/RIAEvangelist/node-phidget-API.git

#Module Documentation

Quick Example

Please see the Module Documentation above for more info on specific phidget types.

var Manager = require('phidgetapi').Manager;

var manager=new Manager;

manager.observe(update);

function update(changes){
    for(var i in changes){
        var change=changes[i];
        //see specific info about each phidget
        //console.log(change);
    }

    //see latest info on all available phidgets
    console.log(manager.devices);
}

manager.phidget.connect();

ToDo:

  • Support for Phidget authentication
  • Create modules for handling all phidget types
  • document all modules for various Phidgets
  • Create more examples for various Phidgets
  • Write tests for all phidget modules

Licensed under DBAD license

See the DBAD license in your language or our licence.md file.