[Q] Sending emails with Tasker - Samsung Galaxy Nexus

I've been trying to configure Tasker so that when somebody fails to unlock the phone it takes a photo and sends it to my email.
I'm using the sendemailA.py script and it's working great but I've got a problem with attaching the photo.
If I set the %EMAIL_ATTACH variable to "/storage/sdcard0/DCIM/Tasker/1.jpg" then it works perfectly but if I try to give the photos a different name every time and I set the variable to something like this "/storage/sdcard0/DCIM/Tasker/%PHOTONUMBER.jpg" then there is nothing attached to the email.
%PHOTONUMBER is set to 1.
Is there something obvious that I'm doing wrong?
Thanks!

Related

Mail Notification

Hello,
I'm using EVC++ to create an application and I would like to be informed when a new mail is arrived in the Message Store.
There are some MAPI function to do that (Advise, OnNotify, AdviseSink etc...) but I need some explanations. For example NEWMAIL_NOTIFICATION is not sent by CEMAPI, so how can I know when a new mail is arrived?!!! And first of all, Advise doesn't work. I think I have not allocated the advise sink object. How can I do that?
Thank you for your help or even a sample code for my inspiration!!
Gizmo
You will never get the notification sink to work since only the process which causes the event will be notified.
I use a special trick: Just open the mail database with CeOpenDatabaseEx(...) and register for DB_* events. Then you will receive an event everytime something in the mail db changes...

Email Settings Not Saving Correctly

I'm hoping someone can help me with this.
Using EnergyRom 28008 on a Touch Pro 2 I can't download email off of Comcast. I've had it working on a previous version of the ROM but I don't know why (if it was something I did, if it was the Rom, or some other variable).
Two things get my attention, but they may be nothing. First, is that after I've entered my email password, and save the settings, when I return to settings there are about twice as many stars in the password field as there are letters in my actual password. This occurs if I use manual setup or not. I'm thinking there's a chance it just fills the field with the same number of stars no matter what the real length of the password as a security measure. Or, it's saving my password incorrectly.
The other thing which gets my attention is that in the username field it saves it as "[email protected]" instead of just leaving it as "username". Saving and coming back, it's always adding on the "@comcast.net" part. I'm pretty sure this has to be a problem as Comcast wants the "@comcast.net" part left off.
Does anyone know of a solution? Is this just one of those wait and see things? They'll fix it eventually? Or is it a problem specifically with NRG's ROM? Is there a known solution, perhaps a registry setting I could change to work around the auto-botch effect? Any help would be very appreciated.

HTC Msging and Camera 2 different settings?

Hey all,
I just posted a thread in the HD2 forum so I will bring it up here to see if anyone has noticed this, because I searched the forums all night last night and didnt find any posts about this:
If this has been covered please direct me to the thread, but it seems there is two camera settings, which is annoying the hell out of me. Let me explain, some may not notice this but I did two days ago when it annoyed me.
When you take a picture with the camera, with the setting 3m and quality of superfine, the pictures based on detail could be anywhere from 500K+ which is fine, but taking the same picture thru the HTC messaging app does not, even though after taking the picture it is barely making 50K, when I checked the settings thru the htc messaging app the camera settings are completely different then when using the camera as a standalone.
In the Standalone the setting is @3m with superfine quality, but thru the messaging app its set to 640x384 and the quality if set to fine or normal. And the resolution is greyed out so you cant change it.
Now you may ask why, the reason is on the fuze I was able to send pictures as attachements thru the app without having to go the camera and then take the picture then go to the msg app and send it, The primary reason I am looking for the resolution change is because on ATT your limit is 600K to send any pix or MMS, so why doesnt the app allow you to choose the compression level and no matter what make the pictures on avg 50-60k?
If anyone knows where this is located please let me know, or if you know how I can change this I'd be thrilled! And no I am not looking to change arcsoft since I fixed the HTC messaging app issue.
I think I found the location of the second camera setting, the only problem now is everytime I change the setting in the registry it doesnt make a difference what I change it to in the settings it doesnt change, and when I reset the phone, the values go back. here is the reg entry if anyone can help:
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\HTCPhotoPicker\HTCMessaging_Client\Setting\VirtualContent_1]
"ResolutionHeight"=dword:000001E0
"ResolutionWidth"=dword:00000280
"Type"=dword:00000001
"StillQuality"=dword:00000000
"Mode"=dword:00000000
So far I know that "StillQuality" can either be:
0=Auto Fine
1=Basic
2=Normal
3=Fine
It wont allow you to pick "Superfine" by adding 4 just doesnt work.
"Mode" Is for:
0=Camera & Video Mode
1=Video Mode Only
Havent figured out what "Type" is yet.
"ResolutionHeight"=dword:000001E0 = 480
"ResolutionWidth"=dword:00000280 = 640
These two entries I cant make stick to any other resolution then that, Tomorrow I am going to see if it will allow me to change the settings lower then what it defaults to.
Anyone know how???

[Q] Quick Command crashing

Hallo,
I got a new note 2. Everything is working perfectly except the quick command. I can start it, write on it and then nothing. It just crash and I am back to the home screen. I cannot create new command. Nothing works. The S-Pen works beatifully in all other apps, everything else seems fine. I got the latest update Samsung pushed out. Any idea or suggestions? Anyone seen that?
Thanks in advance,
Umberto
Have you been able to get this working?
Quick command has never worked for me. I did some searching and found that someone had determined that Quick Command working was related to the Google account on the device. Specifically, synching with contacts caused it to fail.
I was able to reproduce this, and was somewhat surprised.
If I remove my Google account from the phone, Quick Command works!
If I add my Google account back, Quick Command works until I allow it to synchronize contacts. Once it does, it fails again.
I've gone through my Contacts, cleaned up duplicates, removed some unusual entries such as those with unusual characters, missing names, XML in the notes section. From what I can tell, it all seems pretty clean, but there is apparently *something* that causes Quick Command to choke when looking through the contacts.
Wondering if anyone else has had this issue or has any idea of a workaround to get this working.
Thanks!
-J-
Hi,
Actually yes. Ist your google account. I was able to get it working removing all accounts without a name (or first or last name). I had quite a lot of accounts with just a telephone or an email. Removing those it worked perfectly. Please do a backup of your contacts before trying. I am not responsible if you loose your contacts
Let me know if it works!
Umberto
JasonLP said:
Have you been able to get this working?
Quick command has never worked for me. I did some searching and found that someone had determined that Quick Command working was related to the Google account on the device. Specifically, synching with contacts caused it to fail.
I was able to reproduce this, and was somewhat surprised.
If I remove my Google account from the phone, Quick Command works!
If I add my Google account back, Quick Command works until I allow it to synchronize contacts. Once it does, it fails again.
I've gone through my Contacts, cleaned up duplicates, removed some unusual entries such as those with unusual characters, missing names, XML in the notes section. From what I can tell, it all seems pretty clean, but there is apparently *something* that causes Quick Command to choke when looking through the contacts.
Wondering if anyone else has had this issue or has any idea of a workaround to get this working.
Thanks!
-J-
Click to expand...
Click to collapse
So weird...I've gone though everything I could think of, and it's still not working correctly. Do you recall anything unusual in your contacts in particular that you fixed? I've even gone through and made sure every single one has a first name and last name.
I don't even think I would use this feature much....But I'm on a mission now!

Tasker help needed

