Description Usage Arguments Value Note Examples
View source: R/update_glance.R
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.
1 2 3 4 5 6 7 8 9 10 | update_glance(
title = NULL,
text = NULL,
subtext = NULL,
count = NULL,
percent = NULL,
user = get_pushover_user(),
app = get_pushover_app(),
device = NULL
)
|
title |
(optional) a description of the data being shown, such as "Widgets Sold" (max. 100 characters) |
text |
(optional) the main line of data, used on most screens (max. 100 characters) |
subtext |
(optional) a second line of data (max. 100 characters) |
count |
(optional) integer value shown on smaller screens; useful for simple counts |
percent |
(optional) integer percent value (0..100) shown on some screens as a progress bar/circle |
user |
user/group key (see |
app |
application token (see |
device |
(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 httr::response object
errors
: a list of error messages (only for unsuccessful requests)
Glances are currently in beta, and features may change.
1 2 3 4 | ## Not run:
update_glance(count = 37)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.