Send push notifications to your smartphone via pushover.net

Description

This Function provides a connection to the pushover.net API to send push notification to your smartphone directly from R. (ACCOUNT REQUIRED!)

Usage

1
send_push(user, message, title = "", device = "", url = "", url_title = "", priority = FALSE, timestamp = Sys.time())

Arguments

user

Your Pushover User Key.

message

The message you want to send to your Smartphone (max. 512 character).

title

Title of your notification (optional). Default: notifyR

device

Specifies the Device you want to send the notification to (optional).

url

An additional URL which will be send with the notification (optional).

url_title

Title of this URL (optional).

priority

Boolean value. If it's set to 'TRUE' the notification will be send with high Priority. You will recieve it also during your 'quiet hours' which you can set on pushover.net (optional). Default: False

timestamp

Set the Timestamp which is displayed in notification (optional). Default: Sys.time()

Author(s)

Torben Engelmeyer <torben@engelmeyer.de>

References

http://www.engelmeyer.de/notifyR

http://pushover.net

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 
## First get your user key at http://pushover.net
##

userkey <- "[YOUR PUSHOVER USER KEY]" #Define user key

send_push(userkey,"Simulation finished")

send_push(userkey,message="finished.",title="World Simulation",url="http://www.myRresults.com/",url_title="View Results online.",priority=TRUE)

send_push(userkey,"Cool Date",timestamp=as.POSIXct("1987-02-24 15:00:00", tz="CET"))

send_push(userkey,"Send notification only to my favorite Smartphone",device="favorite")




## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.