Duet Web Control Plugin using React.js
-
Hi,
I am looking to develop a Duet Web control plugin to show the bed temperature as a heat map (Ref attached image) in UI. I am using MLX90640 Infrared thermal camera to get the bed temperate in grid format by connecting this sensor to Raspberry PI.-
How do publish this data to be displayed on Duet Web Control? Which REST Api should I use in order to publish the data into the Duet Web Control UI?
-
Can I create a Duet Web Control plugin using Reactjs instead of Vue?
Kindly assist. Thanks.
-
-
@vijays I can only partially comment on this because I wrote DWC in Vue and not React. Apparently there is a wrapper for using Vue in React or vice versa, but no idea how capable it is: https://github.com/akxcv/vuera If you want to distribute that plugin, Webpack should be clever enough to bundle the wrapper components (and React) as a single JS chunk.
-
@chrishamm Interesting repos. Will explore on the possibilities of these repos. However I think it still requires some learning on Vue . It would be interesting to develop and extend DWC plugins in framework agnostic way which might interests community to develop more plugins.