#help on installing afc klipper add on for creality k1c
1 messages · Page 1 of 1 (latest)
Thanks, can you run echo $0 and give me the output?
and also what version of klipper is this running?
Also trying running this command on the file dos2unix install-afc.sh I just tested mine with having windows line ending and got the same error, so maybe you don't have the right line endings in the file
K1s also need root level user enabled, is that done?
It should be an option in the menu if not.
it is rooted
@slow hedge Don't you have some experience with the K1 printers?
@simple burrow have you tried my comment above?
I'm pretty most K1s don't have bash itself installed
yes, but it doesn't really seem to do anything, it doesn't give an error, but it doesn't seem to install anything
ok, just wanted to rule it out
you can try running sh install-afc.sh to override the shell interpreter, but I don't recall how POSIX compliant I made things
this will be a crapshoot and a half
klipper lives in different dirs
/usr/share/klipper
and is like klipper 11?
its old
if this user is running pellcorps simpleAF klipper modification they will have a better success rate since pellcorp is an active dev in the community
oh and its a MIPS installation
Even with different directories, the script should still support it (but it isn't tested well) ```Usage: install-afc.sh [options]
Options:
-k <path> Specify the path to the Klipper directory
-m <moonraker config path> Specify the path to the Moonraker config directory (default: ~/printer_data/config)
-s <klipper service name> Specify the name of the Klipper service (default: klipper)
-u Uninstall the extensions
-b <branch> Specify the branch to use (default: main)
-h Display this help message
Example:
./install-afc.sh [-k <klipper_path>] [-s <klipper_service_name>] [-m <moonraker_config_path>] [-b <branch>] [-u] [-h]```
the mips system does wonky things where it wants it all compiled into .pyc
i remember this vividly
bah
@simple burrow are you running the stock K1 motherboard or have you upgraded to a m5p /m8p
stock k1 motherboard
are you using pellcorps "simpleAF" klipper or just stock
stock
try
./install-afc.sh -s /usr/share/klipper -m /usr/share/printer_data/config/
idk what to do about the service cuz its an init.d not a systemctl on that system
@zealous patio might be able to guide me on that part of the command
that ... should get the directory layout proper but no promises on the stuff loading / working
Its old python and old klipper and MIPS not ARM
still error env: can't execute 'bash': No such file or directory after this command
./install-afc.sh -s /usr/share/klipper -m /usr/share/printer_data/config/
oh man lemme reach into some memory banks
its /usr/data/klipper
and /usr/data/printer_data/config/
pretty curious how this turns out honestly
its been a while since i had a k1 / messed with one 1+ years
klipper lives in one of those /usr/ dirs you can poke around with ls until you find it and then pass the location to the installer?
that means its in /usr/share/klipper then??
cuz the /usr/data/ partition had more storage for gcode files and timelapses
any luck?
I installed it manually, it did not work with install directories and did not match with my clipper on the printer
thanks again for your help
grtz
manual install worked for you though?
like once python files are there
?
asking so we can note for future support 😄
python files copied manual to directory
Now I have to test it when I have my printed circuit board
where were the directories /usr/share/klipper and /usr/data/printer_data/ ?
yes, there were the directories, that was correct
how do you know you manually installed the addon right?
Once you include AFC config in your printer.cfg klipper will load
this sounds dumb... but how would i include that? am i just adding a line with that name?
[include AFC/AFC.cfg] ?
the installer currently does like
[include AFC/*]
i get this error...
copy the macros folder and mcu foldera nd all the cfgs inside of them into your AFC folder