Monday, October 16, 2017

Android Tasker Samples: Library of Tasker Profiles and Tasks to make life easier

I compiled and modified some of the following tasks from various open source sources across the internet, the below list of links provided most of the samples,

See below for A) Link to Tasker Library samples in zip and 2) List of links to tasker samples and tasker learning resources



A) Link to Tasker Library samples in zip file. Download, unzip and Import into Tasker.


B) List of Links to samples and misc tasker resources (eg: tutorial vids)

Disable WIFI when wifi not connected for n-sec

https://www.youtube.com/watch?v=E4je_YKNBWA and https://www.youtube.com/watch?v=sB4vu9qSMn4

Sources

https://github.com/ProLoser/Tasker-Presets

https://github.com/noties
https://www.reddit.com/r/TaskerFiles/

Subreddits with some good tasks
https://www.reddit.com/r/TaskerFiles/comments/2xtau3/submit_new_paste_to_pasteeorg_from_within_tasker/
https://www.reddit.com/r/TaskerFiles/comments/2tx3rs/automatically_adjust_volume_during_playback_of_an/
https://www.reddit.com/r/TaskerFiles/comments/27e1ug/task_trigger_action_only_if_x_amount_of_time_has/
https://www.reddit.com/r/TaskerFiles/comments/24raz5/profiledisables_lockscreen_keyguard_when/
https://www.reddit.com/r/TaskerFiles/comments/1yhvbu/task_kill_process/
https://www.reddit.com/r/TaskerFiles/comments/1y8sxj/profile_maximum_brightness_when_executing/


Misc:
https://lifehacker.com/5930652/unleash-the-power-of-android-with-these-automated-apps
http://tasker.wikidot.com/profile-index

http://techsplurge.com/4926/android-awesome-15-tasker-profiles-tutorials/



Turn off WIFI when no Internet Available

1) Using Shell:

a) Profile on polling cycle : Time every n min


b) Using dumpsys wifi | grep curState=NotConnectedState

image

image


2) Using HTTP

he task then is a conditional one, which could be described as "switch off WiFi if I cannot reach the internet". So let's put that together:

  • Condition:
    • Time.
      In the fields, define the time frame this should be active in, and the "repeat" interval.
    • WiFi connected.
      I recommend adding that to safe some juice: If you're already on mobile data with WiFi turned off, there's no need to turn WiFi off – right? Alternatively, you could also use %WIFI ~ on – but that could give you a headache when you just switch it on and, failing to retrieve the URL, Tasker switches it off before it connects ;)
  • Task:
    • HTTP Get
    • WiFi (off) IF %HTTPR ~ –1


Disable mobile data on WIFI, some arguments about when Android OS kicks in, and battery use (timespane when switching from WIFI to mobile,)

The moment you don't have wifi anylonger, the phone starts a fullburst search for wifi and 3G/4G networks (even if I don't want wifi/data at the moment). and this drains a hell of a lot of battery. then (if you go out e.g.) it finds a 3g/4g-connection which it tries to keep up (drains a lot battery) and in the same time searches for wifi-networks (also drains battery)... very inefficient use of battery

https://forum.xda-developers.com/xperia-z/themes-apps/toggle-wifi-mobile-data-tasker-t2591546

No comments:

Post a Comment