create a macro capable of launching an app at set times against rodents read and let me know

Hi everyone, I have a problem of this type in my house in the country developed on two floors, I discovered that at certain times of the day for example from 21 to 23 for the ground floor and in the morning from 5 to 6 for the under roof very annoying presence of rodents such as country mice and dormice, which seriously risk ruining the under-roof and wooden floor, with all the problems of the case.
considering the presence of rodents I immediately thought of an ultrasound generator capable of annoying them or even better of removing them via android app to try on my smartphone xiaomi readmi note 8, in the android market I found the app (suara ultrasonik pengusir kelelawar) and incredibly while the rodents could be heard working once the sound number 5 of the app was running, which lasts about twenty seconds, the rodents suddenly stopped gnawing and did not show their presence anymore.
but the problem
it came back the next day at the same, which was solved by generating sound 5 again from the app.
so I was thinking of being able to program macrodroid capable of executing a macro in complete autonomy capable of triggering an event in the presence of a particular type of sound but I see this very complicated, or alternatively set up macrodroid that can launch the app at set times by repeating in that interval
the generation of that sound number 5 which lasts about twenty seconds in various cycles such as from 5 to 6 in the morning in one case and from 21 to 23 in another case and perhaps other cycles randomly throughout the day.
can you do such a thing even without internet connection and possibly the absence of the sim?
this thing to limit costs as much as possible, I ask if it is possible?
if an internet connection is necessary, I would not mind being able to manage the app remotely, such as the signaling of the presence of noises sent via audio recording and event log.
I would like to be able to do this even with a small solar panel equipped with a battery capable of managing everything independently, even here I ask for a suggestion to the most experts.
thank you so much I trust you

mirrorless ;-)
 

Attachments

  • WhatsApp Image 2021-08-18 at 07.24.35.jpeg
    WhatsApp Image 2021-08-18 at 07.24.35.jpeg
    63.6 KB · Views: 4
  • WhatsApp Image 2021-08-18 at 07.26.32.jpeg
    WhatsApp Image 2021-08-18 at 07.26.32.jpeg
    21.9 KB · Views: 4
  • WhatsApp Image 2021-08-18 at 07.27.15.jpeg
    WhatsApp Image 2021-08-18 at 07.27.15.jpeg
    49.4 KB · Views: 5

Jacob L

Moderator (Lawsonator)
The easiest way is to use launch application action > force new. Then UI interaction action to click the button. There is an interval trigger. If you find a plugin for this device, for example if it is compatible with Smartthings then Sharptools plugin will work.
 

Dm114

Well-known member
To
Hi everyone, I have a problem of this type in my house in the country developed on two floors, I discovered that at certain times of the day for example from 21 to 23 for the ground floor and in the morning from 5 to 6 for the under roof very annoying presence of rodents such as country mice and dormice, which seriously risk ruining the under-roof and wooden floor, with all the problems of the case.
considering the presence of rodents I immediately thought of an ultrasound generator capable of annoying them or even better of removing them via android app to try on my smartphone xiaomi readmi note 8, in the android market I found the app (suara ultrasonik pengusir kelelawar) and incredibly while the rodents could be heard working once the sound number 5 of the app was running, which lasts about twenty seconds, the rodents suddenly stopped gnawing and did not show their presence anymore.
but the problem
it came back the next day at the same, which was solved by generating sound 5 again from the app.
so I was thinking of being able to program macrodroid capable of executing a macro in complete autonomy capable of triggering an event in the presence of a particular type of sound but I see this very complicated, or alternatively set up macrodroid that can launch the app at set times by repeating in that interval
the generation of that sound number 5 which lasts about twenty seconds in various cycles such as from 5 to 6 in the morning in one case and from 21 to 23 in another case and perhaps other cycles randomly throughout the day.
can you do such a thing even without internet connection and possibly the absence of the sim?
this thing to limit costs as much as possible, I ask if it is possible?
if an internet connection is necessary, I would not mind being able to manage the app remotely, such as the signaling of the presence of noises sent via audio recording and event log.
I would like to be able to do this even with a small solar panel equipped with a battery capable of managing everything independently, even here I ask for a suggestion to the most experts.
thank you so much I trust you

mirrorless ;-)
To launch it remotely you cant use webhook (with an internet connection). Otherwise you can launch it several times in a defined time range for a short period of time (for instance, run 20 seconds, stop 1 minute, run 20... from 20:30 to 23:30).
 
thank you for answering me, but I have difficulty understanding how to do it, I have selected the ultrasound application in the events but in the sio xiaomi redmi note 8 macrodroid makes me 'appear the following message to enable the unknown origins within the phone security settings, which I can't find.
is there anyone who can help me?

