This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Add scheduler with a single click ?
#10
Code:
webrequest = require('webrequest')

data = {
  name = 'new holiday',
  type = '', -- '' (specific date) or 'dayweeknr' (day of the week)
  day = 1, -- day of the month number
  month = 1, -- month number, 1 = Jan, 12 = Dec
  year = 0, -- 0 = all years, specific year otherwise
  duration = 1, -- duration in days
  dayofweek = 1, -- day of the week, 1 = Monday, 7 = Sunday
  dayweeknr = 1, -- 1st, 2nd etc day in a month, 6th value = last
}

res, err = webrequest('schedulers', 'holidays-save', { data = data })
log(res, err)
Reply


Messages In This Thread
RE: Add scheduler with a single click ? - by admin - 04.04.2025, 10:29

Forum Jump: