One script, execute it everywhere
Real world, complex sensor networks and automated systems often span multiple locations. In traditional systems, this means maintaining multiple controllers and managing programs which run on these different systems, ensuring they can talk to one-another. DeviceJS let’s you write a single program and distribute it over multiple controllers in different locations transparently. This means from a developer’s or maintainer’s viewpoint, the system can be much simpler. DeviceJS can distribute a script across any relay capable of running the DeviceJS run-time.
More: How it works
Patterns you already know
DeviceJS aims to enable developers familiar with client side web development libraries to easily make things happen dynamically in the physical world.
A simple example is the selector pattern, seen in frameworks like jQuery and d3.js.
Turn all paragraph text to red in jQuery:
The same thing in d3.js:
A similar pattern in DeviceJS – turn all lighting in a location red:
In jQuery this would pop-up an alert dialog box on a ‘click’:
In the physical world, we could handle things similarly with DeviceJS:
DeviceJS also allows trigger evaluation functions, which can help determine whether a sensor event issignficant.
More information will be available when DeviceJS is released on github and the API is published.