Location by wifi ssid
Moderator: Martin
Location by wifi ssid
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
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
Hi,
You could periodically check condition WiFi Available to detect if certain networks are available.
Regards,
Martin
You could periodically check condition WiFi Available to detect if certain networks are available.
Regards,
Martin
Re: Location by wifi ssid
"periodic location update" trigger before is required?
Re: Location by wifi ssid
Periodic timer is what martin meant. It runs "periodically" and the interval can be costomised.
Re: Location by wifi ssid
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
Periodic timer trigger and then check the location with appropriate condition.
Re: Location by wifi ssid
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.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
Battery consumption is irrelevant.
Re: Location by wifi ssid
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)?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.
Re: Location by wifi ssid
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.
Now I will try your Wifi Scan Result Available solution.
Re: Location by wifi ssid
ehm how I can write the condition
"if access_point contains myssid do it" ?
"if access_point contains myssid do it" ?