How to set up correctly?

Paltoos

Member
np:) Everything is going well 👍


Well, you set it correctly previously;)
check it again. Is the data type correct? The deta type must be integer, neither boolean or string.
View attachment 1539


Good question:)
For ringtone and notification, they should be ringger and notification channel and set them everytime. Because they set to zero at 11pm and should be 6:30am/10am next morning. Normally these two channels are treated as the same setting(red circled in the below image).
Look back my template on #30. It sets ringger volume to zero and both ringger and notification reset next morning. Notification volume sets the specific level when an incoming call notification poped in nighttime.

OOPS, I found my mistake. Please modify the if condition as below. Don't forget set the channel as notification and tick the option for waiting next when you choose the notification sound file.
View attachment 1551View attachment 1552View attachment 1553

On the other hand, media volume for music playback, video streaming and sound effects on apps are handled individuality(blue triangled).
I don't think it need to chance at all in most cases in general. However, if you don't want any unexpected sounds, it would be ok, not bad idea. It's up to you. One important thing is they have no affection each other.


OK, just for an example, I use my scheduler app at this moment. Note that Most apps use notification channel generally but the others use media channel. If your reminder notify you as sound only, don't use the Android notification mechanism, it has a possibility to use media channel.
Anyway, add a code block like this when it use notification mechanism.
View attachment 1549
View attachment 1545View attachment 1550View attachment 1546View attachment 1547View attachment 1548
Good evening.
Made the settings as you advised. I am sending a screenshot of the result.
I think I figured out why I was not able to set up the variables. I initially entered the wrong parameter (this can be seen in the second screenshot). Hence the question - is it possible to delete variables with incorrect settings?
Regarding the trigger with the application - is it possible to configure it a little differently? on weekdays, what would it work from 6:00 to 22:00, and on weekends from 10:00 to 22:00?
 

Attachments

  • Incoming_Calls.png
    Incoming_Calls.png
    620.1 KB · Views: 4
  • Screenshot_20211114-141707.png
    Screenshot_20211114-141707.png
    133.9 KB · Views: 3

tanutanu

Well-known member
I think I figured out why I was not able to set up the variables. I initially entered the wrong parameter (this can be seen in the second screenshot). Hence the question - is it possible to delete variables with incorrect settings?
Sure. Name of variable must be unique regardless data type. So you have to delete the boolean variable once, then make the variable in different data type if you want to name it the same.

Regarding the trigger with the application - is it possible to configure it a little differently? on weekdays, what would it work from 6:00 to 22:00, and on weekends from 10:00 to 22:00?
Yes, you can set the conditions of the if statement whatever you want. It's up to you.
 

Paltoos

Member
Sure. Name of variable must be unique regardless data type. So you have to delete the boolean variable once, then make the variable in different data type if you want to name it the same.


Yes, you can set the conditions of the if statement whatever you want. It's up to you.
OK thanks. Is everything okay with the rest of the positions? Can I try to use it?
By the way, do you need all the macros now, or does the last macro replace them?
 

tanutanu

Well-known member
OK thanks. Is everything okay with the rest of the positions? Can I try to use it?
By the way, do you need all the macros now, or does the last macro replace them?
It's basically ok, but you have to consider the followings again.

1. Media volume
If you want it reduce to zero in weekends and nighttime, you have to be back every morning.
If you leave it as it is, you don't need to change at all.

2. Missed call reminder
If you manage them all together in ringer channel, It's ok. If you want to do as original OS meanings, it might be better to use notification channel. However, it depends on how you want to manage them. That's almost the same things. Using ringer channel has advantage not to involve any other notifications. On the other hand, using notification channel has advantage to understand easily when some issues happen.

3. Ringer volume when call end
Sorry, it's my mistake. It should be set the same date and time condition as when incoming. You have to modify it from nighttime to daytime on weekends.

Once reflect everything including what you want to change as you wrote at #41, let mee see it again:)
We are around the last corner. We need to check up comparing with the first macro for while charging and the second macro for when you go out/back to home. Basically all should be working correctly. However, they have a possibilities to have hidden problems and/or some improvements.
 

Attachments

  • Incoming_Calls~2.png
    Incoming_Calls~2.png
    446.3 KB · Views: 3

Paltoos

Member
It's basically ok, but you have to consider the followings again.

1. Media volume
If you want it reduce to zero in weekends and nighttime, you have to be back every morning.
If you leave it as it is, you don't need to change at all.

2. Missed call reminder
If you manage them all together in ringer channel, It's ok. If you want to do as original OS meanings, it might be better to use notification channel. However, it depends on how you want to manage them. That's almost the same things. Using ringer channel has advantage not to involve any other notifications. On the other hand, using notification channel has advantage to understand easily when some issues happen.

3. Ringer volume when call end
Sorry, it's my mistake. It should be set the same date and time condition as when incoming. You have to modify it from nighttime to daytime on weekends.

Once reflect everything including what you want to change as you wrote at #41, let mee see it again:)
We are around the last corner. We need to check up comparing with the first macro for while charging and the second macro for when you go out/back to home. Basically all should be working correctly. However, they have a possibilities to have hidden problems and/or some improvements.
Good evening.
1. The volume of the media. Yes, I would like it to be the same as in your proposed version - at night the volume was zero. Less than 50% on weekends.
2. Reminder of a missed call. It's hard to say which will be better. I think we should try first ...
3. The volume of the ringtone when the call ends. I didn’t quite understand it. Can you get a little more detail? Or better yet, indicate in the screenshot ...
As for # 41, I thought about it and returned it to the setting that you showed, slightly changing the time. Since in this application, all sound signals fall within this time period, regardless of the days of the week. So why complicate it ... :)
 

Attachments

  • Incoming_Calls.png
    Incoming_Calls.png
    628.5 KB · Views: 5

tanutanu

Well-known member
1. The volume of the media. Yes, I would like it to be the same as in your proposed version - at night the volume was zero. Less than 50% on weekends.
You didn't catch what I wrote. You reduce it zero for nighttime, so it should be back again next morning. However, you didn't include the media volume change in if code block running at 6:30 am on Monday to Friday, so it keeps zero even daytime.

2. Reminder of a missed call. It's hard to say which will be better. I think we should try first ...
OK, keep it as is now. Nothing is wrong.

3. The volume of the ringtone when the call ends. I didn’t quite understand it. Can you get a little more detail? Or better yet, indicate in the screenshot ...
Simply change it the same date and time conditions as above if connections for call incoming. If not, it works when call end but nighttime. It should work when call end from 10 am to 10 pm on weekend.
IMG_20211116_071143.jpgIMG_20211116_071314.jpg

I understand the macro is a little complicated for you. After using it several days, please look into it entirely with its behaviors to know what you did accurately. You will understand what you made at that time. At the beginning, as just a entry point, copy and paste is ok. However you would repeat similar issues and questions unless you do so. We should make a conclusion when you had finished everything:)
 
Last edited:

Paltoos

Member
You didn't catch what I wrote. You reduce it zero for nighttime, so it should be back again next morning. However, you didn't include the media volume change in if code block running at 6:30 am on Monday to Friday, so it keeps zero even daytime.


OK, keep it as is now. Nothing is wrong.


Simply change it the same date and time conditions as above if connections for call incoming. If not, it works when call end but nighttime. It should work when call end from 10 am to 10 pm on weekend.
View attachment 1570View attachment 1571

I understand the macro is a little complicated for you. After using it several days, please look into it entirely with its behaviors to know what you did accurately. You will understand what you made at that time. At the beginning, as just a entry point, copy and paste is ok. However you would repeat similar issues and questions unless you do so. We should make a conclusion when you had finished everything:)
Good evening!
Regarding volume media - did you mean that this value must be specified in the settings (as in the screenshot)? Right?
About the end of the call - I have not made the settings for the trigger Call ended? So?
 

Attachments

  • Screenshot_20211116-190706~2.png
    Screenshot_20211116-190706~2.png
    184.8 KB · Views: 1
  • Incoming_Calls_1.png
    Incoming_Calls_1.png
    430.9 KB · Views: 1

