calculate current time + timer

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
User avatar
madpatrick
Posts: 761
Joined: Monday 26 December 2016 12:17
Target OS: Linux
Domoticz version: 2025.2
Location: Netherlands
Contact:

calculate current time + timer

Post by madpatrick »

Hi,

I want to display the shut off time of a device.
I have in the script a timer, but how do i calculate the shut off time

It should somethng like : ostime()+ timer = new time

for example shut off command at 13:00 hr with timer 15 minutes should display 13:15 hr
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2025.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest