Skip to content

Bakterio/karmen-helper

Repository files navigation

Karmen helper

This repo contains 2 scripts.

1. karmen-helper.py

The first one, karmen-helper.py is no longer under development and was meant to search in uploaded files on your karmen instance.

2. printer-notificationer.py

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.

Dependencies

  • 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)

Installation

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

Usage

Using venv

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
    

Without using venv

Install python dependencies form requirements.txt

pip install -r requirements.txt

Then run pyhton scripts

python3 printer-notificationer.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages