So I ported WebControl to rust and react

I have a first version Maslow that I’ve been using a version of webcontrol with for a long time and there were always some things about it that bothered me. Like the command queue architecture for the front end and the amount of load it creates on the pi3b I am using.

so I unleashed an army of bots and rearchitected it. It now runs on 64 bit Pi os using less than 2% of cpu at idle and responds immediately to commands. I no longer dread bit changes and zindexing!

I am still testing it and working out some bugs, but addresses many of the bugs in python webcontrol.

But! It also runs well from an iPhone browser.

feel free to drop questions, the install steps should be up to date as they are different. No docker version yet, but if you want one let me know and I can knock one out.

2 Likes

The 0.2.0 and 0.3.0 releases are going out today with some UI improvements and the ability to tweak a few more settings.

Cuts are still running at <4% CPU on the pi3b so a huge improvement over the original WebControl CPU usage.

1 Like

Love it! Super cool! Thanks for taking the time to share it.

1 Like

Thanks for sharing this — the low CPU use on a Pi 3B and being able to run it from a phone sound really handy. Great to see the original Maslow still getting this kind of work.

1 Like

Thanks for sharing this — dropping the Pi 3B from pegged CPU down to under 4% during cuts is a big improvement, and running it from a phone browser sounds really handy in the shop. Does the phone UI cover the full workflow, like loading a file and starting a cut, or is it mainly for monitoring and jogging once a cut is running?

1 Like

Yeah the phone has all the functionality from settings to loads to starting/stopping/pausing cuts to watching the cut.

1 Like

Release webcontrol-rs 0.3.0 · designfrontier/WebControl · GitHub is out now

Cleans up some stuff in the UI, and includes the ability to adjust the delay between sends to the maslow card. I’ve been running at the 0ms for a few cuts now and it’s been solid and faster than the python version which had a 50ms delay built into it to keep it reliable.

The 0ms does a retry if it detects that a line gets lost in transit… so still solid.

2 Likes

Release WebControl 0.4.0 · designfrontier/WebControl · GitHub is also now out

Major changes:

  • you can do future release upgrades from the web ui
  • Some safer cutting tweaks
    • A safe height at or below 0 is refused.
    • G38.3–G38.5 probe commands are never sent, since the firmware ignores them.
    • G91.1 is removed before sending, and arc centres given with G90.1 are converted to offsets the firmware understands.
    • If an arc’s start point is only known from a status report and isn’t precise, the job pauses with clear Resume advice instead of cutting a wrong arc.
  • some smaller UI tweaks
1 Like