other perks - Bushmills/Anycubic-Kobra-3-rooted GitHub Wiki

remotely saving screenshots of printer controller display

The screenshots shown on these pages were made using the same remote access, by running a small shell script remotely:

#!/bin/bash
# version: 0.0.2
# description: grab kobra 3 framebuffer, convert to png
# examples: k3screen # let script choose file name
# k3screen name # specify file name

dim="480x272"
name="${1:-k3screen_$EPOCHSECONDS}"
in="$name.raw"
out="$name.png"

ssh root@kobra3 cp /dev/fb0 "/userdata/$in"
scp "root@kobra3:/userdata/$in" .
ffmpeg -y -display_rotation 90 -pix_fmt rgb32 -s $dim -i "$in" "$out" && rm "$in"

If already mounted, the frame buffer contents file can processed directly by the conversion, rather than copied first. Produced output files look like this example screenshot:

screenshot

I just noticed that ffmpeg is also installed on Kobra 3. Therefore it should be capable to convert the raw bitmap to an image of some format too. The path to the binary is /ac_lib/lib/third_bin/ffmpeg.

getting rid of the installed test models

Who wants a multicolour 2D shark shaped bottle opener anyway.
Well, they can just be moved or deleted from command line, or through the file manager running on computer.
The contents of the internal disk for storing print models is /useremain/app/gk/gcodes. A subdirectory holds
those test and demo files.
It appears that, if the directory is completely removed, it will be re-created on next boot, albeit empty.
As the directory resides on an ext4 volume, symlinking to other locations, such as the mount point of thumb drives, is possible. Printer specs say that only one USB slot is "supported", while the other slot serves as "backup". Connecting two thumb drives at the same time works fine, but user interface of firmware has no provisions to access the second drive from the controller display. Still, mounting and symlinking the second thumb drive to accessible locations is quite possible.
Specs say that firmware isn't guaranteed to work with thumb drives > 8 GB. But as far it accepted all the thumb drives I offered. Those were mostly of 64 GB capacity.
An old 128 GB S-ATA SSD on an USB-to-SATA adapter, connected to one of the USB ports, also worked fine.

organize the models stored on printer in directories

no more single long list of models not related to each other, as those can now be grouped in subdirectories.