Installation #
To install Pushover, follow these steps:
- Download & unzip the file and place the
pushover
directory into yourcraft/plugins
directory - Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
pushover
for Craft to see it.
Pushover works on Craft 2.4.x and Craft 2.5.x.
Overview #
Pushover makes it easy to get real-time notifications on your Android, iPhone, iPad, and Desktop (Pebble, Android Wear, and Apple Watch, too!). Sign up at pushover.net
Configuring #
Copy pushover.php into Craft's config directory and add the necessary details below.
<?php
return [
// You can find this key in your account on Pushover.net
'userKey' => ''
// You have to create an app under Your Applications to get the API token
'apiToken' => ''
];
Usage #
{{ craft.pushover.send({
title: 'Failed deployment',
message: 'Deployment to xxx.xxx.xxx.xx failed',
sound: 'spacealarm',
priority: 'emergency',
date: now,
url: 'https://site.com',
urlTitle: 'Site',
callback: 'https://callback.url/endpoint',
retry: 60,
expire: 1800
}) }}
For more information about the different options, check the API docs.
Supported option values: #
sound
- pushover
- bike
- bugle
- cashregister
- classical
- cosmic
- falling
- gamelan
- incoming
- intermission
- magic
- mechanical
- pianobar
- siren
- spacealarm
- tugboat
- alien
- climb
- persistent
- echo
- updown
- none
priority
- lowest
- low
- normal
- high
- emergency
Releases
- Fixed: Added expire parameter (required when priority = emergency)
- Fixed: Fixed extra reference to settings
- Improved: Cleaned up a bit
- Added: Initial release
Currently available for Craft consulting and custom plugin development
Contact me