Skip to content

Simple script to trigger a static pushover notification. Pay attention to allowed time slot and throttle limit.

Notifications You must be signed in to change notification settings

1element/pushover-notification-with-throttle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Pushover notification with throttle limit

This is a simple script to send a static notification to your mobile phone. It uses the pushover API and thus requires a pushover client on your mobile device. The script will pay attention to a given notification time slot and throttle limit.

There are no other dependencies, except PHP with installed cURL extension.

Usage

Edit pushover-notify.php and change the $configuration array to your needs:

$configuration = array(
  // allowed time slot for notifications: start hour (8 => 8:00)
  'startTime'     => '8',
  // allowed time slot for notifications: end hour (22 => 22:59)
  'endTime'       => '22',
  // notification limit: only send one notification every x minutes
  'throttle'      => '-5 minutes',
  // pushover api token
  'pushoverToken' => 'XXX',
  // pushover user token
  'pushoverUser'  => 'XXX',
  // title for pushover notification
  'title'         => 'IP camera: motion detected',
  // message for pushover notification
  'message'       => 'IP camera at front door has motion detected.',
  // url for pushover notification (set to false if not needed)
  'url'           => false,
);

Run it from command line:

php pushover-notify.php

About

Simple script to trigger a static pushover notification. Pay attention to allowed time slot and throttle limit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages