Si quelqu'un d'autre tombe sur ce site, je voulais juste le mettre à jour et le recommander. https://boxcar.io/ comme solution.
En ce moment, je l'utilise pour m'envoyer une notification lorsque mon Macbook s battery is running low. Pour cela, j'ai simplement créé un script PHP et l'ai ajouté à ma crontab.
Le script de base est :
<?php
$notify_when_below = 10;
$battery_charge = trim(exec("pmset -g batt | grep -o ...% | grep -o ..."));
if((int)$battery_charge < $notify_when_below){
curl_setopt_array(
$chpush = curl_init(),
array(
CURLOPT_URL => "https://new.boxcar.io/api/notifications",
CURLOPT_POSTFIELDS => array(
"user_credentials" => 'YOUR_DEVICE_ACCESS_TOKEN',
"notification[title]" => 'Low battery alert!',
"notification[long_message]" => '<b>Macbook battery level is at '.(int)$battery_charge.'%!</b>',
"notification[sound]" => "detonator-charge",
)));
$ret = curl_exec($chpush);
curl_close($chpush);
}