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.
Follow these instructions to set up the project on your local machine for development and testing purposes.
You will need:
- Python 3.x
- pip
- Virtualenv (optional, but recommended for environment management)
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
To enable Slack notifications, you need to create a Slack App for webhook integration or bot functionality.
- 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.
- 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.
- Go to OAuth & Permissions in the app settings.
- Add bot token scopes such as
chat:write
andchannels:read
. - Install the app in your workspace to obtain your Bot User OAuth Access Token.
Ensure your webhook URL or bot token is set correctly in your project configuration.
Run the application with:
python robottrace.py
We welcome contributions! Please see CONTRIBUTING.md
for how to submit
changes and our code of conduct.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for more details.
- Thanks to all contributors who help improve this project.