Get "signal dbm" via CLI/API/batch interface?

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
ng3700v2
Posts: 32
Joined: Thu Mar 17, 2011 9:02 am

Get "signal dbm" via CLI/API/batch interface?

Post by ng3700v2 »

I'm looking for a way to obtain the list of "Connected Wireless Hosts" including the "Signal" column programmatically without having to use the web interface. Is there a command, script, API, or some other means of acquiring this data?

Here's what I've tried:
I copied /www/hosts.sh to hosts2.sh and removed the "eval $( gargoyle_session_validator ..." line. This lets me get a bunch of data using cURL without logging in. Unfortunately, however, the wireless signal is not included in the output. I'm assuming that data is crunched in the /www/js/hosts.js

Any help or assistance is greatly appreciated.
Thanks!

ng3700v2
Posts: 32
Joined: Thu Mar 17, 2011 9:02 am

Re: Get "signal dbm" via CLI/API/batch interface?

Post by ng3700v2 »

After more research, I finally discovered that this command will provide me that information that I desire:

Code: Select all

iw dev wlan0 station dump

Post Reply