#warning #TaskerDev
[HOW-TO] Protip: do something if a condition is active for more than X minutes
Sometimes you want to check a condition but only do something if that condition is true for a certain amount of time.
For example, you could check if you're at home based on your Wifi connection, but sometimes it disconnects and re-connects to your wifi for a few seconds so you want to delay running the "Away From Home" task for 1 minute to make sure that you're not really home.
You can actually do this fairly easy with 2 profiles :)
Profile 1:
- Check condition you're interested in, for example, disconnected from your home Wifi
- In the entry task set %AwayFromHomeWithDelay to %TIMEMS+60 (60 stands for 60 seconds, or 1 minute; change that to whatever you need)
- In the exit task clear %AwayFromHomeWithDelay
Profile 2:
- Use the Time condition and set both the start and end times to %AwayFromHomeWithDelay
- In the task do whatever you wanted to do when you're away from home
This way you can delay a profile's activation by whatever time needed! :)
Here's a pre-built example that does something if Airplane Mode is on for more than 2 minutes.
Source: Go!
[HOW-TO] Protip: do something if a condition is active for more than X minutes
Sometimes you want to check a condition but only do something if that condition is true for a certain amount of time.
For example, you could check if you're at home based on your Wifi connection, but sometimes it disconnects and re-connects to your wifi for a few seconds so you want to delay running the "Away From Home" task for 1 minute to make sure that you're not really home.
You can actually do this fairly easy with 2 profiles :)
Profile 1:
- Check condition you're interested in, for example, disconnected from your home Wifi
- In the entry task set %AwayFromHomeWithDelay to %TIMEMS+60 (60 stands for 60 seconds, or 1 minute; change that to whatever you need)
- In the exit task clear %AwayFromHomeWithDelay
Profile 2:
- Use the Time condition and set both the start and end times to %AwayFromHomeWithDelay
- In the task do whatever you wanted to do when you're away from home
This way you can delay a profile's activation by whatever time needed! :)
Here's a pre-built example that does something if Airplane Mode is on for more than 2 minutes.
Source: Go!
Forwarded from Tasker | ADVANCED (channel)
YouTube
[TASKER] [PROJECT] Device Floating Volume - Overview
You can support my work on Patreon and Paypal if you like ;)
https://taskerprofilecenter.blogspot.com/2019/09/news-tpc-tasker-profile-center-is-now.html
https://taskerprofilecenter.blogspot.com/2019/12/news-tpc-tasker-profile-center-now.html
DESCRIPTION…
https://taskerprofilecenter.blogspot.com/2019/09/news-tpc-tasker-profile-center-is-now.html
https://taskerprofilecenter.blogspot.com/2019/12/news-tpc-tasker-profile-center-now.html
DESCRIPTION…
Tasker | ADVANCED (channel)
https://taskerprofilecenter.blogspot.com/2020/06/project-device-floating-volume-v12.html
#project #DeviceFloatingVolume
DESCRIPTION
It shows a floating bubble, in this case of identical appearance to that of my device, with useful information about the audio channel currently in use (changes on its status).
It works on the following audio channels:
• Alarm
• Call (in-call)
• DTMF
• Multimedia
• Notification
• Ringer (incoming call)
• System
These are the available volume panel models:
- Xiaomi Android 9 based (n° 1)
- Pixel Experience Android 10 based (n° 2)
Feel free to edit it as per your needs 😉
This project includes an Initial Setup task that needs to be executed when it is imported from TaskerNet, or when the dev considers it is needed even not imported from TaskerNet.
Notes:
- The default scene position for each audio channel (profile's tasks) is set to 0,0 (x,y), so you will need to adjust it according to your needs (yellow label).
CREDITS
@SmartPhoneLover
CHANGELOG
- New: Added new volume panel model, based on my current ROM.
- Fix: UI update was slow.
- Other: Changed default position of scene to (0,0). (You will need to adjust it for your device)
- Other: Other minor changes.
VERSION
v1.2
DESCRIPTION
It shows a floating bubble, in this case of identical appearance to that of my device, with useful information about the audio channel currently in use (changes on its status).
It works on the following audio channels:
• Alarm
• Call (in-call)
• DTMF
• Multimedia
• Notification
• Ringer (incoming call)
• System
These are the available volume panel models:
- Xiaomi Android 9 based (n° 1)
- Pixel Experience Android 10 based (n° 2)
Feel free to edit it as per your needs 😉
This project includes an Initial Setup task that needs to be executed when it is imported from TaskerNet, or when the dev considers it is needed even not imported from TaskerNet.
Notes:
- The default scene position for each audio channel (profile's tasks) is set to 0,0 (x,y), so you will need to adjust it according to your needs (yellow label).
CREDITS
@SmartPhoneLover
CHANGELOG
- New: Added new volume panel model, based on my current ROM.
- Fix: UI update was slow.
- Other: Changed default position of scene to (0,0). (You will need to adjust it for your device)
- Other: Other minor changes.
VERSION
v1.2
Forwarded from Tasker | ADVANCED (channel)
YouTube
[TASKER] [PROJECT] Device Floating Volume - Overview
You can support my work on Patreon and Paypal if you like ;)
https://taskerprofilecenter.blogspot.com/2019/09/news-tpc-tasker-profile-center-is-now.html
https://taskerprofilecenter.blogspot.com/2019/12/news-tpc-tasker-profile-center-now.html
DESCRIPTION…
https://taskerprofilecenter.blogspot.com/2019/09/news-tpc-tasker-profile-center-is-now.html
https://taskerprofilecenter.blogspot.com/2019/12/news-tpc-tasker-profile-center-now.html
DESCRIPTION…
Tasker | ADVANCED (channel)
https://taskerprofilecenter.blogspot.com/2020/06/project-device-floating-volume-v13.html
#project #DeviceFloatingVolume
DESCRIPTION
It shows a floating bubble, in this case of identical appearance to that of my device, with useful information about the audio channel currently in use (changes on its status).
It works on the following audio channels:
• Alarm
• Call (in-call)
• DTMF
• Multimedia
• Notification
• Ringer (incoming call)
• System
These are the available volume panel models:
- Xiaomi Android 9 based (n° 1)
- Pixel Experience Android 10 based (n° 2)
Feel free to edit it as per your needs 😉
This project includes an Initial Setup task that needs to be executed when it is imported from TaskerNet, or when the dev considers it is needed even not imported from TaskerNet.
Notes:
- The default scene position for each audio channel (profile's tasks) is set to 0,0 (x,y), so you will need to adjust it according to your needs (yellow label).
CREDITS
@SmartPhoneLover
CHANGELOG
- Fix: Default scene position was not 0,0 (x,y).
- Fix: Volume panel model (2) was not adjusted to be shown in landscape mode.
VERSION
v1.3
DESCRIPTION
It shows a floating bubble, in this case of identical appearance to that of my device, with useful information about the audio channel currently in use (changes on its status).
It works on the following audio channels:
• Alarm
• Call (in-call)
• DTMF
• Multimedia
• Notification
• Ringer (incoming call)
• System
These are the available volume panel models:
- Xiaomi Android 9 based (n° 1)
- Pixel Experience Android 10 based (n° 2)
Feel free to edit it as per your needs 😉
This project includes an Initial Setup task that needs to be executed when it is imported from TaskerNet, or when the dev considers it is needed even not imported from TaskerNet.
Notes:
- The default scene position for each audio channel (profile's tasks) is set to 0,0 (x,y), so you will need to adjust it according to your needs (yellow label).
CREDITS
@SmartPhoneLover
CHANGELOG
- Fix: Default scene position was not 0,0 (x,y).
- Fix: Volume panel model (2) was not adjusted to be shown in landscape mode.
VERSION
v1.3