About term-notify
term-notify is a simple utility app that allows your device to receive notifications from anywhere.
The service is completely free. Since it is a home server, I do not guarantee it's reliability.( As long as I am alive. I think I will keep it running until it lost its uses. ).
Using term-notify
Click the settings button on the top right -> New channel
Once your channel is successfully created. Your channel will be list under the "List of registered channel". The list currently show your channel id, you can copy an example command with the ID selected.
The ID is your auth ticket. Please keep it safe & secret. If you think your ID has been compromised. Just request a remove and request
another channel and you'll be good.
API
The API is very simple. After you registered your channel. Just send a post request to notify.astropenguin.net. But for the sake of completeness. I will explain the API thoroughly:
Post: https://notify.astropenguin.net/
Query Parameters:
id: The id you received from registering a new channel via the term-notify app.
title: title of the notification
message: content of the notification
action: the action, since the register/remove/renew channel action can only be done via term-notify app. Your only option is "deliver". Which delivers the message to your device:)
Example:
// curl
curl https://notify.astropenguin.net/ --data "id=<YOUR_ID>&action=deliver&title=Hello%20world&message=Test%20notification%20message"
// wget
wget -qO- https://notify.astropenguin.net/ --post-data="id=<YOUR_ID>&action=deliver&title=Hello%20world&message=Test%20notification%20message"
Setting up your own term-notify
Please head to github for step by step instructions.
斟酌 鵬兄
Fri Feb 12 2016 02:42:49 GMT+0000 (Coordinated Universal Time)
Last modified: Fri Feb 12 2016 21:58:17 GMT+0000 (Coordinated Universal Time)