Is it possible to have Tasker check for the angle of your phone?
I have a wireless charger stand and when I charge my phone at night on it I want to enter silent mode. When I take it off I want to exit silent mode. This used to be easy when I used a USB cable since I could just use the Power state, but the wireless charger will turn off when the phone gets to 100% and turn on once in awhile to top off the phone.
I figured that since the stand is on a fixed 35 degree angle the easiest way to get a profile I want from Tasker would be based on the angle of the phone.
I couldn't find anything with the default events, but is there another way to get the angle or maybe a plugin?
If the stand you're using has the phone standing upright, you could use the orientation is Standing Up combined with charging and/or location or time frame.
~ from my Moto X
"Because I'm Batphone"
I have a news app that fully syncs on first daily opening and saves it all for offline use. This is done on my home Wifi, and Ive currently got tasker to open the app at 8 in the morning which is fine. But sometimes I'm not on Wifi at 8 if I'm elsewhere, or my phone could be off then etc...
Is it possible to get tasker to 'open app once per 24 hours whenever I connect to Wifi'?
If this means midnight to midnight as a day, or just a 24 hour period, or do this if at 8am if I'm not connected or the phone is off. Etc... Or maybe another way I've not thought of?
Any help appreciated
I know how to set LED notification but can we get Tasker to do more than 1 LED color in a series? So if I want blue, red, and green for an incoming text to flash...can I do that?
In the Alert section it looks like you can only set one color.
Was there ever a solution to this? What I want to do is create a notify with sound action that basically reminds me to pack a box into my trunk that has various parts in it that I only want in my trunk when I go on jobs. Well, I cannot remember to do this very well, so I need a regular reminder one hour before start time of basically every calendar event that I have. I have everything programmed except I don't know how to tell it to send this an hour before event beginning. Any ideas? Thanks.Tasker's calendar tie in is no doubt via some sort of API to the OS, meaning it doesn't read calendar entries directly. That means it can't read a calendar event before it happens.
I see two ways of getting around this:
Have a third party calendar program send a notification a set time before every calendar event. Tasker can then react to that notification and start a task
If you're using Google Calendar or something else where you can get access to your calendar in e.g. XML form, you can create a task that uses HTTP Get and variable split to section off the parts of the calendar entries you need, like the start time. You can then convert the time to time-in-seconds and use math with %TIMES to set Wait or Wait Until actions to the appropriate values.
If the second explanation made no sense, that's because that sort of setup is way, way, way above beginner level, and I wouldn't recommend it
Quick guide for a tri-color notification. This guide will show you how to make a notification LED flash green, red, and blue real fast as opposed to just one color.
Sorry guys, just realized the killall sh won't reset the LED back to normal state withou an action like plugging power back in or restarting the phone. I'll keep working on it. We need to pass a 0 value after killing the script but I run into an error. Sorry about that but if anyone has better or more elegant ideas let me know.
Please note this is for a Samsung Galaxy S3. I now have a Nexus 5 and the LED works differently so you may have to research on what works for your phone in terms of notification triggering. Root will be required.
1. Make a file on your sdcard (name it whatever you want) called ledscript.sh.
2. Copy this into the file and save it:
#!/bin/bash
while (true);
do
echo 1 > /sys/devices/virtual/sec/led/led_pattern
sleep 0.1
echo 5 > /sys/devices/virtual/sec/led/led_pattern
sleep 0.1
echo 6 > /sys/devices/virtual/sec/led/led_pattern
sleep 0.1
echo 0 > /sys/devices/virtual/sec/led/led_pattern
done
3. Create a profile for any notification you want to have the tri-color LED.
4. Now create a task that runs a shell script.
For Comand type this: . /sdcard/ledscript.sh (Please don't forget the period and space before the slash)
Also check Use Root.
5. Create another profile that will trigger a task to kill the script.
***Please note, I don't have service on this phone so I tested this with "Display On" > then run the script, then "Display Off" > kill the script. You may have to experiment.
6. Now create a task again that runs a shell script.
For Command type this: killall sh
Also check Use Root.
So to sum it up, when I turn off my display, I get the flashing ligths. When I turn the display on the script gets killed so the LED returns to normal state.
It's possible that if you are charging your phone and the LED script gets killed on Blue that your charging color could be blue. All you need to do is unplug/replug and it will go back to normal. If your script doesn't get killed for some reason, you will have to reboot the phone to get it to stop flashing.
For the script, you can play with setting sleep values. I believe sleep value is in seconds so 0.1 seconds to whatever value you want.
Also, colors can be manipulated but you may need to experiment and find out what values control which colors and so on.
I credit the discovery of the commands to this XDA post.
http://xdaforums.com/showthread.php?t=1989664
Have fun!
PS - if you have a Nexus 5 and can figure out something similar please help me out! I know there are trigger events in /sys/class/leds/{color} but haven't yet figured out how to pass the values with the echo command. Still working on it.
Was there ever a solution to this? What I want to do is create a notify with sound action that basically reminds me to pack a box into my trunk that has various parts in it that I only want in my trunk when I go on jobs. Well, I cannot remember to do this very well, so I need a regular reminder one hour before start time of basically every calendar event that I have. I have everything programmed except I don't know how to tell it to send this an hour before event beginning. Any ideas? Thanks.
Was there ever a solution to this? What I want to do is create a notify with sound action that basically reminds me to pack a box into my trunk that has various parts in it that I only want in my trunk when I go on jobs. Well, I cannot remember to do this very well, so I need a regular reminder one hour before start time of basically every calendar event that I have. I have everything programmed except I don't know how to tell it to send this an hour before event beginning. Any ideas? Thanks.
Hi there,
Can someone guide me as how to set this up: I want to set a profile for when I am at College- I will worry about what I want the profile to do.
My college timetable is completely irregular, i.e. every day I am in for different hours. How can I set up a universal profile that will run between a specific time on each day, e.g on Monday I need it active between 8.30-1.30, on Tuesday 2.00-4.30 etc.
Can someone help?
Thanks,
Dan
There are a couple of ways you could go about this.
You can use calendar events or times.
The calendar one would require events for your classes to either be named something specific or with certain word or phrase in the description. This also only requires one profile if all the events are going to set the same task.
The other method is to use times and days for the actions and then set your task. Since many profiles are needed for this one, it would be best to have it in it's own tab.
EDIT:
I thought of a third one. You could use auto-location plugin to create a geofence around your school & you wouldn't need to worry about times or events.
~ from my Moto X
"Because I'm Batphone"
There are a couple of ways you could go about this.
You can use calendar events or times.
The calendar one would require events for your classes to either be named something specific or with certain word or phrase in the description. This also only requires one profile if all the events are going to set the same task.
The other method is to use times and days for the actions and then set your task. Since many profiles are needed for this one, it would be best to have it in it's own tab.
EDIT:
I thought of a third one. You could use auto-location plugin to create a geofence around your school & you wouldn't need to worry about times or events.
~ from my Moto X
"Because I'm Batphone"
When I receive 50 text messages, I want a backup of my SMS messages.
When I receive a single text message, I want to add it to a running tally of received text messages.
When I receive 50 text messages, I want a backup of my SMS messages.
When I receive a single text message, I want to add it to a running total of received text messages, and when that running total reaches 50, I want a backup of my SMS messages.
initially: set text_count to 0
if (received_a_text)
increment_text_count
endif
if (text_count is equal to 50)
run_SMS_backup
endif
initially: set text_count to 0
if (received_a_text)
increment_text_count
endif
if (text_counter is equal to 50)
run_SMS_backup
[color="red"]reset_text_count[/color]
endif
Look back at our pseudocode - the first half of it is all about what to do if we receive a text message! Sweet!
if (received_a_text)
increment_text_count
if (text_counter is equal to 50)
run_SMS_backup
reset_text_count
endif
endif
su
dumpsys battery
Current Battery Service state:
AC powered: false
USB powered: true
status: 2
health: 2
present: true
level: 23
scale: 100
voltage:3864
temperature: 204
technology: Li-ion
dumpsys battery | grep level
dumpsys battery | grep temperature
dumpsys battery | grep level | awk '{print $0}'
dumpsys battery | grep level | awk '{print $1}'
dumpsys battery | grep level | awk '{print $2}'
dumpsys battery | grep level | awk '{print $1,$2}'
dumpsys battery | grep level | awk '{print “CURRENT BATTERY LEVEL”$2}'
dumpsys battery | grep level | awk '{print “CURRENT BATTERY LEVEL”[B],[/B]$2}'
dumpsys battery | grep level | awk '{print $2}'
dumpsys battery | grep level | awk '{print $2}' > /mnt/sdcard/batterywidget.txt
dumpsys battery | grep temperature | awk '{print $2}' >> /mnt/sdcard/batterywidget.txt
dumpsys battery | grep health
dumpsys battery | grep health | awk '{print $2}'
dumpsys battery | grep health | awk '{if ( $2 == 1 ) print “Super”}'
dumpsys battery | grep health | awk '{if ( $2 == 2 ) print “Very Good”}'
dumpsys battery | grep health | awk '{if ( $2 == 3 ) print “Good”}'
dumpsys battery | grep health | awk '{if ( $2 == 4 ) print “Poor”}'
dumpsys battery | grep health | awk '{if ( $2 == 5 ) print “Sh*t”}'
dumpsys battery | grep health | awk '{if ( $2 == 1 ) print "Super"; if ( $2 == 2 ) print "Very Good"; if ( $2 == 3 ) print "Good"; if ( $2 == 4 ) print "Poor"; if ( $2 == 5 ) print "Sh*te" }'
dumpsys battery | grep level | awk '{print $2}' > /mnt/sdcard/batterywidget.txt
dumpsys battery | grep health | awk '{if ( $2 == 1 ) print "Super"; if ( $2 == 2 ) print "Very Good"; if ( $2 == 3 ) print "Good"; if ( $2 == 4 ) print "Poor"; if ( $2 == 5 ) print "Sh*te" }’ >> /mnt/sdcard/batterywidget.text