mirror of https://github.com/SeanOMik/znc-push.git
commit
9fe9eaf052
|
@ -11,6 +11,7 @@ conditions. ZNC Push current supports the following services:
|
||||||
* [Prowl][]
|
* [Prowl][]
|
||||||
* [Supertoasty][]
|
* [Supertoasty][]
|
||||||
* [PushBullet][]
|
* [PushBullet][]
|
||||||
|
* [Airgram][]
|
||||||
* Custom URL GET requests
|
* Custom URL GET requests
|
||||||
|
|
||||||
This project is still a Work In Progress, but should be functional enough and stable enough
|
This project is still a Work In Progress, but should be functional enough and stable enough
|
||||||
|
@ -212,6 +213,7 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
||||||
* "prowl"
|
* "prowl"
|
||||||
* "supertoasty"
|
* "supertoasty"
|
||||||
* "pushbullet"
|
* "pushbullet"
|
||||||
|
* "airgram"
|
||||||
* "url"
|
* "url"
|
||||||
|
|
||||||
* `username = ""`
|
* `username = ""`
|
||||||
|
@ -233,7 +235,7 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
||||||
When using Pushover, this option allows you to specify a single device name to send
|
When using Pushover, this option allows you to specify a single device name to send
|
||||||
notifications to; if blank or unset, notifications will be sent to all devices.
|
notifications to; if blank or unset, notifications will be sent to all devices.
|
||||||
|
|
||||||
This option must be set when using PushBullet. This module supports both `device_id` (older, numeric id) and the `device_iden` (newer, alphanumeric id) used by PushBullet. You can find your `device_iden` by navigating to a device page and noting the last part of the URL.
|
This option must be set when using PushBullet and Airgram. This module supports both `device_id` (older, numeric id) and the `device_iden` (newer, alphanumeric id) used by PushBullet. You can find your `device_iden` by navigating to a device page and noting the last part of the URL.
|
||||||
|
|
||||||
### Notifications
|
### Notifications
|
||||||
|
|
||||||
|
@ -414,6 +416,7 @@ This project is licensed under the MIT license. See the `LICENSE` file for deta
|
||||||
[Prowl]: http://www.prowlapp.com
|
[Prowl]: http://www.prowlapp.com
|
||||||
[Supertoasty]: http://www.supertoasty.com
|
[Supertoasty]: http://www.supertoasty.com
|
||||||
[PushBullet]: https://www.pushbullet.com/
|
[PushBullet]: https://www.pushbullet.com/
|
||||||
|
[Airgram]: http://airgramapp.com/
|
||||||
|
|
||||||
[issues]: http://github.com/jreese/znc-push/issues
|
[issues]: http://github.com/jreese/znc-push/issues
|
||||||
[ZNC]: http://en.znc.in "ZNC, an advanced IRC bouncer"
|
[ZNC]: http://en.znc.in "ZNC, an advanced IRC bouncer"
|
||||||
|
|
|
@ -475,6 +475,20 @@ class CPushMod : public CModule
|
||||||
i->second = expand(i->second, replace);
|
i->second = expand(i->second, replace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (service == "airgram")
|
||||||
|
{
|
||||||
|
if (options["target"] == "")
|
||||||
|
{
|
||||||
|
PutModule("Error: target (email) not set");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
service_host = "api.airgramapp.com";
|
||||||
|
service_url = "/1/send_as_guest";
|
||||||
|
|
||||||
|
params["email"] = options["target"];
|
||||||
|
params["msg"] = message_content;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PutModule("Error: service type not selected");
|
PutModule("Error: service type not selected");
|
||||||
|
@ -1102,6 +1116,10 @@ class CPushMod : public CModule
|
||||||
else if (value == "url")
|
else if (value == "url")
|
||||||
{
|
{
|
||||||
PutModule("Note: URL requires setting the 'message_uri' option with the full URL");
|
PutModule("Note: URL requires setting the 'message_uri' option with the full URL");
|
||||||
|
}
|
||||||
|
else if (value == "airgram")
|
||||||
|
{
|
||||||
|
PutModule("Note: Airgram requires setting the 'target' with the email address of the recipient");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue