Hubot Slack bot for OctoPrint interactions
6.6K
A hubot Slack bot designed to work with octoprint



!stop {printer} - stop a print
!cancel {printer} - stop a print
!snapshot {printer} - stop a print
!status {printer} - stop a print
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"
}
}
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
Content type
Image
Digest
Size
68 MB
Last updated
almost 5 years ago
docker pull myoung34/docker-octobot