This repo contains 2 scripts.
The first one, karmen-helper.py
is no longer under development and was meant to search in uploaded files on your karmen instance.
The second one, printer-notificationer.py
is functioning. It will send you a notification when printer has finished printing, in order that you can clean it and print another thing you want. Optionally the script will read you the notification loud, so you won't miss it.
- python 3 - for running the script
- libnotify - for sending notifications using notify-send.
- espeak - speech to text library for notifying user, when printer finished printing (optional, but you need to comment the line in the script if you don't want to use it)
Just clone this repo wherever you want.
git clone https://github.com/Bakterio/karmen-helper.git
Then put your karmen token with read-all access in token.txt
echo "your token here" >> token.txt
Run script using run.sh. It opens python virtual environment and run the .py script.
- Give permissions to run.sh using chmod
sudo chmod +x run.sh
- Run script
./run.sh
Install python dependencies form requirements.txt
pip install -r requirements.txt
Then run pyhton scripts
python3 printer-notificationer.py