Http requête when connectons wifi - Tasker Tips & Tricks

Hi,
I'm searching to make a trick but never find how to...
Someone can help me here ?
Sorry for my poor english...
I would like to make a http request when connecting to my wifi SSID but only when I go home...
Make a http request is ok for me.
Connecting to my wifi SSID ok.
The problem is during the night my phone is in airplane mode, and when I turn on I don't want to make the http request.
Thank you helping me ?

Create an location profile for your home. Add an enter task which sets an variable e.g. %Location to "Home" if you're at home. Add an exit task which sets the variable to "Unknown" as soon as you've left the home location.
Add an action to the end of your HTTP request task, which sets an variable e.g. %HTTPRequestMade to "1" if the HTTP request was made.
Then add two IF conditions to the HTTP request action, so that the request is only running if %HTTPRequestMade is not "1" AND the %Location is "Home".
Create another profile which is triggered if the variable %Location changes (Event "Variable Set"). Add an task which sets %HTTPRequestMade to "0" if $Location is not "Home".
So if you're coming home the request will be executed and the variable %HTTPRequestMade will be set to "1". If the task is executed again it will not do the request because %HTTPRequestMade is still "1". If you leave your home the variable %Location will change to "Unknown". That will trigger the new profile which will set the variable %HTTPRequestMade back to "0". Next time you're coming home the HTTP request will be executed again.

Wow
It seems so hard to make it...
For the moment i have linked with my Xiaomi bip lite and the button pressed for the http request and it works well.
The objective is to have the request made automatically and when I'm front of my house the portal should open but it seems hard to made it and to have something which react very quickly...

The challenge is to recognize if you've left your home or not when you get connected to your wifi again. In my opinion a location profile is the easiest and most reliable way to do this.
Maybe it will be easier for you to implement it when I shorten my first idea:
Create an location profile for your home. Add only an exit task which sets the variable %HTTPRequestMade to "0"
Add an action to the end of your HTTP request task, which sets the variable %HTTPRequestMade to "1" when the HTTP request was made.
Add an IF condition to the HTTP request action itself, so that the request will be only executed when %HTTPRequestMade is not "1".
So when you've left your home the exit task of the location profile will set %HTTPRequestMade to "0". Next time you get connected to your home wifi the HTTP request task will be executed and set %HTTPRequestMade to "1". When you reconnect to your wifi without leaving your home before, the request will be not executed because %HTTPRequestMade is still "1".
Or you add an time depence to your profile so that the task will be not executed in the morning or whenever you wake up.

Yes i have this Idea also but after a single test when connecting wifi, it works not immediately si not really usable as i would like...
I'm searching for another Idea...

Have you checked if the profil gets active (green) as soon as you're connected to your wifi?
I had the same issue that the profil need some seconds until it became active. The issue was that I'd configured the SSID and a single MAC address for the profile. But my wifi router supports 2,4 and 5 GHz wifi for the same SSID, and therefore it has two different MAC addresses. Thats why the profile became only active in the 2,4 GHz wifi.
Due to that the first six chars of both MAC addresses are the same, I've changed the value to AA:BB:CC:* , which is fitting to both MAC addresses (AA:BB:CC are only an example. Add the first six chars of your routers MAC address).

It's cause that my smartphone take a little time to connect to the wifi...

You can try to force the connection with action "WiFi Net: Reconnect" as soon as your mobile phone is near your wifi. Or, if you have configured a lot of wifi profiles in your mobile phone, delete the unnecessaried ones. Maybe this will speed-up the connect.

Hi,
What is this action ?
How to force it ?
And how to delete wifi profiles ?
I have a Xiaomi Mi 9

Profil "Near Wifi" -> Yours
Add task with action "WiFi Net" -> Action "Reconnect"
I mean the known wifis in your wifi settings. Every wifi that your phone was connected to creates an profil. Delete the ones that you don't need anymore.

I will try but not really sure it will works...