thank you
 

Dm114

Well-known member
thank you for answering me, but I have difficulty understanding how to do it, I have selected the ultrasound application in the events but in the sio xiaomi redmi note 8 macrodroid makes me 'appear the following message to enable the unknown origins within the phone security settings, which I can't find.
is there anyone who can help me?

thank you
Sorry but I don't understand what kind of MD message you are speaking about. Could you send a screenshot, as well as your macro to help you more efficiently?
 
in this video : https://sendvid.com/7smy4el4?secret=7973d4be-1e30-4d08-918e-ba13e4d4d4ff

I show the manual operation which effect on the app for the ultrasound generation once the app is opened I select the desired sound for example the number 5 and for 20 seconds the desired sound is reproduced once finished I reselect the same sound and play it again, a loop should be created at a fixed time for example from 5 and 6 in the morning and in the evening from 21 to 23.
let me know how to do?
thank you so much

mirrorless
 
Last edited:

Dm114

Well-known member
in this video : https://sendvid.com/7smy4el4?secret=7973d4be-1e30-4d08-918e-ba13e4d4d4ff

I show the manual operation which effect on the app for the ultrasound generation once the app is opened I select the desired sound for example the number 5 and for 20 seconds the desired sound is reproduced once finished I reselect the same sound and play it again, a loop should be created at a fixed time for example from 5 and 6 in the morning and in the evening from 21 to 23.
let me know how to do?
thank you so much

mirrorless
Your video doesn't show any MacroDroid message. Have you already tried to write a macro or not? What you want to do seems very simple. What part of your project are you unable to achieve?

Let me write a short macro for you and you'll tell if it works as expected...
 

Dm114

Well-known member
in this video : https://sendvid.com/7smy4el4?secret=7973d4be-1e30-4d08-918e-ba13e4d4d4ff

I show the manual operation which effect on the app for the ultrasound generation once the app is opened I select the desired sound for example the number 5 and for 20 seconds the desired sound is reproduced once finished I reselect the same sound and play it again, a loop should be created at a fixed time for example from 5 and 6 in the morning and in the evening from 21 to 23.
let me know how to do?
thank you so much

mirrorless
 

Attachments

  • IMG-20210819-WA0010.jpg
    IMG-20210819-WA0010.jpg
    65.7 KB · Views: 14
dear dm114 I have no words for your skill, I was very satisfied as soon as I saw your screenshot related to the solution of my problem.
I have to understand how to replicate it step by step on my xiaomi smartphone in the hope of succeeding and above all that my device does not present any limitations in the settings and therefore in its operation.
another very important thing is to be able to use your macro in the absence of an internet connection, otherwise we would be forced to make an internet connection plan in the country house only for the one with all the appropriate costs.
the idea is to be able to power my smartphone in autonomous mode without connecting it to the electricity grid, which often disconnects in the presence of strong thunderstorms, and sometimes has to be reset manually, for this problem I was thinking of a small photovoltaic cell panel equipped with battery and usb type c connector, I have seen that exceptional panels are on sale at very interesting prices and with high performance performance I presume that even in winter with little light they can guarantee regular operation at least I hope.
going back to your suggestion is not that to facilitate me could you share the macro you have designed?
in this case you would really help me a lot since I'm still impractical with macrodroid .. ;-)
I was just thinking that I would not mind being able to create videos in general that operationally show the operation of the app by recording the screen of my smartphone and an external video that visually documents the operation of the same directly in the field, I think this could be very welcome by all of us, logically for many macros created and shared here in the forum.
maybe to make you understand I will show you what I mean with my practical example look here https://sendvid.com/jh3bsco0
the shared video will consist of the screen recording behavior on the smartphone and a part that documents its use in real life.
for example in this video I will show you my example.
I created a very simple macro capable of detecting the power failure of my device by starting a notification with a voice message in Italian generated by text such as:
ladies and gentlemen I wanted to warn you that there has been a disconnection in the electricity supply
if you like the idea I will make other videos for other macros too and maybe you too are sure that this could increase the desire to create new macros and also understand the logic for which it was designed.
thank you so much again dear md114 and greetings to all of you in the group.
cordially mirrorless
 
Last edited:

Dm114

