Skip to main content

A tool to generate slack alerts for robot errors.

Project description

Robot Trace

Overview

Robot Trace is a tool designed to monitor Hamilton VENUS robot log folder for errors and send notifications via Slack. It is based on python Watchdog and slack webhook API with a simple http request.

Getting Started

Follow these instructions to set up the project on your local machine for development and testing purposes.

Prerequisites

You will need:

  • Python 3.x
  • pip
  • Virtualenv (optional, but recommended for environment management)

Installation

Clone the repository and set up the environment:

git clone https://github.com/gorefbitim/robottrace.git
cd robottrace

Create and activate a virtual environment:

python -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`

Install the required packages:

pip install -r requirements.txt

Configuring Slack Notifications

To enable Slack notifications, you need to create a Slack App for webhook integration or bot functionality.

Creating a Slack App

  1. Go to Your Apps on the Slack API website.
  2. Click Create New App, select From scratch.
  3. Name your app (e.g., "Robot Monitor") and select your workspace.
  4. Click Create App.

Configuring Incoming Webhooks (for simple notifications)

  1. Select Incoming Webhooks from the app settings.
  2. Turn on incoming webhooks.
  3. Click Add New Webhook to Workspace.
  4. Choose a channel for the app to post to and authorize it.
  5. Copy the webhook URL. Use this URL in Robot Monitor to send messages to Slack.

Setting Bot Token (for interactive features)

  1. Go to OAuth & Permissions in the app settings.
  2. Add bot token scopes such as chat:write and channels:read.
  3. Install the app in your workspace to obtain your Bot User OAuth Access Token.

Usage

Ensure your webhook URL or bot token is set correctly in your project configuration.

Running the Application

Run the application with:

python robottrace.py

Contributing

We welcome contributions! Please see CONTRIBUTING.md for how to submit changes and our code of conduct.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for more details.

Acknowledgments

  • Thanks to all contributors who help improve this project.

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

robottrace-0.1.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robottrace-0.1.0-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file robottrace-0.1.0.tar.gz.

File metadata

  • Download URL: robottrace-0.1.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.9

File hashes

Hashes for robottrace-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f12551af6605d19f64b9261d4a8e4f573a8299bc838cde00074b37ab1f6ab8f
MD5 03bb6bfc0eeaafa64f558103aff71964
BLAKE2b-256 a15b814a57444137292a1baf55e0c52da3be09190d7dc13e5e939180b67e8747

See more details on using hashes here.

File details

Details for the file robottrace-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: robottrace-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.9

File hashes

Hashes for robottrace-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2674560d06a05de797b99810145de187e9a65c1b11639264ddc1724fb4d9db3
MD5 e904cb83b2d2d70bf9d42015536f975e
BLAKE2b-256 95b3a8cbf26beaa8f74effac522ddb7b28d50a6eaf8fe205fd2ca5f79914c18f

See more details on using hashes here.

Supported by

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