TU - timer utilities

TU: timer utilities (pick number, image or file every minute, hour?)

Syntax

tu(mode, [timer])

Arguments

  • mode: Mode (see examples)
  • timer: Timer (in minutes, can be a fraction like 0.1)

Examples

FormulaDescription
$tu(rnd, 1, 10, 20)$Return a random number between 10 and 20 every minute
$tu(seq, 1/4, 1, 100)$Goes from 1 to 100 (included) changing every 15 seconds
$tu(rndimg, 15, "/sdcard/pictures")$Pick a random image file from directory every 15 minutes
$tu(rndimg, 5, "/sdcard/pictures", "txt")$Pick a random image file matching pattern every 5 minutes
$tu(rndfile, 15, "/sdcard/foo")$Pick a random file from directory every 15 minutes
$tu(rndfile, 5, "/sdcard/foo", "txt")$Pick a random file matching pattern every 5 minutes



Privacy Policy