Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/notify-events/bash

Bash script to integrate your project with Notify.Events service.
https://github.com/notify-events/bash

alert bash bash-script call notification slack teams telegram viber voice

Last synced: about 2 months ago
JSON representation

Bash script to integrate your project with Notify.Events service.

Awesome Lists containing this project

README

        

# Bash script for Notify.Events

A simple bash script that simplifies the process of integrating your project with the [Notify.Events](https://notify.events) service to send messages to your channels.

#### Instruction on another languages

- [Русский](/README_RU.md)

# Using instructions

To send a message using a bash script, you need to:
- Add the [Bash source](https://notify.events/source/67) to your Notify.Events channel and get your `token`
- Place the [notify.events.sh](/notify.events.sh) script file into environment which have Internet connection
- Run the script passing the necessary parameters

Usage example:
```
./notify.events.sh \
--token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX \
--text="Hello world" \
--priority=high \
--image=/var/log/hourly.jpg \
--image=/var/log/weekly.jpg \
--file=/var/log/summary.log
```

# List of available parameters

| Parameter | Required | Description |
|------------|----------|---------------------------------------------|
| --token | true | param to specify your Notify.Events `token` |
| --text | true | param to specify message text (allowed html tags: ``, ``, ``, `
`) |
| --title | false | message title |
| --priority | false | message priority (available values: `highest`, `high`, `normal`, `low`, `lowest`. Default: `normal`) |
| --level | false | message level (available values: `verbose`, `info`, `notice`, `warning`, `error`, `success`. Default: `info`) |
| --file | false | attach local file |
| --image | false | attach local image |

You can use the `--file` and `--image` parameters several times in one call to attach multiple files to your message.

Use the `--help` parameter to display script usage instructions.