Please add option to set delay also in seconds, minutes and hours and calculate total. E.G. when i put 1 in hours and 15 minut it will calculate total 1 hour and 15 minutes. E.G. 2:
And when total is larger than 10 minutes it should use filesystem. Then it will work also if homebridge is restarted.
total = (hours * 3600000) + (minutes * 60000) + (seconds * 1000) + miliseconds;
if (total > 600000) {
// use file system
}
else {
// setTimeout
}
Hi.
Please add option to set delay also in seconds, minutes and hours and calculate total. E.G. when i put 1 in hours and 15 minut it will calculate total 1 hour and 15 minutes. E.G. 2:
And when total is larger than 10 minutes it should use filesystem. Then it will work also if homebridge is restarted.