Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation instructions #1

Open
moebis opened this issue Sep 4, 2021 · 2 comments
Open

Installation instructions #1

moebis opened this issue Sep 4, 2021 · 2 comments

Comments

@moebis
Copy link

moebis commented Sep 4, 2021

It's not clear how to install this on the pi. How do you invite the bot to a slack workspace and channel? Do you install the app.py in the Moonraker components directory?

@mrmccain9
Copy link

I don’t have much experience running python code on pi, so I’ve been limping through this. So far for me the following commands appear to have worked through SSH into the pi but I seem to be missing the key step of how to actually run the app.py correctly.

python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install slack_bolt
python3 -m pip install requests
pip install python-dotenv
git clone https://github.com/eecue/klipper-slackbot/
source .venv/bin/activate
cd klipper-slackbot
ls
python3 app.py

And I get the following output

Traceback (most recent call last):
  File "app.py", line 17, in <module>
    app = App(token=os.environ["SLACK_BOT_TOKEN"])
  File "/usr/lib/python3.7/os.py", line 678, in __getitem__
    raise KeyError(key) from None
KeyError: 'SLACK_BOT_TOKEN'

Which I need help deciphering.

Any help would be great, as I’m loving Fluidd but missing my octopod print status notifications.

@eecue
Copy link
Owner

eecue commented Nov 29, 2021

You need to copy the .env.example file to .env and fill in the values with your secrets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants