What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

What have YOU done with Tasker?

New wifi test

I've abandoned my last attempt at improving the wifi off part of my profile. Here is a new one you can try. I won't be able to test it for a few hours but if any of you can I would appreciate it.

New - type: Wifi Off - Ok
State - Wifi Connected - Invert - Done
Tasker - Wait - 30 seconds - Done
"+" - Net - Wifi - Off - If %WIFIC matches 0 - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose: Wifi Off - Set: Off - Done
Set the priority of this task to 1

New - type: Connected? - Ok
State - Wifi Connected
Varaible - Variable Set %WIFIC to 1 - Done
"+" - Tasker - Wait - 1 Minute - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose Wifi Off - Set: On - Done - Done
Add Exit Task
"+" - Variable - Variable Set - %WIFIC to 0 - Done - Done
Set the priority of this task to 9

NebulaOcton,

I have implemented your changes and so far they seem to have worked perfectly. I will keep you updated and Tallica thank you for your suggestion. I will try to do this if I run into any more problems.

Thanks
 
Last edited:
So close

Thank you so much. That would be a huge help.

I am not close to being done but to get started:
Install this http://android-scripting.googlecode.com/files/sl4a_r3.apk
Then follow the instructions here InstallingInterpreters - android-scripting - A howto for installing additional interpreters. - Project Hosting on Google Code to install python. Both are going to be needed for this profile.

You are also going to need this http://tasker.wikidot.com/local--files/sl4a/sendemailA.py saved to your /sdcard/sl4a/scripts/ directory on your phone.

Now, after I figure the rest out I will post the profile. If you have questions about this stuff refer to this: Using SL4A with Tasker - Tasker Wiki and this thread: https://www.google.com/accounts/Ser.../tasker/browse_thread/thread/e5be4f150d9faaab

Obviously this is going to be very involved.

Ok If you have done all the above correctly here is your profile.
Press Tasks
New - Name it Photo Email - Ok
Variable - Variable set %PHOTONUMBER to 1 - If %PHOTONUMBER isn't set - Done
"+" - Variable - Variable Set %EMAIL_USER to (Your Gmail username) - Done e.g. peterobri
"+" - Variable - Variable Set %EMAIL_PSWD to (Your Gmail password) - Done
"+" - Variable - Variable Set %EMAIL_TO to (the address you want to send the photo to) - Done
"+" - Variable Set - %EMAIL_ATTACH to /sdcard/DCIM/Tasker/%PHOTONUMBER.jpg - Done
"+" - Media - Photo - Filename: %PHOTONUMBER - Done
"+" - Variable -Variable Add - Name: %PHOTONUMBER - Value 1 - Done
"+" - Misc - Run Script - Press the magnifying glass and choose sendemailA.py - Pass Variables: %EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_ATTACH - Done
Change the icon (I used the app icon for the Camera)
Done

Press the Home button and add a widget to the screen. Scroll down to Task and select it
On the drop down menu select Photo Email then press Make Widget.

Then to take a photo all you have to do is press that widget and it will quickly take a photo and email to the address specified.

Ok I am so close. I have done everything and the widget looks like it is working as intended. The camera comes up and automatically takes a picture but then when it closes I get an error message saying that the application sl4a has stopped unexpectedly and needs to force close. Any ideas as to what I may be doing wrong? Once again, thank you for all of your help with this. My wife is going to be ecstatic if I can get this working.
 
I am not close to being done but to get started:
Install this http://android-scripting.googlecode.com/files/sl4a_r3.apk
Then follow the instructions here InstallingInterpreters - android-scripting - A howto for installing additional interpreters. - Project Hosting on Google Code to install python. Both are going to be needed for this profile.

You are also going to need this http://tasker.wikidot.com/local--files/sl4a/sendemailA.py saved to your /sdcard/sl4a/scripts/ directory on your phone.

Now, after I figure the rest out I will post the profile. If you have questions about this stuff refer to this: Using SL4A with Tasker - Tasker Wiki and this thread: https://www.google.com/accounts/Ser.../tasker/browse_thread/thread/e5be4f150d9faaab

Obviously this is going to be very involved.

Ok If you have done all the above correctly here is your profile.
Press Tasks
New - Name it Photo Email - Ok
Variable - Variable set %PHOTONUMBER to 1 - If %PHOTONUMBER isn't set - Done
"+" - Variable - Variable Set %EMAIL_USER to (Your Gmail username) - Done e.g. peterobri
"+" - Variable - Variable Set %EMAIL_PSWD to (Your Gmail password) - Done
"+" - Variable - Variable Set %EMAIL_TO to (the address you want to send the photo to) - Done
"+" - Variable Set - %EMAIL_ATTACH to /sdcard/DCIM/Tasker/%PHOTONUMBER.jpg - Done
"+" - Media - Photo - Filename: %PHOTONUMBER - Done
"+" - Variable -Variable Add - Name: %PHOTONUMBER - Value 1 - Done
"+" - Misc - Run Script - Press the magnifying glass and choose sendemailA.py - Pass Variables: %EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_ATTACH - Done
Change the icon (I used the app icon for the Camera)
Done

Press the Home button and add a widget to the screen. Scroll down to Task and select it
On the drop down menu select Photo Email then press Make Widget.

Then to take a photo all you have to do is press that widget and it will quickly take a photo and email to the address specified.

Ok I am so close. I have done everything and the widget looks like it is working as intended. The camera comes up and automatically takes a picture but then when it closes I get an error message saying that the application sl4a has stopped unexpectedly and needs to force close. Any ideas as to what I may be doing wrong? Once again, thank you for all of your help with this. My wife is going to be ecstatic if I can get this working.

Does sendemailA.py show up when you manually open sl4a?
 
Ok If you have done all the above correctly here is your profile.
Press Tasks
New - Name it Photo Email - Ok
Variable - Variable set %PHOTONUMBER to 1 - If %PHOTONUMBER isn't set - Done
"+" - Variable - Variable Set %EMAIL_USER to (Your Gmail username) - Done e.g. peterobri
"+" - Variable - Variable Set %EMAIL_PSWD to (Your Gmail password) - Done
"+" - Variable - Variable Set %EMAIL_TO to (the address you want to send the photo to) - Done
"+" - Variable Set - %EMAIL_ATTACH to /sdcard/DCIM/Tasker/%PHOTONUMBER.jpg - Done
"+" - Media - Photo - Filename: %PHOTONUMBER - Done
"+" - Variable -Variable Add - Name: %PHOTONUMBER - Value 1 - Done
"+" - Misc - Run Script - Press the magnifying glass and choose sendemailA.py - Pass Variables: %EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_ATTACH - Done
Change the icon (I used the app icon for the Camera)
Done

Press the Home button and add a widget to the screen. Scroll down to Task and select it
On the drop down menu select Photo Email then press Make Widget.

Then to take a photo all you have to do is press that widget and it will quickly take a photo and email to the address specified.

Ok I am so close. I have done everything and the widget looks like it is working as intended. The camera comes up and automatically takes a picture but then when it closes I get an error message saying that the application sl4a has stopped unexpectedly and needs to force close. Any ideas as to what I may be doing wrong? Once again, thank you for all of your help with this. My wife is going to be ecstatic if I can get this working.

Does sendemailA.py show up when you manually open sl4a?
no it doesn't
 
Ok I am so close. I have done everything and the widget looks like it is working as intended. The camera comes up and automatically takes a picture but then when it closes I get an error message saying that the application sl4a has stopped unexpectedly and needs to force close. Any ideas as to what I may be doing wrong? Once again, thank you for all of your help with this. My wife is going to be ecstatic if I can get this working.

Does sendemailA.py show up when you manually open sl4a?
no it doesn't

ok, do any scripts show up? like bluetooth_chat.py
 
Ok I am so close. I have done everything and the widget looks like it is working as intended. The camera comes up and automatically takes a picture but then when it closes I get an error message saying that the application sl4a has stopped unexpectedly and needs to force close. Any ideas as to what I may be doing wrong? Once again, thank you for all of your help with this. My wife is going to be ecstatic if I can get this working.

