Delta is a viewport test terminal to parse data recieved from different devices, it uses web sockets, to instantly visualize data it recieves from a source, which could be an embedded device, a web application,etc.
1.) clone the repository or download it.
git clone https://github.com/quadroloop/delta
2.) run delta.
cd delta
node app.js
3.) Go to your browser and navigate http://localhost:3000 to display the UI. 4.) to send data to delta, from another device, you need to be sure that the device and your machine running delta is on the same network, and be sure to replace localhost with the IP Address of the machine running the delta application. 5.) Sending Data to delta.
// in the same machine using browser url bar,postman or cURL
http://localhost:3000/delta/?data=[1,2,3,4,5]
// from a different device where `192.168.1.8` is the IP Address of the computer running delta.
http://192.168.1.8:3000/delta/?data=[1,2,3,4,5]
// via js using axios
axios.get('http://192.168.1.8:3000/delta/?data=[1,2,3,4,5]')
.then(res=>{
console.log(res.data);
});
if sending is successful, the response will be Delta:ok hence if not the reponse will be Delta: Incomplete parameters to avoid this error, just dont forget to send data using the data URL parameter as shown in the examples above.