17.07.2024, 10:12
Code:
webrequest = require('webrequest')
for i = 1, 252 do
address = '32/2/' .. i
data = {
object = buslib.encodega(address),
active = 'on',
controlobject = 0,
name = grp.find(address).name,
start_day = 1,
start_month = 1,
end_day = 31,
end_month = 12,
}
webrequest('schedulers', 'save', { data = data })
end
------------------------------
Ctrl+F5
Ctrl+F5