Receive PushBullet notifications from e-mails sent to a mailbox. This script requires that PHP is able to execute imap_ functions to read your mailbox. Original made to receive PushBullet messages from TransIP server monitoring notifications (see bottom).
- PushBullet service by PushBullet (http://www.pushbullet.com)
- PushBullet PHP API by ivkos (https://github.com/ivkos/PushBullet-for-PHP)
- PHP IMAP by barbushin (https://github.com/barbushin/php-imap)
- Clone the repository to your system or project folder.
- Open push.php and modify the settings on top
- Save and upload the files to your website
- Configure a cronjob to run this script every minute (* * * * * *)
API Key:
- Login using your PushBullet login credentials
- Navigate to your account settings (click your avatar at the top right corner of PushBullet.com). Your API key is listed here.
Device IDs:
- Login using your PushBullet login credentials
- Click on of your added devices in the list on the left side of the page
- Your Device ID is listed in the URL: ?device_iden=YOUR_DEVICE_ID
Dit script is oorspronkelijk geschreven om notificaties van TransIP monitoring door te sturen naar meerdere devices via PushBullet. Het instellen hiervan is erg simpel:
- Maak een e-mail account aan waarop notificaties ontvangen kunnen worden, bijvoorbeeld notifications@domein.tld
- Login op TransIP en ga naar VPS -> Contactpersonen (hoogstwaarschijnlijk ook bij andere type hosting/server beschikbaar)
- Voeg een contactpersoon toe met het e-mailadres dat je hebt aangemaakt in stap 1
- Klik op VPS Monitoring (ook hier geldt: waarschijnlijk ook bij andere hosting/server types beschikbaar)
- Voeg of bewerk een monitor profiel en activer de zojuist toegevoegde contactpersoon voor e-mail notificaties
- Voer de stappen zoals hierboven in het Engels uitgelegd om de e-mail notificaties vervolgens via PushBullet naar je devices gepusht te krijgen