Skip to main content

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

  1. 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.

  2. Under your server's dropdown, find "Server Settings" -> "Integrations"

  3. 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:

icon

  1. Copy the webhook URL to your clipboard. We'll need this in a moment.

2. Installing this plugin

  1. In your Pioreactor interface, click on "Plugins". Find pioreactor-logs2discord, and click "Install" beside it. Or you can run pio plugins install pioreactor-logs2discord. Either way, this plugin will be installed on your leader Pioreactor.

  2. 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.

  1. Power-cycle (reboot) the Pioreactor leader, or ssh into the Pioreactor leader and run sudo systemctl restart pioreactor_startup_run@logs2discord.service

  2. 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

pioreactor_logs2discord-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

pioreactor_logs2discord-0.1.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pioreactor_logs2discord-0.1.2.tar.gz.

File metadata

File hashes

Hashes for pioreactor_logs2discord-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5f93a75c6b5fcdc09e843f8e30d6f68969ad24b5c3dcb34475813607dcce1277
MD5 75261b9d0d86c0ab6ed2120f8adc1436
BLAKE2b-256 8cdd33f700353dbc80b96075d13c8ed9263ca6a49d529645ffbf672c6c29992d

See more details on using hashes here.

File details

Details for the file pioreactor_logs2discord-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pioreactor_logs2discord-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c9169c9530c5656862d02e1c52fed71220b955ce05ad6b723bc74d7a49f8bed9
MD5 6afe4143fb9ce4aac1ada3d8cc9ce23d
BLAKE2b-256 14cfb83d2b76438f83d8048e9e511b210d9eb92b5221ad562d740ef84260f42a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page