tanutanu

Well-known member
Good evening!
Regarding volume media - did you mean that this value must be specified in the settings (as in the screenshot)? Right?
Incorrect:( I told it on #44 as well. If you set it zero, you never hear any music or video music in the daytime. If you don't like, It's ok, but I guess you have no reason to turn it off.
I can understand you like to turn it off on weekends, because you would like to spend quiet time with your family members. If the weekend 0% media volume is unexpected setting, you have to change it as well.

Originally, in my example, the media volume didn't touched because it has no relation with ringtone or notification volume. However, you added it in the nighttime and it kept zero in the daytime on weekends by yourself(but it doesn't need if you want as is on weekends). I worry you really want it to keep zero in the daytime on business days. If so, all nights and days, you no longer listen to music or app BGM/SE unless you change it manually.

About the end of the call - I have not made the settings for the trigger Call ended? So?
Call end must happen after you hang up a call. It is the best opportunity to turn the ringer volume back to original level. If not, once you got a call in the weekends, all following calls are ringing.

Please remind thst MD macro execute at the moment the triggers fire ONLY. "Silent weekends" is your will and just what you decided. MD doesn't know that and you have to let it know when you want everytime. Any kind of programs is not smart like human, simply execute what you ordered accurately.
 

Paltoos

Member
Incorrect:( I told it on #44 as well. If you set it zero, you never hear any music or video music in the daytime. If you don't like, It's ok, but I guess you have no reason to turn it off.
I can understand you like to turn it off on weekends, because you would like to spend quiet time with your family members. If the weekend 0% media volume is unexpected setting, you have to change it as well.

Originally, in my example, the media volume didn't touched because it has no relation with ringtone or notification volume. However, you added it in the nighttime and it kept zero in the daytime on weekends by yourself(but it doesn't need if you want as is on weekends). I worry you really want it to keep zero in the daytime on business days. If so, all nights and days, you no longer listen to music or app BGM/SE unless you change it manually.


Call end must happen after you hang up a call. It is the best opportunity to turn the ringer volume back to original level. If not, once you got a call in the weekends, all following calls are ringing.

Please remind thst MD macro execute at the moment the triggers fire ONLY. "Silent weekends" is your will and just what you decided. MD doesn't know that and you have to let it know when you want everytime. Any kind of programs is not smart like human, simply execute what you ordered accurately.
Good afternoon.
I just didn't think media level settings were that important. Now I have changed.
But otherwise, my settings are correct? Do you need to add anything else? Please check them out and I'll start testing on the sly. :)
 

Attachments

  • Incoming_Calls.png
    Incoming_Calls.png
    641.6 KB · Views: 2

tanutanu

Well-known member
Good afternoon.
I just didn't think media level settings were that important. Now I have changed.
But otherwise, my settings are correct? Do you need to add anything else? Please check them out and I'll start testing on the sly. :)
Sure:) You can start testing if you don't feel any problem. You can fix the problems while testing, whenever you want:)
You had already modified as you like and I'm not your exclusive debugger, so you can do everything freely👍 I don't need checking it anymore because I have no responsibility to the macro. It's yours:)
BTW, I noticed an unexpected situation between the 2nd and 3rd macros. However, it might be ok. It depends on your daily life. Even if it works against your expectation, you can fix it by yourself because the 3rd macro has enough knowledge and should be a good practice to solve the small problem by yourself.
 

Paltoos

Member
Sure:) You can start testing if you don't feel any problem. You can fix the problems while testing, whenever you want:)
You had already modified as you like and I'm not your exclusive debugger, so you can do everything freely👍 I don't need checking it anymore because I have no responsibility to the macro. It's yours:)
BTW, I noticed an unexpected situation between the 2nd and 3rd macros. However, it might be ok. It depends on your daily life. Even if it works against your expectation, you can fix it by yourself because the 3rd macro has enough knowledge and should be a good practice to solve the small problem by yourself.
Thanks a lot! And in case of problems, can I contact you? :)
 