JasMan78 said:
Profil "Near Wifi" -> Yours
Add task with action "WiFi Net" -> Action "Reconnect"
I mean the known wifis in your wifi settings. Every wifi that your phone was connected to creates an profil. Delete the ones that you don't need anymore.
Click to expand...
Click to collapse
It's not working better...
It take long Time to connect to the wifi...
So my tasks make long time to run...

diabolyk34 said:
Hi,
I'm searching to make a trick but never find how to...
Someone can help me here ?
Sorry for my poor english...
I would like to make a http request when connecting to my wifi SSID but only when I go home...
Make a http request is ok for me.
Connecting to my wifi SSID ok.
The problem is during the night my phone is in airplane mode, and when I turn on I don't want to make the http request.
Thank you helping me
Click to expand...
Click to collapse
Perhaps you need to contact technical support and check the Wi-Fi router ...

Related

Need Wizard for Dummies

Hi all, I realise there are a lot of resources around here, but to be very honest, they all assume a level of knowledge I just don't have. I'm pretty computer-savvy, but all this phone/PPC stuff is new territory to me.
The story: I recently bought an unlocked T-Mobile MDA to use on the Fido network in Canada. I'm having a lot of trouble getting things to work beyond simple voice and texting. I've finally managed to get a GPRS connection working so I can surf the internet, but I can't get Messenger to work nor can I send MMS. I'm gathering that changing the MMS settings will require I flash the ROM to a generic version, is that correct? I've found the step-by-step instructions for doing this, but have no clue what file to actually use. My #1 priority is using Messenger, and I can't connect via wi-fi or GPRS. Not sure if that's a separate issue or not . . .
I am usually very self-sufficient WRT tech stuff but I am just getting more confused the more I read. Any pointers or hand-holding would be very much appreciated!!
I'll give you what little help I can. Since I don't have fido I can't tell you the settings that you need for sure but I'll see if I can't find them for you. First, you don't have to flash a new ROM to change youe MMS settings, you just have to put the correct setings in there for it to use it. The thing with messenger is that some phone companys have started to block the ports that messengers use so if that's the case with fido, you may never get it to work. I'll do some looking and see if I can't come up with your MMS settings for you though, I'm sure I've seen them around here.
Here you go:
1. Create a 'Cellular Line (GPRS)' connection under My ISP.
Call it whatever, I called it Fido MMS.
2. The APN is mms.fido.ca
3. user=fido, pswd=fido
4. Leave the Advanced tab alone (Auto IP assignments)
5. exit My ISP connections
6. In MMS Composer app, Tools/Options/Server, grab the default.
7. I renamed the server name as 'Fido MMS'.
8. I set the Gateway=205.151.11.13 (note - no leading zeroes or port 9201!)
9. Server address is http://mms.fido.ca
If you have any more settings questions, go to post #7 in this thread. - http://forum.xda-developers.com/showthread.php?t=299023&highlight=fido+settings
Hey, I really appreciate you taking the time to help me out.
Part of why I thought I would have to flash the ROM is because in the MMS servers part, I am not able to modify the existing server (T-Mobile) nor can I add a new one since the buttons are all greyed out. I figured T-Mobile had locked this setting in. Am I missing something?
You just have to create new connections. Just go to Start-->Settings--> connections tab--> Connections--> Advanced tab--> Select Networks button--> and finally the New button and use the above settings to create a new connection. After that you should be able to use those settings for your MMS. Also do the exact same thing as above to set up your GPRS settings. When you're done setting those up, to be able to connect to GPRS just choose the GPRS connection you just set up in the Select Networks page. There are 2 connections in there that you can choose which connection you want to use, just use the GPRS settings that you just set up for both of them.
I've managed to set up and connect to the various networks, but I still don't have the option to add or change the MMS server. The buttons remain disabled and only T-Mobile can be used. Still can't log into Messenger, either. The wi-fi is pretty much non-functional. I really regret buying this phone.
Thanks for trying to help me out though, I really do appreciate it.
Just to kind of get this straight, does your GPRS work now? Can you log on to the internet in internet explorer?
I'll have to do some looking, getting your mms to allow you to change to the server that you set up may only take a regestry edit.
As for your wifi, that may have to do with the security settings that you have set up. I believe you can only use wep and in WM5 you may only be able to use 64 bit wep keys but I'm not positive on that. I think you also have to have SSID enabled. I'm kind of new to this part since I just set up my first wireless network about 2 weeks ago.
Don't give up on it yet.
Ok, found the registry settings for MMS. Hopefully your comfortable enough to be able to change the settings yourself. Go to HKLM/Software/Arcsoft/Arcsoft MMS UA/Config/mm1/MMSCSettings/T-Mobile MMS
Now change these registry keys:
Gateway : 205.151.11.13
GatewayPort : 8080
ISP : FIDO MMS
MmscURI : http://mms.fido.ca
Name : FIDO MMS
Now close your registry editor and wait 30 seconds or so and press the power off button until it warns you that "device will be off..." click yes and then reboot your phone.
Your MMS settings should now be set to the correct settings although I'm not going to guarantee it since I couldn't test it myself. The only thing I'm thinking that may cause it not to work is the ConnectionVia registry setting which may cause it to revert back to it's original settings because it points to the t-mobile mms settings and I have no idea what you would need to change that setting to. I'm crossing my fingers though that it doesn't cause it to revert back.
If that doesn't work, deleting the entire T-Mobile settings key may unlock your grayed out keys that aren't allowing you to change your settings in the first place.

