biotinker / LibreTasks

An updated form of Omnidroid
Apache License 2.0
82 stars 22 forks source link

Feature request: event on wifi network available / unavailable #188

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I would like to change profiles when a certain wifi network becomes available:
* when my home wifi network is in range, I want to change my profile to Quiet
* when my home wifi network is not in range, I want to change my profile to 
Normal

I used to have Llama that has areas based on network cells, but my work is so 
close to my home now that Llama does not see the difference between my home or 
office. Llama cannot base location on wifi networks.

Original issue reported on code.google.com by jerryvan...@gmail.com on 13 Aug 2014 at 11:55

mvglasow commented 7 years ago

Currently working on this feature. Merge request will follow once it’s finished (and once #218 is merged, which is required to get this to build in the first place).

mvglasow commented 7 years ago

Progress report: it works on my private branch, but only if the screen is on. If the screen is off while wifi connectivity changes, then the respective events do not fire—I suspect the ConnectivityManager.CONNECTIVITY_ACTION intent is not sent during sleep. Will investigate...

mvglasow commented 7 years ago

Ran some more tests: right after the screen goes dark, speech announcement (another feature in my branch) works when the wifi is out of range. On other occasions, there is no announcement—my suspicion is that the device has different levels of “sleep”, and during deep sleep, either the event or the action are inhibited.

travisfw commented 6 years ago

Sounds like a lot of work has gone into this already. Any idea when or if this issue will be resolved and available on f-droid? I'm looking for a way to launch and kill a specific app based on connection to WiFi SSIDs. It's okay if it isn't totally reliable (sounds like the connect event sometimes doesn't go through). A little automation will save me time and battery.