Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

get wireless signal

Name: Anonymous 2010-05-10 12:52

I'm trying to use this widget for awesome to display wireless signal strength, problem is its a year old and where it gets the data (/sys/class/net/*/wireless/link) is deprecated. This is what I got:

local f = io.open("/sys/class/net/eth1/wireless/link")
local signalStrength = f:read()

I tried looking for alternatives, like /proc/net/wireless, but I don't know how to only get the results of Quality - Link.

Name: Anonymous 2010-05-10 12:59

jsut filter it out, geez.

Name: Anonymous 2010-05-10 13:20

CSI:MIAMI QUALITY POST

Name: Anonymous 2010-05-10 13:23

Doesn't Lua have string manipulation functions?

Name: Anonymous 2010-05-10 13:44

>>3
NCIS::losAngeles->Quality('POST');

Name: Anonymous 2010-05-10 13:55

Thanks for the help, I figured it out, I knew there was a reason I came to /prog/.

Name: Anonymous 2010-05-10 14:01

>>4
Actually I wouldn't be surprised if it didn't because the Lua standard library is very lacking.

Name: Anonymous 2010-05-10 15:18

>>4,7
Lua doesn't have pretty much anything, because its intent is to be embedded in another program and use that program's API.

It's the exact opposite of Python's "batteries included" thinking, and maybe one of the biggest reasons why no one cares about Lua.

Name: Anonymous 2010-05-10 16:05

>>6
NOW LOOK AT YOU /prog/!!! LOOK AT WHAT YOU HAVE DONE!!! ARE YOU HAPPY NOW!!! YOU ARE GROUNDED FOR 2 WEEKS AND NOW YOU WILL GO TO YOUR ROOM /prog/ WITHOUT DINNER!!!

Name: Anonymous 2010-05-10 18:40

>>9
A more effective punishment would be "No SICP bedtime story"

Name: Anonymous 2011-01-31 21:01

<-- check em dubz

Name: Anonymous 2011-02-03 2:31

Don't change these.
Name: Email:
Entire Thread Thread List