hows it coming?
Starting over from scratch so I don't accidentally copy some edit/widget/setting which relies on one of the verboten modified .py files. It's likely going to be a while before I can get this where I want.
Still can't get widget rules to work on hal pin widgets - there doesn't appear to be a data source or channel in the widget rules for hal widgets. While I thought I remembered seeing a complete list of channels in the qtpyvcp user docs, all I can find is a short example list:
Data Source:
A data source is something the provides data channels. Examples of a data source are
which provides machine status updates, and
which provides data on the tools in the tool table.
Data Channel:
A data channel provides a single set of data which can be used in the rules expression. Examples of data channels are
Code:
status:tool_in_spindle
and
Code:
tooltable:current_tool?comment
.
I've tried
exported_hal:nnnn and
hal:nnnn, but neither of those make a connection.
The LEDs I was attempting have a hard-coded 'off' state color (black), and I was trying to get a OFF=green / ON=red appearance. Superimposing two LEDs on top of each other didn't work as I couldn't trigger one to be transparent in an off state. I wound up with two LEDs next to each other - green & red - but that just looked dumb and I abandoned LEDs for QLabels.
I can set a QLabel OFF state color as well as ON state... make it look like the two-state green/red indicator I was hoping for.
The problem I got stumped on, and which Claude worked out leading to the forbidden .py files, is a three-state Qlabel indicating machine state: STOPPED/RUNNING/PAUSED. I've found that a macro or subroutine can get hung or an error, and it's hard to tell if the machine is running but waiting for something, paused, or actually stopped. An indicator clearly displaying the machine state would solve that.
So that's the next hurdle once I re-do all the basic edits.