Sign inSign up

myoung34/docker-octobot

By myoung34

Updated almost 5 years ago

Hubot Slack bot for OctoPrint interactions

Image
0

6.6K

myoung34/docker-octobot repository overview

OctoBot

A hubot Slack bot designed to work with octoprint

snapshot

status

stop

Commands

!stop {printer} - stop a print !cancel {printer} - stop a print !snapshot {printer} - stop a print !status {printer} - stop a print

Configuration

Almost everything is configured with environment variables:

HUBOT_SLACK_TOKEN - The slack token to use. Generate one here HUBOT_NAME - The bot name to assign in slack CONFIG - The JSON configuration. See below

The configuration is a JSON object that represents one or more printers:

{
  "taz": {
    "OCTOPRINT_URL": "192.168.2.100",
    "OCTOPRINT_PROTOCOL": "http://",
    "OCTOPRINT_PORT": "80",
    "MJPG_PORT": "8080",
    "OCTOPRINT_API_TOKEN": "1111111111111111"
  },
  "prusa": {
    "OCTOPRINT_URL": "192.168.2.110",
    "OCTOPRINT_PROTOCOL": "http://",
    "OCTOPRINT_PORT": "80",
    "MJPG_PORT": "8080",
    "OCTOPRINT_API_TOKEN": "2222222222222222"
  }
}

Example

cat <<EOF >.env
HUBOT_SLACK_TOKEN=xoxb-...
CONFIG={"taz": {"OCTOPRINT_URL": "192.168.2.100", "OCTOPRINT_PROTOCOL": "http://", "OCTOPRINT_PORT": "80", "MJPG_PORT": "8080", "OCTOPRINT_API_TOKEN": "SOMETOKENVALUE"}}
EOF

make run

Tag summary

Content type

Image

Digest

Size

68 MB

Last updated

almost 5 years ago

docker pull myoung34/docker-octobot