Hi, I would need help with two tasker profiles (and a little hint for the 3rd one ;P)
1st - Connect and route all traffic through a SSH-Tunnel when I am connected to a WiFi which is not my home-WiFi:
I tried this with SSH-Tunnel but "killing" the app gives random pop-ups + problem report + restart of the app (even when killing with root). Any ideas?
2nd - Screenshot when wrong lock pattern was entered:
I found several guides for how to do it with a "pin lock" but it seems as "lock pattern" won't work with tasker?
3rd - Can I somehow let tasker read/speak the following things:
At which time is the next alarm and in how many hours/minutes is that (alarmdroid)?
Do I have any missed calls/mails/messages (whatsapp/sms/facebook/...) ?
Do I have any calendar entries today and which one is the first one ?
I plan on using those the following way:
Put phone into docking station near my bed - Let me know if alarm is set and when it is.. also tell me if there are any meetings on the next day.
When alarmdroid starts waking me up, tell me if I have any missed calls/messages/etc and how many calendar entries I have today.
Thanks
Idk about any of the other stuff but about question 2...There is an app called secure settings..this app pretty much adds functionality to tasker and if you are rooted it adds even more. But basically you can use pattern lock through tasker after downloading that app..I am currently using it to have my lock pattern turn off when im connected to my home wifi and then turns back on when im not connected to home wifi...
I had similar issues as you where it would only work with pin lock but now with secure settings, its work with pattern lock. Hope this helps.
desiromeo719 said:
Idk about any of the other stuff but about question 2...There is an app called secure settings..this app pretty much adds functionality to tasker and if you are rooted it adds even more. But basically you can use pattern lock through tasker after downloading that app..I am currently using it to have my lock pattern turn off when im connected to my home wifi and then turns back on when im not connected to home wifi...
I had similar issues as you where it would only work with pin lock but now with secure settings, its work with pattern lock. Hope this helps.
Click to expand...
Click to collapse
Hmm I tried it with secure settings already but it didn't work.
could u tell me the exact tasks you do?
Thanks
zakazak said:
Hi, I would need help with two tasker profiles (and a little hint for the 3rd one ;P)
1st - Connect and route all traffic through a SSH-Tunnel when I am connected to a WiFi which is not my home-WiFi:
I tried this with SSH-Tunnel but "killing" the app gives random pop-ups + problem report + restart of the app (even when killing with root). Any ideas?
2nd - Screenshot when wrong lock pattern was entered:
I found several guides for how to do it with a "pin lock" but it seems as "lock pattern" won't work with tasker?
3rd - Can I somehow let tasker read/speak the following things:
At which time is the next alarm and in how many hours/minutes is that (alarmdroid)?
Do I have any missed calls/mails/messages (whatsapp/sms/facebook/...) ?
Do I have any calendar entries today and which one is the first one ?
I plan on using those the following way:
Put phone into docking station near my bed - Let me know if alarm is set and when it is.. also tell me if there are any meetings on the next day.
When alarmdroid starts waking me up, tell me if I have any missed calls/messages/etc and how many calendar entries I have today.
Thanks
Click to expand...
Click to collapse
In regards to question number 2, I'd skip setting this up via tasker and just get the app Cerberus, its a pay app but its amazing when it comes to the things it can regarding security of your phone, in case its lost/stolen. It does have the feature your trying to set up, works with pin and pattern locks. https://play.google.com/store/apps/details?id=com.lsdroid.cerberus&feature=nav_result#?t=W251bGwsMSwxLDMsImNvbS5sc2Ryb2lkLmNlcmJlcnVzIl0.
no I don't like cerberus sry. Also I got Avast for that
djkinetic said:
In regards to question number 2, I'd skip setting this up via tasker and just get the app Cerberus, its a pay app but its amazing when it comes to the things it can regarding security of your phone, in case its lost/stolen. It does have the feature your trying to set up, works with pin and pattern locks. https://play.google.com/store/apps/details?id=com.lsdroid.cerberus&feature=nav_result#?t=W251bGwsMSwxLDMsImNvbS5sc2Ryb2lkLmNlcmJlcnVzIl0.
Click to expand...
Click to collapse
I'd vouch for Cerberus. Has really good security features. btw how would taking a screenshot on entering wrong pattern help. Did you mean to take the photo of the intruder entering the wrong pattern?
jazzboyrules said:
I'd vouch for Cerberus. Has really good security features. btw how would taking a screenshot on entering wrong pattern help. Did you mean to take the photo of the intruder entering the wrong pattern?
Click to expand...
Click to collapse
Yes, a pic is taken of the intruder and sent to me via e-mail.
The whole thing works.. except that it doesn't work when the phone is locked :S
Not sure why you dont like cerberus, it does exactly what you want lol..was just a suggestion.
and i appreciate the help I just dont like the app.
Tasker >add Task(+) > Plugin > Secure Setttings > Configuration > Pattern Lock
Set the context as you like..
Ye tried that one already -> doesnt seem to work :/
Regarding your #2 request, if what you are looking for is for the phone to take a picture of the user after a failed unlock attempt this is what I did in Tasker to accomplish this and more.
This will take a photo of the "intruder" after two failed attempts. With my Dropbox sync this photo is instantly uploaded to Dropbox for archival. Then the phone sends two SMS messages to my GV number, the first with the rough location based on the network and then another if GPS is able to locate them.
First you have to install the "Secure Settings" plugin from the Market. Also for photo archival I use Dropbox configured to backup my photos.
New Profile named "Unlock Fail"
Event>State>Plugin>Secure Settings
-Edit Configuration>Failed Login Attempts> 2 (your choice)
-Save
Task> New Task named "Security Photo"
-Media>Take Photo
>Front Camera
>Filename : Lock Photo
>Naming Sequence : Series
>Insert in Gallery : checked
>Descrete : checked
>Resolution: 640x480 (Your preference)
-Misc.>GPS Set On
-Misc.>Get Location
>Source NET
-Phone>Send SMS
>Number (Your choice, I use my GV number)
>Message "Someone has tried to unlock your phone, a photo has been stored and they are roughly at: %LOC"
-Misc.>Get Location
>Source GPS
-Phone>Send SMS
>Number (Same as above)
>Message "Here is their exact location: %LOC"
Then on top of this I also created another profile that would fire off this same task if an SMS is received with the text "find me". This profile also sounds an alarm so I can locate the phone.
For some other Tasker how-to's see this page, http://tasker.wikidot.com/step-throughs .
HuckFinn said:
Regarding your #2 request, if what you are looking for is for the phone to take a picture of the user after a failed unlock attempt this is what I did in Tasker to accomplish this and more.
This will take a photo of the "intruder" after two failed attempts. With my Dropbox sync this photo is instantly uploaded to Dropbox for archival. Then the phone sends two SMS messages to my GV number, the first with the rough location based on the network and then another if GPS is able to locate them.
First you have to install the "Secure Settings" plugin from the Market. Also for photo archival I use Dropbox configured to backup my photos.
New Profile named "Unlock Fail"
Event>State>Plugin>Secure Settings
-Edit Configuration>Failed Login Attempts> 2 (your choice)
-Save
Task> New Task named "Security Photo"
-Media>Take Photo
>Front Camera
>Filename : Lock Photo
>Naming Sequence : Series
>Insert in Gallery : checked
>Descrete : checked
>Resolution: 640x480 (Your preference)
-Misc.>GPS Set On
-Misc.>Get Location
>Source NET
-Phone>Send SMS
>Number (Your choice, I use my GV number)
>Message "Someone has tried to unlock your phone, a photo has been stored and they are roughly at: %LOC"
-Misc.>Get Location
>Source GPS
-Phone>Send SMS
>Number (Same as above)
>Message "Here is their exact location: %LOC"
Then on top of this I also created another profile that would fire off this same task if an SMS is received with the text "find me". This profile also sounds an alarm so I can locate the phone.
For some other Tasker how-to's see this page, http://tasker.wikidot.com/step-throughs .
Click to expand...
Click to collapse
I would prefer Mail over SMS but the problem won't even go until the sending part as it won't even take the picture when the phone is locked with a pattern lock? Atleast for me here.
zakazak said:
I would prefer Mail over SMS but the problem won't even go until the sending part as it won't even take the picture when the phone is locked with a pattern lock? Atleast for me here.
Click to expand...
Click to collapse
I do not seem to have that problem. I just tried it and it worked perfectly.
Now I have my phone configured for face unlock with pattern as a backup and my phone is rooted.
-Phone was locked with the screen off.
-Hit the power button and blocked the camera so face unlock would fail.
-Entered the wrong pattern twice. Once the second attempt failed I saw GPS activate and I heard the GV notification for the received SMS.
-I never unlocked the phone and checking GV and Dropbox from a different device and the messages were sent with my location and the picture was uploaded to Dropbox.
Not sure what else to say. I think I was asked to give Tasker administrative rights along with being rooted so maybe that is the difference.
i am rooted as well.. and tasker is in my SuperSU list :S
Rly weird
I will pay you for Tasker Profiles
I bought tasker because I see the incredible potential for the different profiles.
That being said I am dumb and find creating the profiles that I want a little bit overwhelming.
Is you are a tasker EXPERT on this site that would like to make some profiles for me that I could download & I will pay you for them.
An example profile would be:
IF I disconnect from Wifi Network by going out of range I want to automatically turn on bluetooth for for 10 minutes.
(Usually when I walk out of wifi range I am walking to my car which bluetooths music/calls off my phone)
IF within that 10 minutes I connect to a bluetooth device I would like to keep the bluetooth on until the pairing is broken. IF NOT bluetooth will be turned off after the 10 minutes
When the bluetooth pairing is broken I would like the phone to turn on Wifi for 10 minutes as I am usually walking to my office/house or place with wifi
IF within that 10 minutes a wifi network is connected then wifi will remain on IF NOT then wifi will be turned off
This is just one of probably 10 or so possible profiles I would like to create that are custom to my circumstances
I have a galaxy S4 Active from AT&T that is rooted
If you are interested in creating profiles for me please message me with your expertise & what a profile would cost
For most of you creating these things are childs play however for me it is not
This is my first time posting so if this is the wrong place to put this please direct me to a different area.

Categories

Resources