A buddy of mine mentioned to me the other day that to update the config on his Smoothieboard, he has to take out the SD card, walk it over to his PC, make the updates, and walk it back. Personally, I just
ssh into the Pi running OctoPrint and
sudo mount /dev/sda1 /mnt && sudo vi /mnt/config && sudo umount /mnt, but I understand that a lot of folks aren't nearly as much of a CLI junky as I am, so I got to thinking about leveraging OctoPrint to make it easier.
Initially, I thought maybe one of the file manager plugins could mount the Smoothie's SD card, expose the filesystem to allow editing the config file, and unmount again on demand. Unfortunately I didn't find much. After that, I poked around GitHub a bit and came across a couple interesting projects:
I also came across @foosel's comments around accessing the Smoothie's storage here:
Having read about all the peril around accessing the SD card as a USB block device, I thought it might be fun to play with Smoothie's console config commands. As of now, I have a very basic loading (via
cat /sd/config) and updating (via
There's currently no way to comment out / remove an existing setting or to uncomment / add a new setting. Adding new settings with
config-set should be easy enough, but to my knowledge there's no way to tell
config-set where in the file a new setting should go or that your new setting replaces an old commented out one, so things will get messy quickly if we go down that path.
At any rate, I just wanted to share some progress and see what people think. Is this a path worth going further down?
(Ignore the Block Device setting -- it's currently unused. It'll come in handy if I do wind up going down one of the block device access paths.)