BLUF: As you see on this screen I can’t update parameters using the webui of fluidnc.
Can anyone explain what to do in order to allow me to edit configuration items in the webui? I had to reload everything because I accidentally deleted the index.html.gz which removed the webui and therefore I couldn’t do anything with the jackpot controller board.
I’ve gotten to the point where I have fluidnc loaded via the webinstaller, uploaded the config.yaml, macroconfig.json, and index.html.gz. I made initial edits to the config using my connection via webinstaller. Then I plugged the Esp32 into the jackpot board and connected via access point and the webui. Once I tried to edit it, this is what happened.
Is that the initial captive portal that came up automatically when you joined the jackpots wifi? You might need to open that address in a ‘proper’ browser if it is.
That looks like you have multiple things connected performing actions that are interfering with each other.
I would make sure all browser instances are closed that could be connected to the WebUI, close any instances of the FluidNC web installer, disconnect the USB, and restart the board, then try again.
FluidNC doesn’t play well with multiple connections usually.
It also could be just that the current Status of the board is not correct.
A screenshot of the Dashboard page before doing any of the reset steps above would be helpful in determining if it’s a concurrent connection issue, or a State issue.
The following states should be ok to set config values:
Idle
Alarm
ConfigAlarm
SafetyDoor
If the Status says anything else than those 4, then that might be the issue. For example, you can’t change a config value while in a Sleep state, or during a Feed Hold.
If the state says Critical, you can do nothing but reset the board.
That was the only actual connection, anything that I had connected to the AP had been disconnected except this laptop and only through one browser. I would recommend the same thing during initial troubleshooting though.
Are you sure about that? That error doesn’t indicate anything to do with a missing file.
If you remove the file, does it do the same again? I wouldn’t expect it to.
Changing a board configuration has nothing to do with the preferences.json file, and FluidNC should create one if it doesn’t exist, if it has a reason to.
It matters here, because we need to know for sure if that is the solution…
If that really is the solution, then we need to feed that back to the FluidNC guys for a clearer representation of the actual problem.
It would be good to double-check if that file missing gives you the same error, or if you just happened to be in a better state when you added the file, and that is what made the error go away.
I agree that adding the preferences.json file is unlikely to be the solution. I just pointed it out because typically you would upload that file as well.
It would be, but I really think it can only be one of the 2 things I mentioned above, based on what I see in the code.
The most likely culprit, in my opinion, is that the Status was not in a valid state. Pressing that ‘Set’ button only affects the running config, and does not access the file system.
I’m not sure at all. I have the jackpot disconnected from the MPCNC ATM (board connected only to 24v PS and WiFi AP). Due to a nasty thunderstorm this morning I won’t be able to go outside and connect it back up until tomorrow. If this is something I can learn more about though, I’m in!
Give me a few moments and I’ll remove the file and check.
Initially when I ran into this problem I couldn’t change any settings I tried (probably around 10). I ensured I didn’t violate any syntax/float/integer rules (not quite sure how to word that).
After deleting the preferences.json file again, I can’t find a setting in the webui under “config items” radio button, that I CAN change. I’ve tried /stepping/idle_ms, /stepping/pulse_us, /uart1/baud, /axes/x/soft_limits, /axes/x/feed_mm_per_min, and a bunch of others just now and get this error again.
I found that Once I’ve uploaded preferences.json onto the Esp32 flash, and only after using “reset the firmware” button on the dashboard screen, can I “set” config settings without the error. If I use the “restart fluidnc” button on the fluidnc tab (same area that has settings but at the top) after uploading the file, I cannot make the settings “set”.
I’m not proficient with this esp32 And fluidnc stuff yet, but I’ll entertain any opportunity to learn more and help where I can. I’m more familiar with RPi, stm32, and Klipper, but I usually am fighting software/firmware/communications issues by living the MAC life instead of PC.