Functions

WF - weather forecast

WF: weather forecast (max/min temperature, chance of rain, conditions…)

Syntax

wf(type, day, [hours])

Arguments

  • type: Info type, see examples
  • day: Forecast day index (0 is today)
  • hours: Forecast hours offset (for hourly weather, 3 means 3 hours from now plus days * 24)

Examples

FormulaDescription
$wf(min, 0)$°$wi(tempu)$Today's min temperature in local unit
$wf(max, 0)$°$wi(tempu)$Today's max temperature in local unit
$wf(cond, 0)$Today's forecast condition
$wf(icon, 0)$Today's forecast icon, one of: UNKNOWN, TORNADO, TSTORM, TSHOWER, SHOWER, RAIN, SLEET, LSNOW, SNOW, HAIL, FOG, WINDY, PCLOUDY, MCLOUDY, CLEAR
$wf(code, 0)$Today's forecast code, one of: TORNADO, TROPICAL_STORM, HURRICANE, SEVERE_THUNDERSTORMS, THUNDERSTORMS, MIXED_RAIN_SNOW, MIXED_RAIN_SLEET, MIXED_SNOW_SLEET, FREEZING_DRIZZLE, DRIZZLE, FREEZING_RAIN, SHOWERS, HEAVY_SHOWERS, SNOW_FLURRIES, LIGHT_SNOW_SHOWERS, BLOWING_SNOW, SNOW, HAIL, SLEET, DUST, FOGGY, HAZE, SMOKY, BLUSTERY, WINDY, CLOUDY, MOSTLY_CLOUDY, PARTLY_CLOUDY, CLEAR, FAIR, MIXED_RAIN_AND_HAIL, ISOLATED_THUNDERSTORMS, SCATTERED_SHOWERS, HEAVY_SNOW, SCATTERED_SNOW_SHOWERS, THUNDERSHOWERS, SNOW_SHOWERS, ISOLATED_THUNDERSHOWERS, NOT_AVAILABLE
$wf(rainc, 0)$%Today's chance of rain in percentage (if available)
$wf(rain, 0)$mmToday's precipitations in mm (if available)
$wf(temp, 0, 0)$°$wi(tempu)$Next hour temperature in local unit (if available)
$wf(cond, 0, 3)$Weather condition 3 hours from now (if available)
$df("hh:mma", wf(start, 0, 4))$ - $df("hh:mma", wf(end, 0, 4))$Start - End of validity of hourly forecast 4 hours from now (if available)
$wf(rainc, 0, 12)$%Chance 12 hours from now in percentage (if available)
$wf(wchill, 0)$$tc(utf, b0)$$wi(tempu)$Wind Chill in local unit
$wf(wspeed, 0)$$li(spdu)$Wind Speed in local unit (kmh/mph)
$wf(wspeedm, 0)$mpsWind Speed in meters per second
$wf(wdir, 0)$Wind Direction in degrees
$wf(hum, 0)$%Current humidity in percent
$wf(clouds, 0)$%Current cloud coverage in percent (if available)
$wf(press, 0)$mbarCurrent pressure in Millibars
$wf(minc, 0)$°CToday's min temperature in local unit
$wf(maxc, 0)$°CToday's max temperature in local unit

WG - web get

WG: web get (retrieve and parse text, rss and other content from HTTP links)

Syntax

wg([url], filter, params)

Arguments

  • url: Url to the http content
  • filter: Filter to use (RSS, TXT, XML, URL etc…)
  • params: Filter parameters (see examples)

Examples

