Page 1 of 1

Get Signal Strength of all available Access Points

Posted: 25 Sep 2019 05:01
by Uli
Hi,

I try to make my question shorter.

I need a function, which gets the signal strengt of all available access points, without connecting to them.

I hope that there is a possibility.

Thank you very much!!!

Kind regards
Uli

Re: Get Signal Strength of all available Access Points

Posted: 25 Sep 2019 11:10
by xdauser

Re: Get Signal Strength of all available Access Points

Posted: 29 Sep 2019 11:09
by Uli
Hi xdauser,

thank you very much for your hint.
I tried it. But I am only a "normal" person, which is able to write some lines of code, but I am no programmer. :D So I have my problems :( ... But nevertheless ... thank you very mu h for this hint!!!
;)

Kind regards
Uli

Re: Get Signal Strength of all available Access Points

Posted: 07 Oct 2019 13:04
by vertigo
I came to post a few requests, and this is one of them. I actually already saw the other thread linked here while looking into this, but while I can sometimes make enough sense of posted code to make use of it, and I might be able to do so with that, it would be much, much easier, and more user-friendly, to have a built-in way to do this. Even if half the users could do it with the code (and I suspect that's a high estimate), that leaves half unable to do so.

I'm trying to make a flow to enter DND at night, which starts checking at a certain time first for my home WiFi (to see if I'm home or out) and then if I'm still up or in bed. The best way I can think of or find to do this would be with WiFi strength, since the bedroom is farther from the router, but even when I go in there, or in other rooms equally far away, the strength still stays mostly at level four, with one brief dip down to level 3. I have an alarm app that requires you to be within a certain range of the router before you can dismiss it, which shows the change in signal strength in real-time and with pretty good sensitivity while setting it up, so it clearly is possible. I tried using the light sensor and sound level, but neither seem like they would be reliable. BTW, I realize I can set DND to turn on and off at certain times in the phone settings, but that's completely unreliable, as I'll find DND on in the middle of the day all the time, and I'd like to make something that's more flexible, adjusting to me. Another possible use of this, if it were more sensitive to change, i.e. more analog/continuous vs digital with just four discrete levels that also don't seem to be broken up well (it sort of seems like level four is 30-100% strength and the other levels are the lower 30%), would be to possibly use the strength to determine if I'm getting in the car (weak from being in the garage but not disconnected) and start doing checks on that assumption, without having to wait until it actually disconnects, which can delay it until driving 20-30m or more. Though I'm guessing that keeping an eye on this to use it as a trigger would be a battery drain.