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
- Go to Your Apps on the Slack API website.
- Click Create New App, select From scratch.
- Name your app (e.g., "Robot Monitor") and select your workspace.
- Click Create App.
Configuring Incoming Webhooks (for simple notifications)
- Select Incoming Webhooks from the app settings.
- Turn on incoming webhooks.
- Click Add New Webhook to Workspace.
- Choose a channel for the app to post to and authorize it.
- Copy the webhook URL. Use this URL in Robot Monitor to send messages to Slack.
Setting Bot Token (for interactive features)
- Go to OAuth & Permissions in the app settings.
- Add bot token scopes such as
chat:writeandchannels:read. - 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
Release history Release notifications | RSS feed
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
Hashes for robottrace-0.1.0-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | f2674560d06a05de797b99810145de187e9a65c1b11639264ddc1724fb4d9db3 |
|
| MD5 | e904cb83b2d2d70bf9d42015536f975e |
|
| BLAKE2b-256 | 95b3a8cbf26beaa8f74effac522ddb7b28d50a6eaf8fe205fd2ca5f79914c18f |