Write a plugin for DWC- solved using BtnCmd.
-
Im looking for some one to write a plug in for the following data to be displayed:-
Spool Weight 0 to 5Kg
Temperature 0 to 85C
Humidity 0 to 100 % RHHardware
HX711- load cell amplifier
ESP32 DEV BOARD - micro with Wifi
AHT25 - Temperature and Humidity -
@moth4017 If you don't need realtime updating then I don't think you need a specific plugin for this.
- Create 3 global variables - 1 for each of your parameters in your config.g eg:
global spoolWeight =0
- Set your ESP32 code to post updates to the variables every x seconds using the http rest api eg:
http://[duet_ip]/rr_gcode?gcode=set%20global.spoolWeight=[current value]
- Use an existing plugin to display the value of the 3 global variables.
-
thanks for the reply, do you know of a plug in the will accept the http requests, i think i can do the esp sketch , but not sure about the DWC plugin.
cheers
Mark -
@moth4017 You don't need a plugin for the http commands, that is native RRF/DWC
functionalityTo display the values of the variables you can either use the object model browser plugin or BtnCmd.
There is a third option which would be to just display the current sensor values in a web page served by the esp32 board, then embedd the webpage into dwc using BtnCmd's remote panel feature.
This is an example remote panel, with a web page from an esp32 running tasmota:
-
Ok ESP code written , can send http string, now for the next stage .. is there and easy test to do to see if i can send data to DWC without a plug in?
I need to do this step by step .. its not my strongest subject
-
@moth4017 You will need to use the built in object model plugin to see global variables. Just enable it in DWC, you can then use it to view global.xxxxx variables.
Follow the steps I previously posted, and watch for changes in the OM plugin. You can just type the http command into a browser to check your variable is setup and changes are visable, before you test your esp code.
-
thanks for the help only been using DWC for a few months , so the helps great thank you.
Have started the "object modle " will try out the global Vars and Http later -
ok that worked updated the global variable , i also got a return of {"buff":228}
Now how do i display that variable in DWC, is that possible? -
-
Do i have to add the BtmCmd plugin now?
-
@moth4017 yes
-
@moth4017 Your choices are to use the object model plugin to see the variables eg:
or use BtnCmd to display them eg:
Read the BtnCmd wiki for instructions on how to install & use it.
-
ok BtmCmd installed , i have the object model value 'global.spoolWeight' but i carnt find the Object Model Value Panel? where do i access that?
-
Click the show settings button (cog) in the bottom right of the BtnCmd window
Click the green "create & edit layouts" button
Click the "add new panel" button
Select object model panel, and click enter settingsRead the Wiki for more details
-
-
@moth4017 Did you start the plugin after you installed it?
-
@mintytrebor
Not listed in the Plugin list
-
@moth4017 external plugins tab
-
@mintytrebor Just noticed ..Doh ..
-
Thank you