Just getting started with Tasker? If you're looking for some great tasks to get going on your phone, you should try these ones out first. I picked out five simple and useful profiles that you can take a gander at.
1. Keep screen on when using reading apps
Nothing is more frustrating than when you're in the middle of reading the hottest scene in Fifty Shades Of Grey and you screen times out. I'm reading here! To prevent this from happening, you can program Tasker to tell all reading apps to stay awake as long as they're open. Here is how:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Steps:
Create new task (name it “Keep screen on” or something like that).
Tap on the “+” button, select “Display” and then “Display Timeout“.
Increase the limit to your desired level and save the task.
Go to “Profile” then tap the plus icon and select “Applications“.
Choose the applications for which you want to keep the screen on.
2. Put your phone in silent mode by turning your phone upside down
Do you ever get jealous of those rich people that are able to afford phones that come with this silent feature? They just set their phone face down as they briefly make eye contact with you to make sure that you know you're inferior. Well screw those guys. You make make your own phone do this with this simple Tasker profile!
Steps:
Go to Profile , then select “State“, “Sensor” and “Orientation” in that order. Choose “Face down” from the drop down menu.
Create new task. Tap on the “+” icon , select audio then silent mode. Choose “On” or “Vibrate“.
3. Turn android lockscreen off in trusted locations
If you're like me, the Android lockscreen drives you up the wall! When I need access to my phone, I need it now. I don't want to have to put a pin in each time but if I don't then my kids will break in and find out I'm putting them up for adoption. When I'm at work this isn't an issue though because my kids are at home locked up in the basement. That's why this Tasker profile will come in handy by disabling my lockscreen in trusted locations. So now when I head in to work my phone will disable the lockscreen. Pretty dang useful.
Steps:
Entry Task
create an entry task (name it “Lockscreen OFF“) and tap the “+” button.
Select “Plugin“, “Secure Settings” and “Root actions” that order. Set “Pattern lock OFF“.
Exit Task
create an entry task (name it “Lockscreen ON“) and tap the “+” button.
Select “Plugin“, “Secure Settings” and “Root actions” that order. Set “Pattern lock ON“.
Profile
Create new. Select “State“, “Net” and “Wi-Fi connected” in that order.
Enter the SSID of your home Wi-Fi network.
Link to the “Lockscreen OFF” Task.
Long press the profile and add an exit task. Select “Lockscreen ON“.
4. Night mode or Quiet time
This one easy as crap. Your phone doesn't need to be making all this noise and using all that data at night time does it? Shut that nonsense off! This profile will save battery and give you a better sleep, which could end up giving you 4 extra years of life.
Steps:
Create a new profile and select time. Choose the desired time range (for example, from 00:00 – 06:30).
Create a new task and tap the “+” icon.
Go to “Audio” then set Silent mode ON or vibrate.
Go to “Net” and turn auto sync OFF and Wi-Fi OFF.
5. Lock phone by shaking
The sensor tasks are my personal favorites. You can trigger all kinds of actions by use the data from your sensors. For this profile you can set your screen to lock when you shake your phone. Everyone likes stuff like this and it takes literally 30 seconds to do.
Steps:
Create a new profile. Go to “Events” and then “Sensor“. Select “Shake” and enter your preferences for axis, sensitivity and duration.
Create a new task and tap the “+” icon. Click “Display” then “System lock“.
So there you have five easy profiles to get you started with Tasker. <3
Great post champ!
I have a N6P and I have a profile that is requiring a code in order to access apps like my gallery and Facebook.
Now my question is if there is a way I kan change the annoying number pad lock with the much easier fingerprint sensor?
Or a way to tell the profile to disable the code request if the phone was unlocked by the print sensor?
Thanks a head!
NesBitton said:
I have a N6P and I have a profile that is requiring a code in order to access apps like my gallery and Facebook.
Now my question is if there is a way I kan change the annoying number pad lock with the much easier fingerprint sensor?
Or a way to tell the profile to disable the code request if the phone was unlocked by the print sensor?
Thanks a head!
Click to expand...
Click to collapse
That's a good question and I think you might be the first person to run into that. I cannot find any information on how that would be possible.
Hope someone can help/direct on if this is possible. Would like to create a profile based on location and weather. If I arrive home, and it's raining and/or dark (sunset) execute a task to turn on an outside light.
pmgreen said:
Hope someone can help/direct on if this is possible. Would like to create a profile based on location and weather. If I arrive home, and it's raining and/or dark (sunset) execute a task to turn on an outside light.
Click to expand...
Click to collapse
With respect to the location part, you could try Cell Near. For the weather, a couple of months ago I was looking for something similar and found this, which may help. (reading it gave me a massive headache, so I gave up.)
pmgreen said:
Hope someone can help/direct on if this is possible. Would like to create a profile based on location and weather. If I arrive home, and it's raining and/or dark (sunset) execute a task to turn on an outside light.
Click to expand...
Click to collapse
What system are you using to control your light? I know how to do it using Z-wave and Vera + HomeBuddy + Tasker, its pretty easy to use tasker to trigger Automated Scene in Vera
You can use the method posted above to set your local weather in a variable then use this variable and either the "State --> Phone ---> Cell Near" or "Location(GPS)" condition to trigger a task that will send and intent to Homebuddy to start a Vera scene (homebuddy is an app to control your Vera scenes). So if your are connected to your local tower (or your GPS position is home) + your local weather is bad = send an intent to homebuddy that will turn on the lights.
Edit:
Here is how you do it using a Vera z-wave hub (Vera lite/2/3):
-Log in your Vera account, go to the Automation menu and create a new scene that will simply turn on the desired lights. Take note of your scene number.
-Make an account (free) at weatherunderground.com to get a user key: www.wunderground.com/weather/api/ once registered take note of your key
-Download HomeBuddy on your phone (yes I know the app is old and did not get any updated for a while but its working good to make Tasker talk to your Vera hub)
-Launch homebuddy and setup your Vera serial number, Username and Password
-Then go in Tasker and create a new task (I have named mine "Get Weather") and add the following actions in your task:
Action #1
HTTP Get
Serverort: api.wunderground.com
Path: /api/your_key/conditions/q/your_location.xml
*replace "your_key" by your weatherunderground.com key and "your_location" by your gps location. You can use Google Maps to find your GPS location. e.g: New York is 40.690917,-74.047185. By default there is a space between your latitude and longitude values when you copy it from google maps, you need to remove it. Lets say you are at New York and your key is abcdef123456789 then the Path will be: /api/abcdef123456789/conditions/q/40.690917,-74.047185.xml
This will set your %HTTPD variable to this value:
Code:
<response>
<version>0.1</version>
<termsofService>
http://www.wunderground.com/weather/api/d/terms.html
</termsofService>
<features>
<feature>conditions</feature>
</features>
[B][COLOR="Red"]<current_observation>[/COLOR][/B]
<image>
<url>http://icons.wxug.com/graphics/wu2/logo_130x80.png</url>
<title>Weather Underground</title>
<link>http://www.wunderground.com</link>
</image>
<display_location>
<full>Jersey City, NJ</full>
<city>Jersey City</city>
<state>NJ</state>
<state_name>New Jersey</state_name>
<country>US</country>
<country_iso3166>US</country_iso3166>
<zip>07303</zip>
<magic>1</magic>
<wmo>99999</wmo>
<latitude>40.690917</latitude>
<longitude>-74.047185</longitude>
<elevation>3.00000000</elevation>
</display_location>
<observation_location>
<full>NJWxNet, Jersey City, New Jersey</full>
<city>NJWxNet, Jersey City</city>
<state>New Jersey</state>
<country>US</country>
<country_iso3166>US</country_iso3166>
<latitude>40.708744</latitude>
<longitude>-74.053070</longitude>
<elevation>6 ft</elevation>
</observation_location>
<estimated></estimated>
<station_id>MNJ12</station_id>
<observation_time>Last Updated on January 16, 2:25 AM EST</observation_time>
<observation_time_rfc822>Sat, 16 Jan 2016 02:25:00 -0500</observation_time_rfc822>
<observation_epoch>1452929100</observation_epoch>
<local_time_rfc822>Sat, 16 Jan 2016 03:01:09 -0500</local_time_rfc822>
<local_epoch>1452931269</local_epoch>
<local_tz_short>EST</local_tz_short>
<local_tz_long>America/New_York</local_tz_long>
<local_tz_offset>-0500</local_tz_offset>
[B][COLOR="DarkOrange"]<weather>[/COLOR][/B][B][COLOR="SeaGreen"]Overcast[/COLOR][/B][B][COLOR="darkorange"]</weather>[/COLOR][/B]
<temperature_string>44 F (6.7 C)</temperature_string>
<temp_f>44</temp_f>
<temp_c>6.7</temp_c>
<relative_humidity>96%</relative_humidity>
<wind_string>From the NNE at 5 MPH Gusting to 11.0 MPH</wind_string>
<wind_dir>NNE</wind_dir>
<wind_degrees>32</wind_degrees>
<wind_mph>5</wind_mph>
<wind_gust_mph>11.0</wind_gust_mph>
<wind_kph>8.0</wind_kph>
<wind_gust_kph>17.7</wind_gust_kph>
<pressure_mb>996</pressure_mb>
<pressure_in>29.41</pressure_in>
<pressure_trend>+</pressure_trend>
<dewpoint_string>43 F (6 C)</dewpoint_string>
<dewpoint_f>43</dewpoint_f>
<dewpoint_c>6</dewpoint_c>
<heat_index_string>NA</heat_index_string>
<heat_index_f>NA</heat_index_f>
<heat_index_c>NA</heat_index_c>
<windchill_string>41 F (5 C)</windchill_string>
<windchill_f>41</windchill_f>
<windchill_c>5</windchill_c>
<feelslike_string>41 F (5 C)</feelslike_string>
<feelslike_f>41</feelslike_f>
<feelslike_c>5</feelslike_c>
<visibility_mi>10.0</visibility_mi>
<visibility_km>16.1</visibility_km>
<solarradiation/>
<UV>0</UV>
<precip_1hr_string>0.00 in ( 0 mm)</precip_1hr_string>
<precip_1hr_in>0.00</precip_1hr_in>
<precip_1hr_metric>0</precip_1hr_metric>
<precip_today_string>in ( mm)</precip_today_string>
<precip_today_in/>
<precip_today_metric/>
<icon>cloudy</icon>
<icon_url>http://icons.wxug.com/i/c/k/nt_cloudy.gif</icon_url>
<forecast_url>http://www.wunderground.com/US/NJ/Jersey_City.html</forecast_url>
<history_url>
http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MNJ12
</history_url>
<ob_url>
http://www.wunderground.com/cgi-bin/findweather/getForecast?query=40.708744,-74.053070
</ob_url>
[B][COLOR="red"]</current_observation>[/COLOR][/B]
</response>
The information we need (the actual weather condition) is inside the <weather> and </weather> tags which are inside the <current_observation> and </current_observation> tags. We'll need to split everything so we end up having a variable that is simply the current weather But first we need to create another variable to replace %HTTPD because it can be overwritten by any other task using this variable.
Action #2
Variable Set
Name: %weather
To: %HTTPD
So now we can work with our own %weather variable instead of %HTTPD
Action #3
Variable Split
Name: %weather
Splitter: <current_observation>
This will create a new Variable named %weather2 which will be equal to the information present after the <current_observation>
Code:
<image>
<url>http://icons.wxug.com/graphics/wu2/logo_130x80.png</url>
<title>Weather Underground</title>
<link>http://www.wunderground.com</link>
</image>
<display_location>
<full>Jersey City, NJ</full>
<city>Jersey City</city>
<state>NJ</state>
<state_name>New Jersey</state_name>
<country>US</country>
<country_iso3166>US</country_iso3166>
<zip>07303</zip>
<magic>1</magic>
<wmo>99999</wmo>
<latitude>40.690917</latitude>
<longitude>-74.047185</longitude>
<elevation>3.00000000</elevation>
</display_location>
<observation_location>
<full>NJWxNet, Jersey City, New Jersey</full>
<city>NJWxNet, Jersey City</city>
<state>New Jersey</state>
<country>US</country>
<country_iso3166>US</country_iso3166>
<latitude>40.708744</latitude>
<longitude>-74.053070</longitude>
<elevation>6 ft</elevation>
</observation_location>
<estimated></estimated>
<station_id>MNJ12</station_id>
<observation_time>Last Updated on January 16, 2:25 AM EST</observation_time>
<observation_time_rfc822>Sat, 16 Jan 2016 02:25:00 -0500</observation_time_rfc822>
<observation_epoch>1452929100</observation_epoch>
<local_time_rfc822>Sat, 16 Jan 2016 03:01:09 -0500</local_time_rfc822>
<local_epoch>1452931269</local_epoch>
<local_tz_short>EST</local_tz_short>
<local_tz_long>America/New_York</local_tz_long>
<local_tz_offset>-0500</local_tz_offset>
[B][COLOR="DarkOrange"]<weather>[/COLOR][/B][B][COLOR="SeaGreen"]Overcast[/COLOR][/B][B][COLOR="darkorange"]</weather>[/COLOR][/B]
<temperature_string>44 F (6.7 C)</temperature_string>
<temp_f>44</temp_f>
<temp_c>6.7</temp_c>
<relative_humidity>96%</relative_humidity>
<wind_string>From the NNE at 5 MPH Gusting to 11.0 MPH</wind_string>
<wind_dir>NNE</wind_dir>
<wind_degrees>32</wind_degrees>
<wind_mph>5</wind_mph>
<wind_gust_mph>11.0</wind_gust_mph>
<wind_kph>8.0</wind_kph>
<wind_gust_kph>17.7</wind_gust_kph>
<pressure_mb>996</pressure_mb>
<pressure_in>29.41</pressure_in>
<pressure_trend>+</pressure_trend>
<dewpoint_string>43 F (6 C)</dewpoint_string>
<dewpoint_f>43</dewpoint_f>
<dewpoint_c>6</dewpoint_c>
<heat_index_string>NA</heat_index_string>
<heat_index_f>NA</heat_index_f>
<heat_index_c>NA</heat_index_c>
<windchill_string>41 F (5 C)</windchill_string>
<windchill_f>41</windchill_f>
<windchill_c>5</windchill_c>
<feelslike_string>41 F (5 C)</feelslike_string>
<feelslike_f>41</feelslike_f>
<feelslike_c>5</feelslike_c>
<visibility_mi>10.0</visibility_mi>
<visibility_km>16.1</visibility_km>
<solarradiation/>
<UV>0</UV>
<precip_1hr_string>0.00 in ( 0 mm)</precip_1hr_string>
<precip_1hr_in>0.00</precip_1hr_in>
<precip_1hr_metric>0</precip_1hr_metric>
<precip_today_string>in ( mm)</precip_today_string>
<precip_today_in/>
<precip_today_metric/>
<icon>cloudy</icon>
<icon_url>http://icons.wxug.com/i/c/k/nt_cloudy.gif</icon_url>
<forecast_url>http://www.wunderground.com/US/NJ/Jersey_City.html</forecast_url>
<history_url>
http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MNJ12
</history_url>
<ob_url>
http://www.wunderground.com/cgi-bin/findweather/getForecast?query=40.708744,-74.053070
</ob_url>
[B][COLOR="red"]</current_observation>[/COLOR][/B]
Now we need to split it again
Action #4
Variable Split
Name: %weather2
Splitter: <weather>
Now you'll have the %weather22 variable which will be equal to the information present after the <weather> tag:
Code:
[B][COLOR="SeaGreen"]Overcast[/COLOR][/B][B][COLOR="darkorange"]</weather>[/COLOR][/B]
<temperature_string>44 F (6.7 C)</temperature_string>
<temp_f>44</temp_f>
<temp_c>6.7</temp_c>
<relative_humidity>96%</relative_humidity>
<wind_string>From the NNE at 5 MPH Gusting to 11.0 MPH</wind_string>
<wind_dir>NNE</wind_dir>
<wind_degrees>32</wind_degrees>
<wind_mph>5</wind_mph>
<wind_gust_mph>11.0</wind_gust_mph>
<wind_kph>8.0</wind_kph>
<wind_gust_kph>17.7</wind_gust_kph>
<pressure_mb>996</pressure_mb>
<pressure_in>29.41</pressure_in>
<pressure_trend>+</pressure_trend>
<dewpoint_string>43 F (6 C)</dewpoint_string>
<dewpoint_f>43</dewpoint_f>
<dewpoint_c>6</dewpoint_c>
<heat_index_string>NA</heat_index_string>
<heat_index_f>NA</heat_index_f>
<heat_index_c>NA</heat_index_c>
<windchill_string>41 F (5 C)</windchill_string>
<windchill_f>41</windchill_f>
<windchill_c>5</windchill_c>
<feelslike_string>41 F (5 C)</feelslike_string>
<feelslike_f>41</feelslike_f>
<feelslike_c>5</feelslike_c>
<visibility_mi>10.0</visibility_mi>
<visibility_km>16.1</visibility_km>
<solarradiation/>
<UV>0</UV>
<precip_1hr_string>0.00 in ( 0 mm)</precip_1hr_string>
<precip_1hr_in>0.00</precip_1hr_in>
<precip_1hr_metric>0</precip_1hr_metric>
<precip_today_string>in ( mm)</precip_today_string>
<precip_today_in/>
<precip_today_metric/>
<icon>cloudy</icon>
<icon_url>http://icons.wxug.com/i/c/k/nt_cloudy.gif</icon_url>
<forecast_url>http://www.wunderground.com/US/NJ/Jersey_City.html</forecast_url>
<history_url>
http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=MNJ12
</history_url>
<ob_url>
http://www.wunderground.com/cgi-bin/findweather/getForecast?query=40.708744,-74.053070
</ob_url>
[B][COLOR="red"]</current_observation>[/COLOR][/B]
Now we need to split one last time to wipe evertyhing after the </weather> tag to keep only the "Overcast" value:
Action #5
Variable Split
Name: %weather22
Splitter: </weather>
Now you'll have the %weather221 variable which will be equal to the information present before the </weather> tag:
Code:
[COLOR="SeaGreen"][B]Overcast[/B][/COLOR]
Now we can save this value in another variable so its safe:
Action #6
Variable Set
Name: %CURRENTWEATHER
To: %weather221
so in this example %CURRENTWEATHER = Overcast
Action #7
If
Condition: %CURRENTWEATHER doesn't match Clear
(If weather isn't clear ---> bad weather)
Action #8
Send Intent
Action: android.intent.action.VIEW
Data: homebuddy://activate?vera=<your_vera_serial_number>&<your_scene_number>
Target: Activity
replace your_vera_serial_number and your_scene_number by the correct value (don't forget to remove the <> symbols)
Action #9
End If
Now you're done. If the weather isn't clear, tasker will send an intent to homebuddy which will then send the command to your Vera to trigger the scene you have made to turn on your lights.
Now you only need to create a Profile that triggers this task based on your location either with the Cell Near function or Location function. You could also trigger the Task when our phone is connected to your home wifi (specific SSID) so the Task only runs when you are near your door (if you get wifi at the door).
Finally you might think I forgot about that "turn on the lights" at sunset thing... No need to use Tasker for that (even if that could be done). There is a simple Vera app to detect sunset and sunrise which you can use to trigger the same scene. Its called "Day or Night"
That's it, hope it will help some of you. :good:
For reference, the weather conditions that can be present between the <weather> and </weather> tags are
Code:
[Light/Heavy] Drizzle
[Light/Heavy] Rain
[Light/Heavy] Snow
[Light/Heavy] Snow Grains
[Light/Heavy] Ice Crystals
[Light/Heavy] Ice Pellets
[Light/Heavy] Hail
[Light/Heavy] Mist
[Light/Heavy] Fog
[Light/Heavy] Fog Patches
[Light/Heavy] Smoke
[Light/Heavy] Volcanic Ash
[Light/Heavy] Widespread Dust
[Light/Heavy] Sand
[Light/Heavy] Haze
[Light/Heavy] Spray
[Light/Heavy] Dust Whirls
[Light/Heavy] Sandstorm
[Light/Heavy] Low Drifting Snow
[Light/Heavy] Low Drifting Widespread Dust
[Light/Heavy] Low Drifting Sand
[Light/Heavy] Blowing Snow
[Light/Heavy] Blowing Widespread Dust
[Light/Heavy] Blowing Sand
[Light/Heavy] Rain Mist
[Light/Heavy] Rain Showers
[Light/Heavy] Snow Showers
[Light/Heavy] Snow Blowing Snow Mist
[Light/Heavy] Ice Pellet Showers
[Light/Heavy] Hail Showers
[Light/Heavy] Small Hail Showers
[Light/Heavy] Thunderstorm
[Light/Heavy] Thunderstorms and Rain
[Light/Heavy] Thunderstorms and Snow
[Light/Heavy] Thunderstorms and Ice Pellets
[Light/Heavy] Thunderstorms with Hail
[Light/Heavy] Thunderstorms with Small Hail
[Light/Heavy] Freezing Drizzle
[Light/Heavy] Freezing Rain
[Light/Heavy] Freezing Fog
Patches of Fog
Shallow Fog
Partial Fog
Overcast
Clear
Partly Cloudy
Mostly Cloudy
Scattered Clouds
Small Hail
Squalls
Funnel Cloud
Unknown Precipitation
Unknown
So you might want to add some more values than only "Clear" at action #7 cause there are other weather values where its still sunny enough outside and you don't need to turn on the lights...
You could also use AutoVera instead of homebuddy to make the bridge between your Vera and Tasker (its a tasker plugin). The advantage of using hommebuddy is that its free, not AutoVera
Thank you, you can also turn on flashlight when on dark place.
Thank you for sharing profiles.
Thank you for sharing profiles. "The knowledge is good when sharing it".
GroovyAPKs said:
If you're like me, the Android lockscreen drives you up the wall! When I need access to my phone, I need it now. I don't want to have to put a pin in each time but if I don't then my kids will break in and find out I'm putting them up for adoption. When I'm at work this isn't an issue though because my kids are at home locked up in the basement. That's why this Tasker profile will come in handy by disabling my lockscreen in trusted locations. So now when I head in to work my phone will disable the lockscreen. Pretty dang useful.
Entry Task
create an entry task (name it “Lockscreen OFF“) and tap the “+” button.
Select “Plugin“, “Secure Settings” and “Root actions” that order. Set “Pattern lock OFF“.
Exit Task
create an entry task (name it “Lockscreen ON“) and tap the “+” button.
Select “Plugin“, “Secure Settings” and “Root actions” that order. Set “Pattern lock ON“.
Profile
Create new. Select “State“, “Net” and “Wi-Fi connected” in that order.
Enter the SSID of your home Wi-Fi network.
Link to the “Lockscreen OFF” Task.
Long press the profile and add an exit task. Select “Lockscreen ON“.
Click to expand...
Click to collapse
I created a profile using your instruction but I was getting error "an error occurred while executing Pattern Lock". Root access is granted to Secure Settings
Thank you for helping us newbies with this program.... It is a little daunting at first, but help like this helps, me at least, grasp the concepts easier.
How could I go about doing your #4. Night mode or Quiet time (tho i would probably just toggle Airplane Mode)... but only for specific days? I usually stay up later on Friday and Saturday... so I wouldnt want to miss a call or text at say 11pm... but during the week (Sun-Thurs) I am in bed by 10 due to getting up pretty early. Would I really need to create the task for each day?
As an example, I would want quiet from 10pm to 5am Sun-Thurs... and 1am to 9am on Fri-Sat. I could go without Fri and Sat if necessary. I just dont see how to do a day and time profile. THANKS!
Another good - and free source of weather data is:
www.worldweatheronline.com - you can get a feed in either xml or in json... I prefer the xml one.
You need to sign up for the key, but the thing I like is you can give it a lat/long and it will tell you the nearest weather station and country - saves me looking up the google api to convert lat/long to address.
I use a loop to read splitter text from a txt file and extracting the data I want from the XML file in to a "clean" txt file. If anyone is interested I'd be happy to post the code here - it's not brilliant, very Heath Robinson.
its there anyway to toggle the nav bar from the quick settings?
NesBitton said:
I have a N6P and I have a profile that is requiring a code in order to access apps like my gallery and Facebook.
Now my question is if there is a way I kan change the annoying number pad lock with the much easier fingerprint sensor?
Or a way to tell the profile to disable the code request if the phone was unlocked by the print sensor?
Thanks a head!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2679305
Regarding the keep screen on when using apps, my display time out stays at whatever time I set it at in Tasker. Is there a way to have it revert back to my original settings after the app is closed?
Edit: Oh nvm, new to Tasker and didn't know I had to add the Exit part!
jlang11 said:
Thank you for helping us newbies with this program.... It is a little daunting at first, but help like this helps, me at least, grasp the concepts easier.
How could I go about doing your #4. Night mode or Quiet time (tho i would probably just toggle Airplane Mode)... but only for specific days? I usually stay up later on Friday and Saturday... so I wouldnt want to miss a call or text at say 11pm... but during the week (Sun-Thurs) I am in bed by 10 due to getting up pretty early. Would I really need to create the task for each day?
As an example, I would want quiet from 10pm to 5am Sun-Thurs... and 1am to 9am on Fri-Sat. I could go without Fri and Sat if necessary. I just dont see how to do a day and time profile. THANKS!
Click to expand...
Click to collapse
You can add a trigger condition (for example day of the week) by long-pressing the initial trigger condition in the profile screen (see screenshots).
In the given example, long-press the Display Off trigger(see screenshot #1) and you will be prompted with the popup menu as seen in screenshot #2.
You can now add "Day" as trigger condition and "Time" for specific time intervals.
This way you can set up two Quiet Hours profiles, one for the weekend and one for working days, for example Quiet Hours Working and Quiet Hours Weekend.
orville87 said:
You can add a trigger condition (for example day of the week) by long-pressing the initial trigger condition in the profile screen (see screenshots).
In the given example, long-press the Display Off trigger(see screenshot #1) and you will be prompted with the popup menu as seen in screenshot #2.
You can now add "Day" as trigger condition and "Time" for specific time intervals.
This way you can set up two Quiet Hours profiles, one for the weekend and one for working days, for example Quiet Hours Working and Quiet Hours Weekend.
View attachment 3678947 View attachment 3678948
Click to expand...
Click to collapse
Awesome!! Ill give it a try tonight after work. Thank you!
I did number 3 and it worked brilliantly for about a day, then it just turned my lockscreen off even when I'm not connected to my wifi. I realised that at some point I had lost root so I restored that and hoped that would fix it, but I still cant get it to go again. I've looked over the settings over and over again and can't see anything wrong. Any ideas? Its like it doesn't run the end task of turning the lockscreen back on. Even my settings say lockscreen is set on swipe.
I followed the tutorial on youtube, turning on wifi when triggered by location. But when I tap the gps icon at the top of the tasker screen the map doesnt move. It is stuck not doing anything. Location icon on the settings is ON. I NOTICE that the cursor is on the box that says latitude then longtitude on the opposite side. Looks like it does the contrary. Instead of locating me it looks like tasker want me to specify the latitude and longtitude of my location.
Using moto e 2nd gen marshmallow. I dont see that it requires root access.
MrMosoani said:
I followed the tutorial on youtube, turning on wifi when triggered by location. But when I tap the gps icon at the top of the tasker screen the map doesnt move. It is stuck not doing anything. Location icon on the settings is ON. I NOTICE that the cursor is on the box that says latitude then longtitude on the opposite side. Looks like it does the contrary. Instead of locating me it looks like tasker want me to specify the latitude and longtitude of my location.
Using moto e 2nd gen marshmallow. I dont see that it requires root access.
Click to expand...
Click to collapse
Using location to trigger events can be power intensive. Android, by default, scans for wifi even when it is off. I have profiles similar to what you're trying to do. But i have mine set up to trigger when the wifi specified is detected. It's "wifi near"
Thanks. But how come he was able to make it work in the tutorial? It was his first basic profile to turn On wifi on the phone when he reached home.
Related
Playstore Link:
https://play.google.com/store/apps/...siphorsepowerdyno&feature=more_from_developer
Updates in second post: http://forum.xda-developers.com/showpost.php?p=29938013&postcount=2
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is a dyno app, for scooters, motorcycles or cars.
I have only tested it on my vespa, but people told me it works good on other vehicles, aslong the engines sound can be recorded and IT IS NOT AN AUTOMATIC SCOOTER !
Unlike all other dyno apps, I don't use the GPS signal or the accelerometer to measure your speed, but i use the sound.
Ok, I know what you are thinking:
"Dude this wont work or do you really think: The louder the faster ?"
Here is how it works:
Each sound has its specific frequency, consider someone whistling low or high.
The frequency is always the same, let's say you run your engine at 2000 RPM or 2100 RPM, i can measure 2 different frequencies there and i can exactly say at which RPM the engine runs.
From the RPM i can calculate the EXACT speed (GPS or accelerometer just isn't exact, it's a mess).
From the speed difference at 2 points of time i can calculate the power that is needed to get from speed1 to speed2.
Done, thats it.
There are a couple of important things you should be aware of, before you download the app:
1. Not all devices support the recording quality, therefore i uploaded a test app. Please download it, record sound (speak or something else, doesn't matter). Then replay the sound. If it doesn't force close, you are good to go. Link: https://play.google.com/store/apps/...29tLnBsZWRsc3RlZmFuLmhvcnNlcG93ZXJ0ZXN0ZXIiXQ..
2. In order to get the measurement right you need to know these values (it is a very technical app):
Overall Weight (vehicle + you + gas + backpack + helmet + trousers + shoes ...)
Gear Ratio (this needs to be as exact as possible as well, i use the overall gear ratio, which is your gear ratio divided by your tire-circumference in meter, i have an option to calculate the gear ratio by using the GPS speed, but as said before the GPS isn't exact enough)
Cw-Value (if you dont know what this is, please google it. I could fill a whole thread with information on this. If you don't enter the exact value here, you will still get comparable results for different dyno runs and engine setups aslong you leave this value the same)
Frontarea in squaremeter: (either measure it, or just leave the value, like the Cw-Value to get comparable results)
Temperature + air pressure: (can be get online, within the app)
One thing i didn't consider yet is how the tire changes during the run, the faster it spins the higher the tire circumference gets.
I compared my measurements to real dyno runs and its usually only about 0.5 horsepower off.
The displayed horsepower is "power on the ground". I know americans have some other fancy methods to measure this, but to be honest, "power on the ground" is the only measurement that is worth measuring.
Unlike power on the crank it is the real value which your engine has on the street.
Maybe you might have noticed that i am not native english speaking, so here are a couple of copy/pastes from other users, which i think help to explain what is going on:
I tried a couple of more runs with this app. I'm really fascinated by your app. This time I tested mypinasco 225cc Vespa GL.
I still can't find a big enough road for that 3rd gear run, but I did ride on and off the motorway a couple of times in 2nd gear. Both runs gave me the same result within 0.5hp
Click to expand...
Click to collapse
it would be power at the ground. The sound frequency gives you the RPM of the engine, knowing the gear ratio and tire size gives you speed. The rate of change gives you acceleration.
Power = Force * Velocity
The forces that we care about are due to acceleration (f=ma) and drag (f=1/2*roh*A*C*V^2).
We know the mass, acceleration we got above, roh is constant and known for air at a given temp and pressure, frontal area*drag coefficient can be estimated, and velocity is known from above as well.
So, as long as you are not doing a burnout, it can measure the power at the ground.
Click to expand...
Click to collapse
Text Tutorial which i wrote here:
http://modernvespa.com/forum/topic101980?page=1
1. Go to “Settings”
Here are 2 options:
a) Calculation by Overall Gear Ratio
From the RPM/min the Speed is calculated by the overall gear ratio which you can enter below.
Overall Gear Ratio: “Primary Gear Ratio” times “Secondary Gear Ratio” devided by “Tire Circumference in meter”
E.g.rimary : 60/20=3
Secondary: 50/20 = 2.5
Tire Circumference in meter: 1.3
Overall Gear Ratio: 3 * 2.5 / 1.3 = 5.769
b) Calculation by Maxspeed
If the GPS was on during the run I record the speed and look for the max speed. Then after editing the frequency spectrum I look for the max RPM and calculate the Overall Gear Ratio. The GPS signal is sometimes unreliable so I recommend using option a.
If you have a digital Speedometer you can also check the max speed and enter it at “GPS TOP Speed in km/h” with option “b” checked.
All other settings are pretty obvious, just enter them as precise as possible.
If you don’t know the Cw-Value just leave the predefined value in there,
In order to compare different scooter setups, please keep in mind that these values should not change (unless they really changed, e.g. you lost 20kg or dismounted a windshield or whatever) and that you should keep the same position on the scooter for all dyno runs
Save the settings.
2. Go to “New Record”
Find a place where no other vehicles are. Best is a street which has a minimal gradient upwards.
If you want to record the GPS Speed hit the checkbox in the bottom right, enable the device’s GPS if it is not already (a popup will show up if it is not enabled) and wait for a GPS Lock.
Hit the Microfon-Button. The record is now started and the Buttons are locked. Locking the Menu Button is not possible, so don’t touch it. Power Button will shut the screen off, but the record will keep going.
NOW PUT YOUR DEVICE IN A BACKPACK!
In your pant’s pocket the airstream will be too loud, thus making it harder to find the right frequency.
Get on your scooter and start driving slowly. Shift to 2nd ord 3rd gear and from lowest RPM possible full throttle to max speed and hold max speed for a bit.
Stop your vehicle, get your phone and slide the ring from right to left to unlock the buttons.
Hit the microfone button again.
3. Find the run
Here you can see (easy put) the volume of your record. By pressing the Menu Button (^) you can replay the record, where the white area shows the replayed part. Move the red bars until the record of the run (from low rpm to high rpm) is in-between the red bars. Hit menu(^)-> Trim. The red areas will be cutoff, the green part will stay. Replay the record and see if all went fine or continue editing the now zoomed in part.
When done hit > to go to the next screen.
4. Find the right RPM curve
Usually our scooters have their max RPM at around 8000-9000 rpm. So your first look goes to the left side to find these rpm. Then look at the right side which curve has its max rpm at 8000-9000.
You should now know which curve is the correct one. Unfortunatly its not that easy to find the right curve programmatically, so what you first do now is:
Menu(^) -> Snap
Snap: This function starts looking on the very left side of the spectrum to find the signal with maximum strength. Then it looks in a small range heading right for the next max strength signal. Please keep this in mind !
Start removing the false signals from the very left and eventually “Snap” will snap to the right curve.
If snap wont find the right curve, because on the very left side it finds a curve under the real one, then you should either go back and cut the record a little earlier, so there is a signal of your run with lower rpm
Or
Disable snap ad completely edit the spectrum by hand, removing all false signals.
The white line shows the signals which will be used for calculation.
The green line is the smoothed signal, smoothing the signal is necessary. You can play around with the filterlength on the “Edit Spectrum” screen and on the “Result” screen. The larger the filterlength, the smoother the signal will be. But unfortunately too long filterlengths will lead to a wrong result. Play around with the filter on the spectrum screen and the result screen to see what it actually does.
5. Result
Well this is your result. You can save it and compare it to other results or you can share it with your friends.
Will this text tutorial work without pictures for you guys ?
If something isnt clear, just let me know, maybe suggest a better wording
I was asked what some permissions do or why the app needs them, so:
This application has access to the following:
Hardware controls
record audio
->well, no need to explain this i guess
Your location
fine (GPS) location
-> ... GPS
Phone calls
read phone status and identity
-> if a call is incoming i have to handle the current app state, for example stop the record, or stop the "data transforming" and so on
modify/delete USB storage contents or modify/delete SD card contents
-> save record to sd card/delete the record
Network communication
full Internet access
-> just needed to get the weather online
System tools
modify global system settings
->i am kinda confused why google makes this sound so bad, this is the permission to save private app settings (i use this to save weight,gear ratio, temperature...)
in code all permissions look like this, with the bold being this permission
uses-permission android:name="android.permission.PREVENT_POWER_KEY"
uses-permission android:name="android.permission.RECORD_AUDIO"
uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"
uses-permission android:name="android.permission.READ_PHONE_STATE"
uses-permission android:name="android.permission.INTERNET"
uses-permission android:name="android.permission.WRITE_SETTINGS"
uses-permission android:name="com.android.vending.CHECK_LICENSE"
Click to expand...
Click to collapse
Either watch this thread or follow me on Google+ for updates:
https://plus.google.com/105280101829289526269/posts
or:
https://plus.google.com/109720416927515295704/posts
If there are apple fanboys around here:
I am working on an iphone version.
Changelog:
06.09.2012:
Added "SHARE" at compare results
03.09.2012:
Jelly Bean related fixes
16.08.2012:
Mean of results can be build
13.08.2012:
Files go into different folders now
fixed a couple of typos and missing translation
The only problem right now is the filterlength, which i use to smooth the curve.
The automatic detected length is usually too short, so please change the value on the result screen.
I saw at least one word in the english version which was german, this is because the new eclipse version somehow doesn't handle files with the same filename right.
To come:
An option to rename the record straight after recording.
An option to build the mean of different results.
A better filter, without the need of chossing the filterlength.
I am pretty busy with my tests at University, so please dont expect any update before the 16th of August.
Wow! Very cool app! How goes the progress on it? I always wanted to make a measurement of actual power of my Vespa but the costs of diagnosis on the dyno seem to me to be too expensive. I hope that in two days there's an update to the application.
Version 1.5 is out, with the long awaited option to build the mean of different runs!
Version 1.6: jelly bean related fixes
1.61: Added "share" button to compare results.
Gesendet von meinem Nexus 7 mit Tapatalk 2
Very cool, and I want to get distance. As you say, f =ma,time can be recorded, the distance between two positions could be culculated.
Sent from my SHW-M250S using xda app-developers app
Sure, i will add that later.
I released a Free Version:
https://play.google.com/store/apps/...sZWRsc3RlZmFuLnNpcGhvcnNlcG93ZXJkeW5vZnJlZSJd
Updates in 2.03:
- The spectrum is visible at the "Trim Screen". This means it is lot easier to find the right positions to trim the record.
- Edit Spectrum: it is no possible - by turning "change snap area" on to tell the algorithm where it should look for the right signals. So instead of wiping the wrong signals you chose where the curve should be. This makes the editing much easier.
- Added the option to chose between DIN and SAE climate correction factors.
- Added the option to display the torque in NM or ft-lbs.
- Added a reminder to update the weather when a new record is done.
- The last two locations are saved at the Update Weather screen.
- lots of bugfixes
- details are attached to the email message and are inserted into the jpg when a result is shared
- UI changes: the navigation bar at the bottom is gone and was replaced by an ActionBar,
Some people still seem to think that this is something like a burp app.
->
http://www.scootering.com/Current-Issue/
94 Tech Tips – A Dyno in Your Pocket?
Yes it’s true, and Sticky checks it out.
If you dislike Android's auto-brightness implementation or have turned it off entirely, then this guide will help you set-up Tasker to toggle the brightness whenever you shake your phone. This is helpful for when you're outside and would rather not reach for the brightness slider (which can be difficult for larger phones while one-handed).
Instructions
Create a new Profile and name it "Toggle Brightness."
Create an Event context and go to Sensor. Pick the Shake event. For Axis, I recommend Left-Right as this is a pretty natural way to shake the device. For Sensitivity, I recommend Very Low so you don't accidentally toggle the brightness. You can also leave it at Low in case you think you're having to shake it to hard to get it to work, however. For the Duration, I would pick Medium. You can experiment with these settings until you're comfortable.
Exit and create a task. No need to name it since it's unlikely you'll use this task elsewhere.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Task --> If. Set it to %BRIGHT ~ 255. This will check if the device brightness is already at maximum.
Display --> Display Brightness. Set the Level to %Bright. This will be the saved brightness that will be restored when you shake the device again.
OPTIONAL: Display --> Display Timeout. Set the display timeout to restore to what you normally use.
Task --> Else.
Variables --> Variable Set. Set %Bright to %BRIGHT. You're storing the current brightness level to a variable to restore on next shake.
Display --> Display Brightness. Level 255. You're setting the brightness to maximum.
OPTIONAL: Display --> Display Timeout. Set this to a higher display timeout in case that's what you want.
Task --> End If.
That's it! Now when you shake your phone, your brightness will toggle between maximum and whatever it is you had before you switched to the maximum.
Thanks for the tutorial. I got it to work but it won't revert back to the original state it was in. It keeps going back to like 15% or so. Any idea why? Double checked and have everything the same that's in your screenshot
I can't pass through point 2 how to set brightness level to %Bright ? I can only set it from 0 to 255 with slider there is no text input field
Very nice guide, works perfectly. Only thing is, the new version of tasker doesn't have some of the same settings. Take for example, step 2 where you put "Level %Bright", I only have a slider to set brightness. Got it figured out none the less.
Domino5 said:
I can't pass through point 2 how to set brightness level to %Bright ? I can only set it from 0 to 255 with slider there is no text input field
Click to expand...
Click to collapse
I just set the slider to 15%
Domino5 said:
I can't pass through point 2 how to set brightness level to %Bright ? I can only set it from 0 to 255 with slider there is no text input field
Click to expand...
Click to collapse
kenboyles72 said:
Very nice guide, works perfectly. Only thing is, the new version of tasker doesn't have some of the same settings. Take for example, step 2 where you put "Level %Bright", I only have a slider to set brightness. Got it figured out none the less.
I just set the slider to 15%
Click to expand...
Click to collapse
Sorry, there is some confusion here (it's a problem with Tasker's UI being so clunky!) By default, certain actions such as changing the brightness show a pre-defined slider that you can move up and down, however you CAN use a variable to set the brightness like I mentioned.
When you enter the Display --> Display Brightness screen, click on the little double arrow criss-cross icon near the top right and it will switch the slider view to a text input view. Here, you can simply write in %Bright and tasker will interpret the variable as a number that will set the brightness. Keep in mind that %Bright must be between 0 and 255 because those are the only acceptable values for the brightness, however this should not cause any problems because you are simply setting brightness to whatever it was previously.
MishaalRahman said:
Sorry, there is some confusion here (it's a problem with Tasker's UI being so clunky!) By default, certain actions such as changing the brightness show a pre-defined slider that you can move up and down, however you CAN use a variable to set the brightness like I mentioned.
When you enter the Display --> Display Brightness screen, click on the little double arrow criss-cross icon near the top right and it will switch the slider view to a text input view. Here, you can simply write in %Bright and tasker will interpret the variable as a number that will set the brightness. Keep in mind that %Bright must be between 0 and 255 because those are the only acceptable values for the brightness, however this should not cause any problems because you are simply setting brightness to whatever it was previously.
Click to expand...
Click to collapse
I do not see any criss-scross icon in the top right as you mentioned!
Where to add if I am to tell Tasker to turn brightness to 30% after a certain period of time ?
By the way , Thanks to the tips and it works perfectly !
Just want to add an additional task the let tasker return to a lower brigntness automatically say in about 5 minutes or so.....
Where I should put this in ? ( i.e. after ' End if ' ? )
MishaalRahman said:
If you dislike Android's auto-brightness implementation or have turned it off entirely, then this guide will help you set-up Tasker to toggle the brightness whenever you shake your phone. This is helpful for when you're outside and would rather not reach for the brightness slider (which can be difficult for larger phones while one-handed).
Instructions
Create a new Profile and name it "Toggle Brightness."
Create an Event context and go to Sensor. Pick the Shake event. For Axis, I recommend Left-Right as this is a pretty natural way to shake the device. For Sensitivity, I recommend Very Low so you don't accidentally toggle the brightness. You can also leave it at Low in case you think you're having to shake it to hard to get it to work, however. For the Duration, I would pick Medium. You can experiment with these settings until you're comfortable.
Exit and create a task. No need to name it since it's unlikely you'll use this task elsewhere.
Task --> If. Set it to %BRIGHT ~ 255. This will check if the device brightness is already at maximum.
Display --> Display Brightness. Set the Level to %Bright. This will be the saved brightness that will be restored when you shake the device again.
OPTIONAL: Display --> Display Timeout. Set the display timeout to restore to what you normally use.
Task --> Else.
Variables --> Variable Set. Set %Bright to %BRIGHT. You're storing the current brightness level to a variable to restore on next shake.
Display --> Display Brightness. Level 255. You're setting the brightness to maximum.
OPTIONAL: Display --> Display Timeout. Set this to a higher display timeout in case that's what you want.
Task --> End If.
That's it! Now when you shake your phone, your brightness will toggle between maximum and whatever it is you had before you switched to the maximum.
Click to expand...
Click to collapse
Can you make a video tutorial as i'm not into these stuff. Few step by step pics would work.. If you want to....?
i did these all steps
But when i turn this profile on my screen brightness continously changes without any action
It becomes max nd min regularly infinite times withou shacking
R3XER said:
Can you make a video tutorial as i'm not into these stuff. Few step by step pics would work.. If you want to....?
Click to expand...
Click to collapse
The text guide I wrote shows you how to add everything step by step. Try it out first.
lalitkhokhar said:
i did these all steps
But when i turn this profile on my screen brightness continously changes without any action
It becomes max nd min regularly infinite times withou shacking
Click to expand...
Click to collapse
That is because you're running the task, and haven't linked it to a profile. You need to create a profile and just leave it be. Don't click on the run button.
tmkinger said:
I do not see any criss-scross icon in the top right as you mentioned!
Click to expand...
Click to collapse
Go in to your UI preferences and uncheck Beginner Mode. It should pop out then.
MishaalRahman said:
The text guide I wrote shows you how to add everything step by step. Try it out first.
That is because you're running the task, and haven't linked it to a profile. You need to create a profile and just leave it be. Don't click on the run button.
Click to expand...
Click to collapse
No I am not doing so
I am creating a profile and tasks as said
But when I exit tasker brightness start fluctuating itself
lalitkhokhar said:
No I am not doing so
I am creating a profile and tasks as said
But when I exit tasker brightness start fluctuating itself
Click to expand...
Click to collapse
you have to disable auto brightness to make it work, or add auto brightness on and off respectively at the begin of the 2 steps in the task.
i modified the task so i can left auto mode turned on and shake the phone when i need full brightness.
Is't working great for me, Thanks!
Sorry for second time my question..............
How I can modify this profile ( or task ) if I am to tell tasker turn back Brightness to 30% ? ( say in 2 minutes to turn back to 30% brightness )
Also is it possible to have an icon on top of my phone so I know whether or not the profile is on ( or the icon no show when profile off )
Thank you very much.
edmond.
eeeemc said:
Also is it possible to have an icon on top of my phone so I know whether or not the profile is on ( or the icon no show when profile off )
Click to expand...
Click to collapse
Add a Notification to the task, it's pretty straightforward.
Thanks, this is my first time using tasker and it worked well. Easy to follow instructions.
I was just wondering though, yours has gree bars down the side of all the info, one of mine is red. Its doing what its supposed to anyway, but just wondering why this is? It works anyway.
Also in my notification bar it still says theres no active profiles, even though i've now created this one.
Edit:
Never mind, I understand how the active profiles thing works now i've made a few more
Works great, and the guide is easy to follow. Thanks!
Thanks...........
However, I still unable to figure out where & How to add a notification ---> on to same line of battery level icon when this profile is activated.
I play around & found I could add a notifiction from " Notification drop down ". ( but how about a steady icon on top line of screen as above said ? )
Thank you very much.
FenrirMX said:
Add a Notification to the task, it's pretty straightforward.
Click to expand...
Click to collapse
beren said:
you have to disable auto brightness to make it work, or add auto brightness on and off respectively at the begin of the 2 steps in the task.
i modified the task so i can left auto mode turned on and shake the phone when i need full brightness.
Click to expand...
Click to collapse
Thank you very much, this helped me
Hey Ara! Thanks for tackling this series. I know that AC ranges from 101 articles, to device rumor mill articles, to tasker tutorial type articles, and based on comparing the comments of the full spectrum of articles, it looks like the tasker crowd might not be as large as some of the other crowds that read and are interested in ACs other stories, so... props to ya for taking on the giant.
I've been using tasker since I had the OG Droid and have loved its functionality. Lately though, I've been stumped on one thing in some of my tasker profiles that I just can't seem to nail down. It's a function that you may or may not be familiar with unless you've done other types of programming, specifically logic programming like ladder logic (PLC). I'm looking for an ON DELAY TIMER, not just a timer that begins and continues counting when a series of contexts (permissives) is activated, but a timer that will ONLY count while the contexts are true, and will stop counting AND RESET when at least one of the contexts isn't true. This way, if you want something to happen 5 minutes after your screen is on and your screen hasn't shut off into sleep mode, it will execute a task, but if for some reason the screen does shut off before 5 minutes, it will not execute the task and will begin counting from 0 sec the next time the screen turns on. I've tried to make custom ON DELAY TIMERS with variables and other methods, but my profiles just don't work the same as if there were just a simple ON DELAY TIMER task built in (Currently with variables, I can only start a timer based on contexts, and then check in an amount of time to see if the contexts are still true at the end of the timer, but nothing to stop the profile if a context goes false during the timing... so with my screen example, tasker can't tell the difference between the screen turning on for a minute, off for 3 minutes and on for 2 minutes and the screen being on for 6 minutes straight.). Anyway, if you, or anyone reading this stupid long comment, knows where to find this ON DELAY TIMER, or how to create one in tasker, please spread the wealth! Thanks!
Phone number Search
You can accomplish this but it will eat some RAM.
Have contexts trigger delay timer task.
In delay timer :
1 add variable, say %timer and add 1.
2 wait 1 second
3 stop task if criteria are not met.
4 goto step 1 (variable add) if %timer < set number.
5 whatever action you want triggered when counter reaches end
You can add some steps before the #1 listed for a dialog, spinner, etc if you want user to set new time each use.
Hope this helps.
Zac
I got annoyed that the eye-comfort mode could only be scheduled on fixed times and I had to constantly change them during spring and autumn.
So I made this simple flow for the Automate app - it is probably something like Tasker but it is free for a task with a few blocks - ideal for cheapskates like me.
I used this flow by Sándor Illés to calculate sunset and sunrise times.
The flow
It gets current location, calculates the times and then sets them up as schedule times (eye_comfort_starttime and eye_comfort_endtime system variables).
Then it waits for 1:00 (am) and starts over again.
I just tested it for 3 days and it runs ok on my View 10 with EMUI 9.1. No idea whether it works on older and newer versions or not. //edit: Works okay after EMUI 10 update too.
How to?
Basically, you install Automate, go to the settings and enable resuming flows after system startup.
Extract and install this flow, start it and it should daily update the schedule times.
You obviously also have to have eye-comfort schedule enabled.
On a related note: Stronger eye-comfort filter
I always felt that the blue light filter using eye-comfort is quite weak. During my search for correct variables to modify, I discovered that the highest value for filter you can select using the slider in the eye-comfort settings is 20, but you can dial the filter up to 50 and it gets slightly stronger then!
It is user_set_warm system variable.
Funnily enough, there are also eye_comfort_lesswarm and eye_comfort_morewarm variables which change the range of the slider in the settings.
You can set the eye_comfort_morewarm to 50 and then the slider in the settings will let you set the filter stronger. Higher values than 50 turn the filter off though.
The system variables can be modified using the "system settings set" block in the Automate or simply using SetEdit app. They can probably be changed using ADB too, but I didn't try that. Sadly these settings reset after reboot.
No root required for any of that.
Great stuff! Looking for the same feature on my Huawei phone but unfortunately, the file that you have attached has been removed. Could you upload it again? Thanks
Samuel Grande said:
Great stuff! Looking for the same feature on my Huawei phone but unfortunately, the file that you have attached has been removed. Could you upload it again? Thanks
Click to expand...
Click to collapse
What, they just deleted all the user uploaded stuff when changing the boards? Now that's a shame.
Anyway, I reuploaded the file.
Is it possible to call a Javascript function that exists within a WebView from Tasker? I tried calling a URL on the WebView of "javascript:FUNCTION_NAME()", but that did not seem to work.
This is a completely random example. Lets say, from Tasker, that I want to be able to change the background color of the body of the WebView.
In the webview, I have the code
JavaScript:
function ChangeBGColor(NewColor)
{
document.body.style.backgroundColor=NewColor;
}
I want to be able to call ChangeBGColor() from Tasker with a color.
I remember having this same question a while back and was unable to find a solution that didn't involve sending HTTP requests, so I came up with a really weird hacky solution. I'm not sure its going to work for your situation, but maybe it can give you some ideas.
On the web side- have a transparent div element that occupies a single pixel. Put it in a corner or somewhere you won't accidently touch it. Now, add an event listener to it like this:
element.addEventListener('touchend', (e)=> {
let x = e.changedTouches[0].clientX;
let y = e.changedTouches[0].clientY;
renderColor(x, y);
});
On the Tasker side- If you don't already have it, download AutoInput, which is plugin that was created by Joao Diaz before he took over development of Tasker, and its incredibly cheap for what it does. You can use it to simulate a swipe gesture that starts at that exact spot on the screen, and ends at the coordinates you specify. You now have a way to send two values from tasker to you Javascript with a possible range of your screen resolution.
This might be challenging if you want the full spectrum of colors, because ideally you would want 3 parameters with 256 possibe values (0 for 00 and 256 for FF), so you'll have to figure out a way to encode and decode your color. You could either dumb down the resolution of colors and then use some math involving the modulus operator, but a better way would be to send the data via two swipe gestures, which would give you 4 parameters to work with- so to send white with full opacity (FFFFFFFF), simulate a swipe starting at 0,0 and ending at 256, 256 (FF or 256 for your alpha value, and the same for red), have your Javascript function store that in a variable. Then, send the second swipe which in this case will be the same as the first, and you now have 4 values to give you your color. Keep in mind you'll want to offset everything by 1 or you wouldn't be able to send black, since swiping from 0,0 to 0,0 won't trigger anything.