Push logs generated by Pioreactors to your Discord workspace
Project description
Pioreactor Logs2Discord
This is a Pioreactor plugin to post a bioreactor's logs to a Discord channel.
Installation
This is a two part installation.
1. Setting up your Discord channel
-
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.
2. Installing this plugin
-
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 pioreactor_startup_run@logs2discord.service
-
In your dedicated Discord channel, you should start to see logs arrive!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pioreactor_logs2discord-0.2.1.tar.gz
.
File metadata
- Download URL: pioreactor_logs2discord-0.2.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0rc2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bba46d392d88a47295c533e6cdfde3c6c730ea08a4586baee574faa5fbc2403 |
|
MD5 | 90910256b9c8588b0510c8c46045c527 |
|
BLAKE2b-256 | 0334a60faceed0294e729d2cdb7c148ebd2a076ba6472ad2c60c0bce90c8badc |
File details
Details for the file pioreactor_logs2discord-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pioreactor_logs2discord-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0rc2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 497e8982357a1615e5a511d4a000828794dce5bdd2b0bfae29770d3a1221c62e |
|
MD5 | 1069c3030a020e202046b0c0b3531d0a |
|
BLAKE2b-256 | 64276ab7b34d0fd64f149c6a2dbe120468170f386c9f38adfd8a578c00ae5676 |