Page 1 of 1
Location by wifi ssid
Posted: 22 Oct 2015 16:32
by kadkam
I want to execute an action if a specific SSID is detected (only detected, not connected).
Which trigger I must choose ?
Otherwise how I can execute an action by location use only wifi? (no gps, no phone cells)
With "phone cell GSM" trigger I have problem every 1-2 month; I often reconfigure the number of cell that change.
Thanks
Re: Location by wifi ssid
Posted: 22 Oct 2015 18:42
by Martin
Hi,
You could periodically check condition WiFi Available to detect if certain networks are available.
Regards,
Martin
Re: Location by wifi ssid
Posted: 22 Oct 2015 19:16
by kadkam
"periodic location update" trigger before is required?
Re: Location by wifi ssid
Posted: 22 Oct 2015 19:25
by MURTUMA
Periodic timer is what martin meant. It runs "periodically" and the interval can be costomised.
Re: Location by wifi ssid
Posted: 05 Nov 2015 13:35
by kadkam
If the smartphone is in standby the "periodic location update" trigger (or condition "location") is not detected. How I can resolve?
Re: Location by wifi ssid
Posted: 05 Nov 2015 20:10
by MURTUMA
Periodic timer trigger and then check the location with appropriate condition.
Re: Location by wifi ssid
Posted: 12 Nov 2015 12:16
by mcyber
kadkam wrote:I want to execute an action if a specific SSID is detected (only detected, not connected).
Which trigger I must choose ?
Otherwise how I can execute an action by location use only wifi? (no gps, no phone cells)
With "phone cell GSM" trigger I have problem every 1-2 month; I often reconfigure the number of cell that change.
Thanks
You can also use trigger "
Wifi Scan Result Available" and forget about anything else, timing included. Check is done automatically every 3-5 minutes in background, regardless of screen state, and provides a list of available access points via "
access_points" variable (see trigger documentation). Then, you may check if the AP you look at is in the list, and take your actions accordingly.
Note that, for this feature to work, it is not requested to enable wifi; instead you
must allow continuous scanning of wifi in advanced wifi settings (Android 4.3+). This also benefits your position detection and update, when GPS is off.
Battery consumption is irrelevant.
Re: Location by wifi ssid
Posted: 12 Nov 2015 13:49
by Wibbly
mcyber wrote:
You can also use trigger "Wifi Scan Result Available" and forget about anything else, timing included. Check is done automatically every 3-5 minutes in background, regardless of screen state, and provides a list of available access points via "access_points" variable (see trigger documentation). Then, you may check if the AP you look at is in the list, and take your actions accordingly. Note that, for this feature to work, it is not requested to enable wifi; instead you must allow continuous scanning of wifi in advanced wifi settings (Android 4.3+). This also benefits your position detection and update, when GPS is off.
Battery consumption is irrelevant.
Any idea if having Continuous Scanning allowed is actually more power efficient than leaving WiFi on (when no APs you have in your normal list of APs to connect to automatically are available)?
Re: Location by wifi ssid
Posted: 12 Nov 2015 15:23
by kadkam
I'm using Periodic Timer Inexact with Location update but the phone have problem to detect new position and utilize "passive" ... some time is ok, other times no.
Now I will try your Wifi Scan Result Available solution.
Re: Location by wifi ssid
Posted: 13 Nov 2015 13:56
by kadkam
ehm how I can write the condition
"if access_point contains myssid do it" ?