ksergey / klipper-tg-bot Goto Github PK
View Code? Open in Web Editor NEWTelegram bot for Klipper
License: MIT License
Telegram bot for Klipper
License: MIT License
add confirmation for restart
, restart_firmware
, etc
I had problems with the bot not automatically starting after my Raspberry Pi boots.
I ran sudo loginctl enable-linger ${USER}
, as told by the README, but the bot still was not starting automatically.
After some research, this resolved my issue: StackExchange
It seems that the multi-user.target is not executed by user systemd, as was confirmed by running systemctl --user list-units --type=target
:
UNIT LOAD ACTIVE SUB DESCRIPTION
basic.target loaded active active Basic System
bluetooth.target loaded active active Bluetooth
default.target loaded active active Main User Target
paths.target loaded active active Paths
sockets.target loaded active active Sockets
timers.target loaded active active Timers
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
6 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
I fixed the problem by following the solution in the provided StackExchange link.
I changed ~/.config/systemd/user/klipper-tg-bot.service
's last line to WantedBy=default.target
.
After the changes, I ran systemctl --user daemon-reload
and systemctl --user enable klipper-tg-bot.service
to finalize the changes.
To fix the problem altogether, you would only need to change this line to use default.target instead of multi-user.target:
klipper-tg-bot/scripts/install.sh
Line 97 in 4898b2e
I am using a Raspberry Pi 4 using Raspbian 11.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.