Well-known member
dear dm114 I have no words for your skill, I was very satisfied as soon as I saw your screenshot related to the solution of my problem.
I have to understand how to replicate it step by step on my xiaomi smartphone in the hope of succeeding and above all that my device does not present any limitations in the settings and therefore in its operation.
another very important thing is to be able to use your macro in the absence of an internet connection, otherwise we would be forced to make an internet connection plan in the country house only for the one with all the appropriate costs.
the idea is to be able to power my smartphone in autonomous mode without connecting it to the electricity grid, which often disconnects in the presence of strong thunderstorms, and sometimes has to be reset manually, for this problem I was thinking of a small photovoltaic cell panel equipped with battery and usb type c connector, I have seen that exceptional panels are on sale at very interesting prices and with high performance performance I presume that even in winter with little light they can guarantee regular operation at least I hope.
going back to your suggestion is not that to facilitate me could you share the macro you have designed?
in this case you would really help me a lot since I'm still impractical with macrodroid .. ;-)
I was just thinking that I would not mind being able to create videos in general that operationally show the operation of the app by recording the screen of my smartphone and an external video that visually documents the operation of the same directly in the field, I think this could be very welcome by all of us, logically for many macros created and shared here in the forum.
maybe to make you understand I will show you what I mean with my practical example look here https://sendvid.com/jh3bsco0
the shared video will consist of the screen recording behavior on the smartphone and a part that documents its use in real life.
for example in this video I will show you my example.
I created a very simple macro capable of detecting the power failure of my device by starting a notification with a voice message in Italian generated by text such as:
ladies and gentlemen I wanted to warn you that there has been a disconnection in the electricity supply
if you like the idea I will make other videos for other macros too and maybe you too are sure that this could increase the desire to create new macros and also understand the logic for which it was designed.
thank you so much again dear md114 and greetings to all of you in the group.
cordially mirrorless
Here you have the macro attached.

With this macro, you need no internet connection unless you want it to communicate remotely. If you want to be warned when an electricity loss occurs, you'll need either a SIM card to send SMS, or internet connection to send mails.
 

Attachments

  • TstAntiRodents.macro
    4.5 KB · Views: 14
Questo ti dà Internet gratis: https://www.freedompop.com/plans

Lo uso. Funzionerà solo se hai un segnale per i reti mobili.

Qui hai la macro allegata.

Con questa macro, non hai bisogno di una connessione Internet a meno che tu non voglia che comunichi in remoto. Se vuoi essere avvisato quando si verifica una perdita di elettricità, avrai bisogno di una carta SIM per inviare SMS o di una connessione Internet per inviare e-mail.
dear dm114 did not want to believe it
when I read that you created the much desired macro for me.
now I'll tell you I launched it to test it by changing the departure time and closing time within the temporal event.
at the radio launch item I made him point to the suara app and so did the other items related to the program.
at the established time suara is launched but the screen remains still but the desired sound 5 does not start, and the program does not close as established.
I was thinking that maybe you need to set the coordinates for the button for sound nr 5 and the play button to get it running.
thank you so much for everything you are really very good and very kind.
hello mirrorless
 
Last edited:

420

Active member
dear dm114 did not want to believe it
when I read that you created the much desired macro for me.
now I'll tell you I launched it to test it by changing the departure time and closing time within the temporal event.
at the radio launch item I made him point to the suara app and so did the other items related to the program.
at the established time suara is launched but the screen remains still but the desired sound 5 does not start, and the program does not close as established.
I was thinking that maybe you need to set the coordinates for the button for sound nr 5 and the play button to get it running.
thank you so much for everything you are really very good and very kind.
hello mirrorless
i think it would be alot better if you just download an ultrasound mp3 file (one that works for you obviously, you can even cut it or extend it to your desired lenght), then you can just play that mp3 in a loop/at set times and you won't need UI interaction, so the screen doesn't have to stay on or turn on every 30 seconds..
 

Dm114

Well-known member
dear dm114 did not want to believe it
when I read that you created the much desired macro for me.
now I'll tell you I launched it to test it by changing the departure time and closing time within the temporal event.
at the radio launch item I made him point to the suara app and so did the other items related to the program.
at the established time suara is launched but the screen remains still but the desired sound 5 does not start, and the program does not close as established.
I was thinking that maybe you need to set the coordinates for the button for sound nr 5 and the play button to get it running.
thank you so much for everything you are really very good and very kind.
hello mirrorless
The best way would be either to record the sound of your app or to find such a sound on internet (same frequency in Hz) so you'll just have to play it in your macro instead of using a special app.
 

Dm114

Well-known member
i think it would be alot better if you just download an ultrasound mp3 file (one that works for you obviously, you can even cut it or extend it to your desired lenght), then you can just play that mp3 in a loop/at set times and you won't need UI interaction, so the screen doesn't have to stay on or turn on every 30 seconds..
You're right!
 
Top