Glances allow you to push small pieces of data to a frequently-updated screen
such as a smartwatch or a lock screen. At least one of the title
,
text
, subtext
, count
, or percent
arguments must
be specified.
update_glance(title = NULL, text = NULL, subtext = NULL, count = NULL,
percent = NULL, user = get_pushover_user(), app = get_pushover_app(),
device = NULL)
(optional) a description of the data being shown, such as "Widgets Sold" (max. 100 characters)
(optional) the main line of data, used on most screens (max. 100 characters)
(optional) a second line of data (max. 100 characters)
(optional) integer value shown on smaller screens; useful for simple counts
(optional) integer percent value (0..100) shown on some screens as a progress bar/circle
user/group key (see set_pushover_user
)
application token (see set_pushover_app
)
(optional) name of the device(s) to send message to. Defaults to all devices.
an invisible list containing the following fields:
status
: request status (1 = success)
request
: unique request ID
raw
: the raw response
object
errors
: a list of error messages (only for unsuccessful requests)
# NOT RUN {
update_glance(count = 37)
# }
Run the code above in your browser using DataLab