AutoNotification Ignore Repeated Notifications for a Time Duration

Discussion in 'AutoApps' started by BillN, Oct 17, 2019.

  1. BillN

    BillN New Member

    Joined:
    Oct 17, 2019
    Messages:
    3
    Likes Received:
    0
    Hello - I have a nifty WhatsApp text-to-voice notification, but it can be annoying when 1 person or group sends text after text. I only use the %antitle in my voice output: "WhatsApp message received from %antitle" Do you have a simple way to ignore exact repeats for 5 minutes after receipt of the first notification? Many thanks!!
     
    Last edited: Oct 19, 2019
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You could set 2 variables when you receive a message:
    • %LastTitle to %antitle
    • %LastTime to %TIMES
    Then at the start of the task check if %LastTitle matches %antitle and if %TIMES-%LastTime < 300 (5 minutes). If both of these are true, stop the task :)
     
  3. BillN

    BillN New Member

    Joined:
    Oct 17, 2019
    Messages:
    3
    Likes Received:
    0
    Amazing! I knew you'd have a simple, intuitive solution! Plus I can use this idea in other ways (reminders, etc). Thanks a ton!!
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Great! :)
     

Share This Page