11.10.2023, 08:02
Hello, fee_connect
Here is a script for hour counter.
Here is a script for hour counter.
Code:
value = grp.getvalue('38/1/4')
limit = 50
year = os.date('%Y')
key = 'counter_' .. year
if value > limit then
minutes = storage.exec('incr', key)
hours = math.round(minutes / 60)
grp.checkupdate('38/1/6', hours)
end