Tercero AI-Nuler

Push Notification

Download our Pager app for free and start receiving push notifications on your device.

No registration required.

To send push notifications using our Notification API, you can do any of the following methods. Make sure to replace the highlighted DEVICE_KEY with the device key found on your mobile device when you run the Pager app. Also change the highlighted MESSAGE with your own message.

How to Use

Method 1: Via Browser

Enter the following link on the browser.

https://notification.tercero-ainuler.com/?action=send&to=DEVICE_KEY&message=MESSAGE

Method 2: Via Command Prompt (for Windows-based Systems)

You need to download and install wget to be able to send notifications on the command line. Once installed, you can run below command.

wget 'https://notification.tercero-ainuler.com/?action=send&to=DEVICE_KEY&message=MESSAGE'

Method 3: Via Terminal (for Linux-based Systems)

You can use the curl command on Linux-based systems

curl 'https://notification.tercero-ainuler.com/?action=send&to=DEVICE_KEY&message=MESSAGE'

Custom Alerts

From the Pager app, you can define custom alerts with it's own vibration pattern and ringtone. Then use this alert when sending messages by including &alert_tag=ALERT_TAG on the API call. Make sure to change ALERT_TAG with the tag name of the alert you created.

curl 'https://notification.tercero-ainuler.com/?action=send&to=DEVICE_KEY&message=MESSAGE&alert_tag=ALERT_TAG'

Optional Parameters

Additional optional parameters that you can use are from and subject

curl 'https://notification.tercero-ainuler.com/?action=send&to=DEVICE_KEY&message=The database server is currently down!&subject=Server Down&from=IT Team'

Use Cases

Use Case #1: Server Monitoring

You can setup a monitoring system for your server and get notified whenever there is a downtime.

See example below that monitors google.com

#!/bin/bash
# A script that check for server connectivity
# and sends a notification message when the server connectivity is lost

count=$(ping -c 4 google.com | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
if [ $count -eq 0 ]; then
   curl 'https://notification.tercero-ainuler.com/?action=send&to=DEVICE_KEY&message=Lost connectivity to the server!&subject=Server Offline&from=IT Team'
   sleep 3
fi

This can be scheduled to run repeatedly for a certain period, like every minute. See example below that schedules this using cron on Linux. Save the above shell script and save it as cron_server_check.sh, then use below code on your cron to execute the script every minute. Change path_to_script to the correct path of your script file.

*/1 * * * * bash /path_to_script/cron_server_check.sh

Use Case #2: Task Completion

Get notified when a long running task has completed.

Example below is a task that does a full backup. Once the backup has completed, you will get a notification on the completion status.

#!/bin/bash
rsync -aq SOURCE DEST
curl 'https://notification.tercero-ainuler.com/?action=send&to=DEVICE_KEY&message=Backup of Files have been completed!&subject=Maintenance&from=IT Team'

Use Case #3: Integration with HRIMS

Receive notifications regarding leave, roster, and self-service request approvals.

Use the following steps to enable integration with HRIMS

  1. On the employee details page, update the field 'Superior (+1)' with the employee number of the +1 superior
  2. Still on the employee details page, update the 'Internal Employee Number 1' with the device key of the employee that can be found on the Pager app installed on the employees device.
  3. On the employee details page of the +1 superior, update the 'Internal Employee Number 1' with the device key of the +1 superior that can be found on the Pager app installed on the +1 superiors' device.

Get In Touch

Can"t read the image? Click here to refresh.
© 2022 Tercero AI-Nuler. All rights reserved.