Does sendemailA.py show up when you manually open sl4a?
no it doesn't
nevermind, i didn't install python, i just downloaded it. i installed it and it works like a charm!! Thanks for all your help. I am going to show my wife right now.
 
I've abandoned my last attempt at improving the wifi off part of my profile. Here is a new one you can try. I won't be able to test it for a few hours but if any of you can I would appreciate it.

New - type: Wifi Off - Ok
State - Wifi Connected - Invert - Done
Tasker - Wait - 30 seconds - Done
"+" - Net - Wifi - Off - If %WIFIC matches 0 - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose: Wifi Off - Set: Off - Done
Set the priority of this task to 1

New - type: Connected? - Ok
State - Wifi Connected
Varaible - Variable Set %WIFIC to 1 - Done
"+" - Tasker - Wait - 1 Minute - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose Wifi Off - Set: On - Done - Done
Add Exit Task
"+" - Variable - Variable Set - %WIFIC to 0 - Done - Done
Set the priority of this task to 9

NebulaOcton,

I have implemented your changes and so far they seem to have worked perfectly. I will keep you updated and Tallica thank you for your suggestion. I will try to do this if I run into any more problems.

Thanks
Anyone else who has tried this new wifi off technique let me know how it is working please. I haven't had any issues with it either and I want to update the wiki with this shut off.
 
Yeah, really - that seems kinda bogus.

Later today, I'll be posting my notification profiles, in case anyone wants to customize how they're notified of incoming SMS.
 
I cant find this app listed under "Tasker"

I would buy it from here if I was you: Tasker for Android

You get a free 7 day trial and it has more features than the market version

What extra features are included with this version? Do you think the developer would credit if I purchased from the Market already?

Thanks

The two versions are nearly identical. The Android Market version has the advantages:
install may be easier e.g. you don't have to enable the 'Unknown sources' setting
you don't need to enter a validation code
you can simultaneously install on multiple devices with the same Google account
The Direct-Purchase version has the advantages:

it's cheaper
it supports file encryption
you can choose to use Paypal or Google Checkout
it can usually be validated within 10 minutes (Market is around 26 hours)
you don't have to deal with typical Market 'authorization failure' etc problems

Tasker for Android
 
I've abandoned my last attempt at improving the wifi off part of my profile. Here is a new one you can try. I won't be able to test it for a few hours but if any of you can I would appreciate it.

New - type: Wifi Off - Ok
State - Wifi Connected - Invert - Done
Tasker - Wait - 30 seconds - Done
"+" - Net - Wifi - Off - If %WIFIC matches 0 - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose: Wifi Off - Set: Off - Done
Set the priority of this task to 1

New - type: Connected? - Ok
State - Wifi Connected
Varaible - Variable Set %WIFIC to 1 - Done
"+" - Tasker - Wait - 1 Minute - Done
"+" - Tasker - Profile Status - Press Magnifying Glass - Choose Wifi Off - Set: On - Done - Done
Add Exit Task
"+" - Variable - Variable Set - %WIFIC to 0 - Done - Done
Set the priority of this task to 9

NebulaOcton,

I have implemented your changes and so far they seem to have worked perfectly. I will keep you updated and Tallica thank you for your suggestion. I will try to do this if I run into any more problems.

Thanks
Anyone else who has tried this new wifi off technique let me know how it is working please. I haven't had any issues with it either and I want to update the wiki with this shut off.

can you explain what the purpose of this is exactly... thanks :)
 
NebulaOcton,

I have implemented your changes and so far they seem to have worked perfectly. I will keep you updated and Tallica thank you for your suggestion. I will try to do this if I run into any more problems.

Thanks
Anyone else who has tried this new wifi off technique let me know how it is working please. I haven't had any issues with it either and I want to update the wiki with this shut off.

can you explain what the purpose of this is exactly... thanks :)

I was getting notice of some problems people were having with this profile: Low Battery Usage Wifi Enableing Profile Using Wifi Near - Tasker Wiki

So I wrote the new Wifi Off profiles above to fix those issues.
 
Back
Top