Compare commits

..

No commits in common. "f56e70f7846d316a6c7af3add250c811001cccc8" and "69c21482948b86d43465abce3dd097f707e1e92e" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -19,18 +19,18 @@ Before using the script, you need to set the following configuration variables:
- `MESSAGE`: The content of the notification you want to send. - `MESSAGE`: The content of the notification you want to send.
- `LOG_FILE`: The file where the logs will be stored. The default is `gotifyer.log`. - `LOG_FILE`: The file where the logs will be stored. The default is `gotify_notifications.log`.
## Usage ## Usage
1. Clone or download the script to your local machine. 1. Clone or download the script to your local machine.
2. Open the script in a text editor and replace the configuration variables with your own values. 2. Open the script in a text editor and replace the configuration variables with your own values.
3. Make the script executable: 3. Make the script executable:
```bash ```bash
chmod +x gotifyer.sh chmod +x gotify_notification.sh
``` ```
4. Run the script: 4. Run the script:
```bash ```bash
./gotifyer.sh ./gotify_notification.sh
``` ```
## How It Works ## How It Works

View File

@ -8,7 +8,7 @@ MESSAGE="<YOUR_MESSAGE>"
HOSTNAME=$(hostname) # Get the hostname of the machine HOSTNAME=$(hostname) # Get the hostname of the machine
TITLE="$HOSTNAME - $MESSAGE_TITLE" # Title with hostname prefixing the message TITLE="$HOSTNAME - $MESSAGE_TITLE" # Title with hostname prefixing the message
PRIORITY=5 # Notification priority (1-5) PRIORITY=5 # Notification priority (1-5)
LOG_FILE="gotifyer.log" LOG_FILE="gotify_notifications.log"
# Function to log messages # Function to log messages
log_message() { log_message() {