Beacon Scanner + Repetier
Hey there,
I am trying to install a beacon sensor to my klipper printer, but I can't even download the beacon-module through a regular ssh session.
It starts the download
I am trying to install a beacon sensor to my klipper printer, but I can't even download the beacon-module through a regular ssh session.
It starts the download
"cd ~
git clone https://github.com/beacon3d/beacon_klipper.git
./beacon_klipper/install.sh"
But it says:
"beacon: klipper or klippy env doesn't exist"
If I do ls dev by id it shows the beacon correctly, but it seems that I can't talk to it at all.
Has anyone set up a Beacon with Repetier? How did you manage to do it. I'm a bit lost.
German answers welcome too.
Comments
"beacon: klipper or klippy env doesn't exist"
You must activate correct klipper environment. For server the klipper installations are all in /opt/klipper/<printer slug name>
I guess after activating the env it would work better.
Or do you even need to unpack this inside klipper sources?
Apparently it needs to be unpacked inside klipper sources.
In the past I have only done the beacon install on printers running mainsailos, here the process was incredibly simple, because you can simply paste the command after login through shell.
sudo -i sudo -u repetierserver bash
and you are user repetierserver and have no permission issues any more. Same installation process just adapt folders to the one used. We can have multiuple klipper instances in parallel so we need different solution to handle it and also it is better to run klipper as same user than server so there are no permission issues.
Unfortunately I'm not sure if this has anything to do with it. As of right now the printer still reports, that "beacon" is not a valid config section.
Looking into installer
You get the error when you did not set HOME variable correctly. So run
export HOME=/opt/klipper/<slug>
before running installer and it should find the env correctly.
in the script is wrong here. Should be
KDIR="${HOME}"
when you use
export HOME=/opt/klipper/<slug>
I think. that is already the klipper dir with klippy-env as subdirectory.
That did the trick for the initial install.
Unfortunately, because there is no update manager for beacon in Repetier, I need to manually pull the update.
When running the update
./update_firmware.py update all
it tries to do a sudo dfu firmware upload. Because I don't have the password, the update fails.
Anything you can think of, that I can do here? It won't let me start the update without running it as repetierserver..
/etc/sudoers.d/repetierserver-perms
how it looks and add one mor eline withh full path to dfu.
type dfu
to see where the file is stored. I mean enter complete path starting with / to the dfu executeable. If it is not in linux path because it is in the klipper folder somewhere youe need to find where. In my klipper/linux it does not exist.
sudo echo "repetierserver ALL=NOPASSWD: /usr/bin/dfu-util" >>/etc/sudoers.d/repetierserver-perms
returned a permission error, but I was able to edit the file via winscp. After running the update command it flashed fine. It is now connected to the printer.
Again, thanks for the help. Highly appreciated. :-)