2.0.0 • Published 2 years ago
nanometer v2.0.0
nanometer 🔴🟢🔵

A micro framework for controlling ILDA show lasers with JavaScript/TypeScript over WebSockets, with a focus on delivering a stream of points.
Based on @laser-dac which is doing
much of the heavy lifting here.
Setup
npm iExample
Run the server
npx ts-node src/server.tsThe server will print the URL of a laser simulator you can visit in your web
browser. If you have an Ether Dream
attached you can set the USE_ETHER_DREAM environment variable to a truthy
value and it will use it in addition to providing you with a simulator.
Connect a client
npx ts-node src/sin.ts # Math.sin examplep5.js

You can connect a p5js sketch to the Nanometer server. See the
included example in
examples/p5.