Paltoos

Member
Sure, why not:) And all guys also help you 👍
Good evening.
I tried to use the settings made today. So far I have identified two problems:
1. The sound notification about the missed call does not work. Although this event was recorded in the log file.
2. After the missed call, the audio settings of the Outside profile are set. although the Houses profile settings should be included.
In the macro settings, I only changed the volume levels in different profiles ...
I attach a screenshot and a log file ...
 

Attachments

  • Incoming_Calls.png
    Incoming_Calls.png
    658.7 KB · Views: 1
  • MacroDroidLog.txt
    142 KB · Views: 1

tanutanu

Well-known member
Good evening.
I tried to use the settings made today. So far I have identified two problems:
1. The sound notification about the missed call does not work. Although this event was recorded in the log file.
2. After the missed call, the audio settings of the Outside profile are set. although the Houses profile settings should be included.
In the macro settings, I only changed the volume levels in different profiles ...
I attach a screenshot and a log file ...
Sorry, I can't read the log file at all and don't want to do log only debugging because it is unreasonable and much harder than do it with macro running.
Anyway, one suspicious thing for #1 is that you play the notification sound on another audio stream channel. The macro should play on the same channel as you set the volume.
About #2, I don't catch the words "Outside profile" and "house profile" mean. You need to clarify the words definitions and their situations to share your problem.
 

Paltoos

