How to grab wifi info in Tasker?

388 views
Skip to first unread message

Terry Wysocki

unread,
Sep 8, 2022, 9:06:54 PM9/8/22
to Tasker
I wrote an AutoIt script on my windows laptop that uses a Powershell command "netsh wlan show interfaces" to get and display a ton of info about the current wifi connection (see example below). Is there any way that Tasker can provide this kind of thing?

There is 1 interface on the system:

    Name                   : Wi-Fi
    Description            : Intel(R) Wi-Fi 6 AX201 160MHz
    GUID                   : x5b89a7a-7dg9-45e4-9dc7-eebsd9aa0b8
    Physical address       : z8:84:a5:bb:s9:h7
    State                  : connected
    SSID                   : mywifibox
    BSSID                  : 10:bf:42:h4:6o:38
    Network type           : Infrastructure
    Radio type             : 802.11n
    Authentication         : WPA2-Personal
    Cipher                 : CCMP
    Connection mode        : Profile
    Channel                : 10
    Receive rate (Mbps)    : 144.4
    Transmit rate (Mbps)   : 144.4
    Signal                 : 99%
    Profile                : mywifibox

    Hosted network status  : Not available

Marcel

unread,
Oct 16, 2022, 8:51:32 AM10/16/22
to Tasker
Hi Terry, have you already looked at the %WIFII (WIFI Information) variable?

aa6vh

unread,
Oct 16, 2022, 11:18:47 AM10/16/22
to Tasker
Also remember that certain wifii information is suppressed when location services is off. I think Android's logic is that some wifi information would give clues as to the phone's location.

Matevz Leskovsek

unread,
Oct 16, 2022, 4:56:38 PM10/16/22
to tas...@googlegroups.com
a bit offtopic but logcat profile in tasker can be used to detect all
sorts of things so tasker can alert you when you get new connection on
hotspot and many other things if you use regex a bit and profile
logcat continuosly
> --
> You received this message because you are subscribed to the Google Groups "Tasker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/abef6efd-5588-4ee1-bc98-fe2ac81548cen%40googlegroups.com.
Message has been deleted

Terry Wysocki

unread,
Oct 17, 2022, 2:28:33 PM10/17/22
to Tasker
Thanks, Marcel! %WIFII provides the piece of info I'm interested in: BSSID (mac address).  I have several access points using the same SSID and I just want to know which one I'm connected to.

On Sunday, October 16, 2022 at 5:51:32 AM UTC-7 Marcel wrote:
Reply all
Reply to author
Forward
0 new messages