Giter Club home page Giter Club logo

btncmd's Introduction

BtnCmd

A Duet Web Control (DWC) plugin which allows the user to create custom layouts with new panels and buttons, which can run Macros, g-code, Post http GET requests, send MQTT messages.

BtnCmd Main Screen

Read the Wiki for more info on how to install configure and use.

In BtnCmd you can create Tabs, with custom buttons in a freeform layout. You may also choose to display a selection of panels including:

  • Standard DWC information & control panels
  • DWC CNC Panels (Only available if using M452/M453 laser/cnc mode)
  • Standard DWC webcam
  • Alternative webcam
  • Remote Source (eg. A web service from your LAN)
  • Object Model Values
  • Text/Label Panel
  • User Created Custom Panels
  • Global Variable Input Panels (Change/update the value of global variables)
  • Custom Charts (Create your own charts from the Object Model)

BtnCmd Edit Mode

The custom buttons can be configured to trigger one of five types of actions:

  • Send a gcode command to the Duet Board
  • Run a Macro
  • Send a simple HTTP request.
  • Send a MQTT Message
  • Open a URL in a pop-up window

BtnCmd runs in the browser, and is compatible with both standalone control boards and SBC + control board configurations.

Short Overview Video Below:
BtnCmd

BtnCmd uses the following libraries/modules:

btncmd's People

Contributors

mintytrebor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

btncmd's Issues

Button in custom panels configured as "Macro" do not execute macro files.

Button Type: Marco do not execute macro files located in standard macro folder when arranged in custom panels.
Former version of BtnCmd (Beta_0.10.03) worked fine.
Button Type: Macro outside of custom panels behave as expected. The configured Macro is executed.

image

Version Info:

  • Duet 2 Ethernet
  • Browser Chrome
  • BtnCmd Version 01.03.0
  • DWC Version 3.5.1

[Bug] : Input number slider OM / Gcode

Describe the bug
I've setup an input number as a slider and i wanted to write a global variable and, at the same time, run gcode with input value. If i set up linked directly to the global variable it sets it, but it doesn't execute the gcode. If i link to object model and select my global variable from the object model browser, it executes the gcode (also ##VALUE## works correctly) but it doesn't update the global variable value.

Expected behaviour
I would expect that in both cases global variable is updated and gcode run if the gcode field is compiled.

Screenshots
immagine
In these button i want "Filo ON" to run "M42 P1 S{global.manualMove_wirePower}" (it does) and "Filo OFF" "M42 P1 S0" (it does). The slider should set the global.manualMove_wirePower but also execute "M42 P1 S##VALUE##" gcode after changing the value. Now i can do only the first or the second based on the "link to OM" switch.

Version Info:

  • OS: Windows 11
  • Browser: Firefox
  • BtnCmd Version: 01.02.09 (latest source)
  • DWC Version: 3.5.0-rc.3

Can't set background colour of custom panel

Hi,

I would like to be able to set custom background colours for the custom panels so i can match them to the defaults ones.

image

In addition setting background colour for input panel causes it to do this rather than just a nice rectangle around the text input section

image

Showing BtnCmd on portable device

Not sure if this is really an issue or just me not knowing how to do that but I would like to know if it is possible to see BtnCmd tab when accessing the printer from a portable device such as an Iphone ?

Custom Panel Size not saving

Trying to make a custom panel with a "object model value" or any other non-dwc panel type inside, it does not save the custom size

Alt Webcam refresh rate

Hi, awesome plugin so far !

Sadly, the refresh rate minimum of the Alt Webcam is way to low (5s).
Could you get it lower, maybe to like 100ms ?

Regards,
F/Poutre.

[Bug] : Global input variable numeric not updating on focus change

Describe the bug
When a global input variable of numeric type is inserted (numeric field not slider), if you write a number, the only method to confirm/update the global variable is to press enter on the keyboard.

Expected behaviour
I would expect that changing focus to another input field or clicking any button (input field loosing focus) would update the global variable. The update when clicking another button in the page would be preferable for what i'm trying to do.

Screenshots
Screenshot 2024-03-03 202607

In the screenshot i have 4 inputs that request movement to the axis when button "Vai" is pressed. These will ignore endstop anc machine limits. I know it's strange but i'm retrofitting and old foam cutting machine and trying to get UI as close as possible as the old software we used back in the days.
If i change one of the four input and press the button "Vai" nothing happens because you have to confirm the changes with enter key while focus is on the input. I would prefer the possibility to update the field when it looses focus or when i press the button "Vai" (i think the latter will probably be achieved implementig the losing focus callback)

Version Info:

  • OS: Windows 11
  • Browser: Firefox
  • BtnCmd Version 0.10.15
  • DWC Version 3.4.6

Custom Plugin Cost

Hi would you be interested in doing a custom plugin for DWC?
Regards

Mark

Feature Request: Console Viewer

Hey, I'm a huge fan of this plugin! It feels like a missing piece of the core DWC software.

That said, the one functionality that takes me away from my custom interface is the Console. Would it be possible, at a technical level, to make a console viewer within BtnCmd? I don't even need to send commands, just view the outputs.

Thanks for considering this, and thanks for sharing your awesome work.

[Bug] : newly created panels don't show up

Describe the bug
When I create a new panel it doesn't show up in the tabs bar. Only the default panel shows up

Expected behaviour
I expect the newly created panel to show up in the tabs bar

Screenshots
New Panel in edit mode:
image
Once I press exit and save:
image

Version Info:

  • OS: Windows 10
  • Browser Firefox
  • BtnCmd Version 01.02.07
  • DWC Version 3.5.0-rc.1

Text based inputs

Hey I would love to be able to add text based inputs i.e.
Specify tool dia, Use that input when setting WCS (i.e. offset by tool dia/2)

Backup / Restore button greyed out

I've just installed and setup BtnCmd on DWC 3.3 and the backup / restore button is greyed out. I don't see any information in the docs on why this might be the case. How do I enable backup and restore?

0.10.02 setting restore from 0.8.20

Hello!
I removed BtnCmd version 0.8.20 and installed the latest version 0.10.02. DWC and firmware for my Duet2 Wifi (standalone) is currently 3.4.0-b7. I have previously created some menus BtnCmd in the 0.8.20 and the settings were saved as "BtnCmdSettings.json" in system folder.
Unfortunately I can't find a way to import a backup or perform a restore in the current 0.10.02.

BtnCmdSettings.json.txt

BtnCmd_0 10 02_menu

did I miss something?

wbr,
Karl

Prerequisites

Hi!
I have DWC 3.4.5 on my duet 2 wifi board, I have downloaded the latest version of BtnCmd (v01.02.02) but i get this error:
Duet_fail

[Bug] : Add button or panel to layout function puts it into custom panel if selected first.

The "add button" or "add panel" function puts the new objects in the wrong place.

On a new install, I first clicked "create and edit panels" ... experimented with some stuff there. I saved and exited.

Then I clicked on "create and edit layouts" ... then clicked on "add button" and "add panels" but no new objects were added to the layout. When I go back to the new panel I created, I see the buttons and panels I added when I was in the layout edit mode.

When I go back to the "create and edit layouts", it is only after I create a new tab that the "add button" and "add panels" puts it into the layout.

Expected behaviour

While in "create and edit layout" mode, I expected the new buttons and panels to be added to the layout, but instead were added to the previously created panel.

Version Info:

  • OS: SBC Latest, 3.5.2
  • Browser Edge Latest Version 126.0.2592.56 (Official build) (arm64)
  • BtnCmd Version 1.03.03
  • DWC Version 3.5.2

Thank you for this great plug-in. I just installed it and it looks very promising for my project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.