0.0.7 • Published 6 years ago

jaxcore-spin-simulator v0.0.7

Weekly downloads
13
License
MIT
Repository
github
Last release
6 years ago

Jaxcore Spin Simulator

screenshot

A web simulation of the Jaxcore Spin, a programmable wifi dial remote control. See the Spin NodeJS library for more details.

Having the ability to simulate a Jaxcore Spin is useful for bug testing, and development of Jaxcore plugins to allow the Spin to control other devices or web games without the need to own and operate the actual devices.

Automatic Install

npm install -g jaxcore-spin-simulator

Then run:

spin-simulator

Web simulator should open to http://localhost:7766/

Manual Install and Build

git clone https://github.com/jaxcore/jaxcore-spin-simulator.git
cd jaxcore-spin-simulator
npm install
npm run build
npm run server

Add Jaxcore Spin simulators in the web application and they will appear on your network using the same Jaxcore TCP/UDP communication protocol that is implemented in a real Jaxcore Spin. Use the keyboard controls (arrow keys and WASD keys), buttons, or mouse to spin the knob and see the results in either the browser or NodeJS console.

In a separate Terminal window run the examples from jaxcore-spin/examples and see that the simulator connects and controls the example:

git clone https://github.com/jaxcore/jaxcore-spin.git
cd jaxcore-spin
npm install
node examples/simple.js

After connecting the Spin Simulators to the network, the rotation and button/knob events should appear in the simple.js console log.