VOIP on Kaiser with Broadvoice trunk

I configured my Kaiser 110 (ATT 8925) with Schap's 4.3 and its working very well.
Added my account settings for a broadvoice SIP trunk, and it registers sucessfully. When I receive a call, I can choose silence or text message dialog, and if I choose silence, then the dialog shows answer. If I choose answer, it disconnects the session instantly and the calling party gets a fast busy signal.
If I try to place a call, using a 7, 10, or 12 digit US dial string, the call ends instantly (cant place any outbound calls).
Any suggestions? I'm using WiFi, with a routeable address and no firewalls. I am about 150 miles off of the nearest cellular network, and VOIP will be the killer app to use on this device.
R1.27.12.17
G22.45.88.07H
D1.57.00.00
WM5.2.18125.4.2
I have a Broadvoice account. What settings did you use to get the built-in VoIP software to work?
settings, connections, voip.
I used my typical account settings, and the fastest proxy by ping time.
My dial plan tab is blank however.
Hmmm, I do not have that settings applet. added the WM6 VoIP cab and then the config tool. Using the config tool, I was able to enter what I believe are correct settings.
The Today applet shows 'available'
I see now way to make a call.
If you tap the today applet it will change from available to selected. You can then make calls via VOIP.
Later, Lew
Sorry to resurrect an old thread. Did you guys have success with this? I'm running L26_WM_6.1_PRO.V6a which has VoIP built in and uses Schap's Setup VoIP 0.3. When I dial out the phone immediately hangs up. Incoming calls go to voice mail if they are ignored. The caller gets a number not in service message if I try to answer and the phone stays connected for about a second before hanging up.
My settings are
Provider Name: sip.broadvoice.com
Registrar Address: sip.broadvoice.com Port: 5060 UDP
Proxy Address: proxy-nyc.broadvoice.com Port 5060 UDP
URI Address: sip[email protected]
I've also tweaked the registry to allow Port 5060.
HKLM\System\VoIP\SIP
EnablePort5060 = 1
It appears to be partially working though, there was mention in another thread about BroadVoice using the realm BroadWorks as mentioned at the bottom of the page. http://forum.xda-developers.com/showthread.php?t=299950&page=77 I'm not sure if that is the issue or not since it is an older thread.
Has anyone else managed to get Broadvoice working and if so what CAB files and settings were you using?
Unfortunately, I have never had any success although others have reported having success. It would be nice if someone who has it working would be able to share the settings or even better, have a cab made with the settings within.
Thanks for the reply Jonno. I can get outbound calling to work using the application at Fring.com. You might want to give it a try. Unfortunately it doesn't have a feature for incoming calls.
I could use things like Fring and other applications... but it feels just wrong to be forced to use an application to perform a function that is essentially built into the OS. Having the dialer integrated would be just so much better.

