Periodic timer help, Martin?

Post your questions and help other users.

Moderator: Martin

Post Reply
evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

Periodic timer help, Martin?

Post by evebrea » 03 May 2019 20:43

My Chinese Bluetooth watch keeps disconnecting (gt08) and I figured maybe it's done kind of idle system in it. So I was trying to make a timer that randomly will play a soft sound between one and 5 minutes, but periodic time inexact only goes with 15 and doesn't seem so inexact.

So here's what I did

Periodic timer
Time : {global_timefloat}

Action : script
Global_timefloat = random(60,300) +"s";

Periodic timer won't accept the global even though it let's me pick it

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Periodic timer help, Martin?

Post by anuraag » 04 May 2019 00:30

Try Global Variable Date/Time

Trigger :Global Variable Date/Time
Global Variable : global_timefloat

Action : script
Global_timefloat = addMinutes(triggertime, random(1, 5))

evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

Re: Periodic timer help, Martin?

Post by evebrea » 05 May 2019 03:57

that worked, thanks

Post Reply