FormulaDescription
$wg("goo.gl/wNMV3f", txt)$Convert HTML content at URL into plain Text
$wg("quotes.rest/qod.xml", xml, "//quote")$Quote of the day text (parse XPath expression for XML content at URL)
$wg("quotes.rest/qod.xml", xml, "//author")$Quote of the day author (parse XPath expression for XML content at URL)
$wg("www.cnet.com/rss/news/", rss, title)$Get RSS feed title
$wg("cnet.com/rss/news/", rss, desc)$Get RSS feed description
$df("hh:mma", wg("cnet.com/rss/news/", rss, date))$Get RSS feed publish date
$wg("cnet.com/rss/news/", rss, count)$Get RSS feed entry count
$wg("cnet.com/rss/news/", rss, 0, title)$Get RSS feed title for entry 0
$wg("cnet.com/rss/news/", rss, 0, desc)$Get RSS feed content for entry 0
$wg("cnet.com/rss/news/", rss, 0, link)$Get RSS feed link for entry 0
$wg("cnet.com/rss/news/", rss, 0, thumb)$Get RSS feed first thumbnail image for entry 0
$df("hh:mma", wg("cnet.com/rss/news/", rss, 0, date))$Get RSS feed date for entry 0
$wg("500px.com/popular.rss", url, "cdn.500px.org")$Extract first URL matching the pattern
$wg("500px.com/popular.rss", url, "cdn.500px.org", count)$Number of URLs matching the pattern
$wg("500px.com/popular.rss", url, "cdn.500px.org", 3)$Extract third URL matching the pattern
$wg(jsonip.com, json, .ip)$Current IP via public service (parse JSONPath expression)
$wg("api.ipify.org/?format=json", reg, '[\{"\}]', 'X')$Search and replace from URL using Regular Expression
$wg("file:///sdcard/test.txt", raw)$Dump content of a text file in the SD without parsing
$wg("http://www.slashdot.org", jsoup, "meta[property=og:title]", content)$Read html meta og:title property content on element 0 using a JSoup selector

WI - current weather

WI: current weather (temperature, rain, conditions…)

Syntax

wi(type)

Arguments

  • type: Info type, see examples

Examples

FormulaDescription
$wi(temp)$°$wi(tempu)$Temperature in local unit
$wi(flik)$°$wi(tempu)$Feels Like temperature (Heat Index) in local unit
$wi(dpoint)$°$wi(tempu)$Dew Point in local unit
$wi(fpoint)$°$wi(tempu)$Frost Point in local unit
$wi(cond)$Current weather condition
$wi(icon)$Current weather icon, one of: UNKNOWN, TORNADO, TSTORM, TSHOWER, SHOWER, RAIN, SLEET, LSNOW, SNOW, HAIL, FOG, WINDY, PCLOUDY, MCLOUDY, CLEAR
$wi(code)$Current weather code, one of: TORNADO, TROPICAL_STORM, HURRICANE, SEVERE_THUNDERSTORMS, THUNDERSTORMS, MIXED_RAIN_SNOW, MIXED_RAIN_SLEET, MIXED_SNOW_SLEET, FREEZING_DRIZZLE, DRIZZLE, FREEZING_RAIN, SHOWERS, HEAVY_SHOWERS, SNOW_FLURRIES, LIGHT_SNOW_SHOWERS, BLOWING_SNOW, SNOW, HAIL, SLEET, DUST, FOGGY, HAZE, SMOKY, BLUSTERY, WINDY, CLOUDY, MOSTLY_CLOUDY, PARTLY_CLOUDY, CLEAR, FAIR, MIXED_RAIN_AND_HAIL, ISOLATED_THUNDERSTORMS, SCATTERED_SHOWERS, HEAVY_SNOW, SCATTERED_SNOW_SHOWERS, THUNDERSHOWERS, SNOW_SHOWERS, ISOLATED_THUNDERSHOWERS, NOT_AVAILABLE
$wi(wspeed)$$li(spdu)$Wind Speed in local unit (kmh/mph)
$wi(wspeedm)$mpsWind Speed in meters per second
$wi(wchill)$$tc(utf, b0)$$wi(tempu)$Wind Chill in local unit
$wi(wdir)$Wind Direction in degrees
$wi(press)$mbarCurrent pressure in Millibars
$wi(hum)$%Current humidity in percent
$wi(clouds)$%Current cloud coverage in percent (if available)
$wi(uvindex)$Current UV index (if available)
$wi(tempc)$°CTemperature in centigrades
$wi(provider)$Weather provider used to fetch data
$df("hh:mma", wi(updated))$Time of last weather update in hh:mm format
$wi(lid)$Weather station ID (if available)
$wi(pdays)$Number of days of forecast
$wi(prain)$Provider precipitation support, 1 if available, 0 if not
$wi(prainc)$Provider rain chance support, 1 if available, 0 if not
$wi(phours)$Number of hours in the hourly forecast if available
$wi(phstep)$Provider length of hourly forecast entries, in hours, usually 1




Privacy Policy