Automatically end data connection ??

Is there anyway of automatically ending data connection after phone
has downloaded email,
I set phone up to automatically download email from my hotmail account
every hour and it works just fine but after downloading email the data
connection stays on
You might want to have a look on GB-SOFT GPRS/UMTS Tweak.
Top_S said:
You might want to have a look on GB-SOFT GPRS/UMTS Tweak.
Click to expand...
Click to collapse
...or set "Long Press End Key" to "Terminate data connection"
or if you double tap the 'end call' key, it also appears to kill the data connection if it's not in use

[HELP] How do I get the start and end times (values) of current calendar event?

I want to set up an Alarm at the time the current calendar event ends.
Read the wiki and didn't find an in built variable that stores the end time. Only %CALTITLE / %CALDESCR / %CALLOC were there.
Then I stumbled on to Action > test app feature. But can't figure out how to get it to work. I made this little task to test it out
This is what I tried
Get the end time of current calendar event and store in variable %Time
Flash a message of %Time to make sure value was correctly put in the variable
1 Test App > Set Type - Calendar End(Second), Set Data - %TIME, Store in %Time.
2 Alert > Flash > Set Text to %Time
However, The flash message read "%Time" instead of the end time of current calendar entry.
I don't know what Data meant in test app. I assumed it asked for the time at which calendar entries should be fetched. So I put %TIME to fetch the end time of the calendar entry active at current time.
Also this is what's present in the documentation
Calendar tests: require the time in seconds since the epoch as Data (e.g. use %TIMES, or use the Variable Convert action to convert a date/time into seconds first) and are entered in an array (%var1, %var2 etc), not a plain value, because there may be multiple events at the time specified.
Click to expand...
Click to collapse
this thread is 2 years old, but I thought I'd share my humble opinion....
theoretically you could test calendar to determine the title of the of the event, make a FOR loop and keep testing it until the event is gone.
Other than that, I'd use apps like Business Calendar, which displays a notification for on going event. Presumably Tasker can detect this.

How do I do this text-based task?

Hey guys, I'm trying to automate a task I do often for work. When I get a potential new customer, I receive a standard email with their information in a specific format. For example:
Name - x
Email - y
Phone - z
I am trying to figure out a way to interact with this body of text and automate it as much as possible. I would have to add a new contact with the name, and send out a standardized email as well as a text.
I haven't really made complex tasks like this, so I'm a bit lost as to where to start. I am rooted. I would also like to note that I'm using a proprietary email app (Blackberry Hub+ Inbox), so I think it may be easiest to start off the task by manually copying the body of the text and then somehow triggering the task.
Thanks in advance!
This project is actually a little complex, and it also interested me so, while I usually don't do this, here is a taskernet share.
Requires AutoTools to be installed because a webscreen is used. On install, you must edit actions 15 & 16 in the task. These are variables for the email subject and body.
The profile triggers when data starting with e.g. "Name - John Doe" is copied to the clipboard. Then a button pops up on the right side of your screen and when you tap it the information is entered into a new contact form that you can edit, cancel or save.
A second button becomes available which triggers the composed email action.
The buttons will time out after 30 seconds without triggering the associated task. You can also "fling" them away to dismiss.
The task is expecting each piece of information to be on a separate line like:
Name - John Doe
Email - [email protected]
Phone - (999) 999-9999
The labels for each line are used as variables in the task to identify the associated data. Therefore, the order does not matter. Though if "Name - " is not first, the profile will not trigger. You would need to edit the regex in the profile context.
If, for example, an address is on multiple lines, the task will need to be modified to handle that.
To limit the activation of this profile to only when the data is copied in a specific app such as an email client, add that app as a context in the profile.
The task is heavily commented.
Finally, I add my username into the profile and task names to help avoid the possibly of namespace collisions (when the imported project has the same profile, task or variable names as existing profile, task or variables). The -ktmom can be removed.

Categories

Resources