This functions calls upon the UVI API from data.gov.sg
and returns the UVI value for the given data-time.
This data provided by the API is updated hourly.
Usage
uvi(date_time = "")
Arguments
date_time
Defaults to current (SGD) time. Format: YYYY-MM-DDTHH:MM:SS
Value
A dataframe containing the UVI for the given date-time
Details
Note that there is only information on the UVI between 0700 and 1900.
Entering a date-time outside of the range would return the UVI of the
closest date time instead.