This is a Pioreactor plugin to post a bioreactor's logs to a Discord channel.
This is a two part installation.
-
You probably want a dedicated channel for incoming logs, as it can get chatty. So go ahead and create a dedicated channel in your Discord channel. I've called mine
experiment_logs
. -
Under your server's dropdown, find "Server Settings" -> "Integrations"
-
Click "Webhooks" -> "New webhook" to create your webhook. Give it a name like
PioreactorLogs
, and choose the channel from step 1. Here's an avatar icon you can use too: -
Copy the webhook URL to your clipboard. We'll need this in a moment.
-
In your Pioreactor interface, click on "Plugins". Find
pioreactor-logs2discord
, and click "Install" beside it. Or you can runpio plugins install pioreactor-logs2discord
. Either way, this plugin will be installed on your leader Pioreactor. -
After installing (should take less than a minute), click on "Configuration". At the bottom of the page will be a section called
[logs2discord]
.
[logs2discord]
discord_webhook_url=
log_level=INFO
Add your webhook URL from step 4. here. Click "Save". You can also change the level of logs to report, see Python logging levels.
-
Power-cycle (reboot) the Pioreactor leader, or ssh into the Pioreactor leader and run
sudo systemctl restart [email protected]
-
In your dedicated Discord channel, you should start to see logs arrive!