How can i send sms to missed call number only on first missed call by that number during a hour

user20

New member
Hey Macrodroid community members!
Help me creating a macro that sends sms to a number when i have a missed call from that number. But it should not send the sms again on 2nd, 3rd, 4th.... missed call (by that number) at least for one hour.
If i get the missed call again from that number after one hour it should send sms.
 

dhj49er

Well-known member
Hey Macrodroid community members!
Help me creating a macro that sends sms to a number when i have a missed call from that number. But it should not send the sms again on 2nd, 3rd, 4th.... missed call (by that number) at least for one hour.
If i get the missed call again from that number after one hour it should send sms.
Sure we can help.

Please post a screenshot of your macro so we can see what needs to be done to get it working.
 

Dm114

Well-known member
Hey Macrodroid community members!
Help me creating a macro that sends sms to a number when i have a missed call from that number. But it should not send the sms again on 2nd, 3rd, 4th.... missed call (by that number) at least for one hour.
If i get the missed call again from that number after one hour it should send sms.
I would suggest to create a dictionary with:
- Key = missed call number
- Value = system time (Magic Text) the message was sent

When a call is missed, prior to sending a SMS, check whether this number already exists in the dictionary. If so, check whether time of the previous SMS is lower than current time minus 1 hour (3600 seconds).
 

user20

New member
Sure we can help.

Please post a screenshot of your macro so we can see what needs to be done to get it working.
Thank you for your response! I've created this macro and it is working as it should. But i want it not to send this SMS on every missed call by that number, for example if a number made 5 calls to me one after another, this macro will send him this SMS 5 times. But i want it to send SMS only for the first missed call by that number and don't send for another 1 hour to the same number.
But if the number calls me again after one hour it will send that SMS again just once, and not again for one hour. Hope i'm clear in saying what i'm trying to say. And sorry for bad English as it is not my first language.
 

Attachments

  • macrodroid screenshot.jpg
    macrodroid screenshot.jpg
    74.3 KB · Views: 5

user20

New member
I would suggest to create a dictionary with:
- Key = missed call number
- Value = system time (Magic Text) the message was sent

When a call is missed, prior to sending a SMS, check whether this number already exists in the dictionary. If so, check whether time of the previous SMS is lower than current time minus 1 hour (3600 seconds).
Thank you for your response! I'm new to the MacroDroid so i don't know how to do this. I have tried importing this solution:
but it didn't work for me.
 

Dm114

Well-known member
Thank you for your response! I'm new to the MacroDroid so i don't know how to do this. I have tried importing this solution:
but it didn't work for me.
Let me a few minutes...
 

Dm114

Well-known member
Thank you for your response! I'm new to the MacroDroid so i don't know how to do this. I have tried importing this solution:
but it didn't work for me.
Here you have...

IMG-20240414-WA0002.jpg

20240414_110423.jpg

20240414_110448.jpg

20240414_110509.jpg

The Date/Time Trigger is to avoid the dictionary to become too big by storing all your missed called numbers without any limitation. It's the reason why I suggest to clear it every morning at 6:00. Otherwise you can delete this trigger (as well as the first IF clause) and the Else clause followed by the Clear action and keep the dictionary as log at clear it manually.
 

user20

New member
Here you have...

View attachment 9392

View attachment 9394

View attachment 9395

View attachment 9396

The Date/Time Trigger is to avoid the dictionary to become too big by storing all your missed called numbers without any limitation. It's the reason why I suggest to clear it every morning at 6:00. Otherwise you can delete this trigger (as well as the first IF clause) and the Else clause followed by the Clear action and keep the dictionary as log at clear it manually.
Thank you dear! I will try this.
 

user20

New member
Here you have...

View attachment 9392

View attachment 9394

View attachment 9395

View attachment 9396

The Date/Time Trigger is to avoid the dictionary to become too big by storing all your missed called numbers without any limitation. It's the reason why I suggest to clear it every morning at 6:00. Otherwise you can delete this trigger (as well as the first IF clause) and the Else clause followed by the Clear action and keep the dictionary as log at clear it manually.
I've successfully configured this macro it worked. Thanks a lot!
 
Top