Member
Sorry, I can't read the log file at all and don't want to do log only debugging because it is unreasonable and much harder than do it with macro running.
Anyway, one suspicious thing for #1 is that you play the notification sound on another audio stream channel. The macro should play on the same channel as you set the volume.
About #2, I don't catch the words "Outside profile" and "house profile" mean. You need to clarify the words definitions and their situations to share your problem.
Do you mean to do this (screenshots # 1 and # 2)?
On the second point, screenshot # 3.
 

Attachments

  • Incoming_Calls_1.png
    Incoming_Calls_1.png
    426.2 KB · Views: 4
  • Missed_call_1.png
    Missed_call_1.png
    80.6 KB · Views: 4
  • Outside-Houses_1.png
    Outside-Houses_1.png
    95.4 KB · Views: 4

tanutanu

Well-known member
Do you mean to do this (screenshots # 1 and # 2)?
On the second point, screenshot # 3.
No, I mean you fix your macro bug by yourself basically. I don't understand why you need the macro of above 2nd screenshot. It had merged to 1st one.
 

Paltoos

Member
No, I mean you fix your macro bug by yourself basically. I don't understand why you need the macro of above 2nd screenshot. It had merged to 1st one.
I turned it on because the missed call reminder didn't work. I thought that after turning it on, it would work. It was not initially included.
 

tanutanu

Well-known member
I turned it on because the missed call reminder didn't work. I thought that after turning it on, it would work. It was not initially included.
Again, you have to debug it by yourself. It is the best practice to know what you do exactly and how to modify it.
The logic for missed incoming call merged as mid volume for weekend daytime, as your design that you defined.

I asked your requirements when, what and how again and again to clarify. Some of them were ambiguous but I dared to fill them as common use cases what I thought it normal. I'm not a psychic supernatural and it was limited to be able to imagine what you really want.

I also don't know the reason why you changed to zero on the last if code block to sound it when you got a specific notification from the app.
Originally, in my example, it temporary stores the notification volume in the variable and sounds, then writes it back to current notification volume. The code block totality expects working on notification channel.
 

Paltoos

Member
Again, you have to debug it by yourself. It is the best practice to know what you do exactly and how to modify it.
The logic for missed incoming call merged as mid volume for weekend daytime, as your design that you defined.

I asked your requirements when, what and how again and again to clarify. Some of them were ambiguous but I dared to fill them as common use cases what I thought it normal. I'm not a psychic supernatural and it was limited to be able to imagine what you really want.

I also don't know the reason why you changed to zero on the last if code block to sound it when you got a specific notification from the app.
Originally, in my example, it temporary stores the notification volume in the variable and sounds, then writes it back to current notification volume. The code block totality expects working on notification channel.
Good evening.
Apparently at the very beginning I was unable to correctly explain what I wanted to get. Besides, Google translation contributes little to this. Therefore, I will try to explain step by step ...
At night, I put my smartphone on charge. Therefore, from the moment the charger is connected (Turn on charging), the volume of all sound signals (media, notifications, calls, system sounds, bluetooth), except for the alarm clock, should be zero. The alarm clock has about 40% volume. And if I understood correctly that Voice call is the volume of the voice while talking on the phone, then it should always be maximum. Under all conditions. But at the same time, there should be a signal from contacts added to exclusions (vibration alert) and an alert signal from applications added to exclusions (approximately 50% volume).
After turning off the charger (Turn off charging), the volume should be as follows - Alarm 50%, Media - 0%, Notification and Call - 30%, System sounds - 0%, Bluetooth - 15%. Voice call, as I wrote above, to the maximum. At the same time, notifications of missed calls and notifications of applications added to exceptions should be sounded - 100% volume. Other app notifications - 30% volume.
When leaving the Wi Fi coverage area (Outside) - Alarm clock - 80%, Bluetooth - 50%, other signals 100%. Missed calls and alerts everyone! applications are also 100%.
When entering the Wi Fi (Houses) coverage area - the volume of the signals should be similar to the Turn off charging levels.
On weekends, the level of sound signals should not depend on events, but on the time of day.
From 10:00 to 22:00 it should be the same as Turn off charging / Houses regardless of whether Wi Fi or charger is connected or not. And from 22:00 to 10:00 it is similar to Turn on charging, regardless of connections.
I understand that I can set any volume levels myself. I just want my desires to be more clear ...
 

tanutanu

Well-known member
Good evening.
Apparently at the very beginning I was unable to correctly explain what I wanted to get. Besides, Google translation contributes little to this. Therefore, I will try to explain step by step ...
At night, I put my smartphone on charge. Therefore, from the moment the charger is connected (Turn on charging), the volume of all sound signals (media, notifications, calls, system sounds, bluetooth), except for the alarm clock, should be zero. The alarm clock has about 40% volume. And if I understood correctly that Voice call is the volume of the voice while talking on the phone, then it should always be maximum. Under all conditions. But at the same time, there should be a signal from contacts added to exclusions (vibration alert) and an alert signal from applications added to exclusions (approximately 50% volume).
After turning off the charger (Turn off charging), the volume should be as follows - Alarm 50%, Media - 0%, Notification and Call - 30%, System sounds - 0%, Bluetooth - 15%. Voice call, as I wrote above, to the maximum. At the same time, notifications of missed calls and notifications of applications added to exceptions should be sounded - 100% volume. Other app notifications - 30% volume.
When leaving the Wi Fi coverage area (Outside) - Alarm clock - 80%, Bluetooth - 50%, other signals 100%. Missed calls and alerts everyone! applications are also 100%.
When entering the Wi Fi (Houses) coverage area - the volume of the signals should be similar to the Turn off charging levels.
On weekends, the level of sound signals should not depend on events, but on the time of day.
From 10:00 to 22:00 it should be the same as Turn off charging / Houses regardless of whether Wi Fi or charger is connected or not. And from 22:00 to 10:00 it is similar to Turn on charging, regardless of connections.
I understand that I can set any volume levels myself. I just want my desires to be more clear ...
We never talked about voice volume while calling, always focusing on ringer and notification volume.
The volume you hear from the speaker on the top of your cellphone is controled by "Voice volume" or "Bluetooth voice" when you use a BT headset.

I had noticed the possibility you have some issues when you charge the battery while going out or when you come back at nighttime or weekend's daytime. Therefore I planned the step to check 3 macros together and to evaluated them comparing each other. However, you would like to jump to higher stage and skip it.

These macros are gone away under my control. So, I have nothing to do anymore. All I can do is answering just a simple question. The hands on style is no longer available, unfortunately. However, you had experienced enough case studies in this thread. It has many tips to solve your problems by yourself.
 
Top