**** BEGIN LOGGING AT Thu Jun 10 02:59:57 2010 Jun 10 08:24:14 I'am pooping! Jun 10 08:24:26 I AM POOPIN!!!! Jun 10 08:24:32 False alarm. Jun 10 08:54:36 http://www.lifeisajoke.com/Pictures/pooping.jpg Jun 10 10:43:51 Buongiorno! Jun 10 14:58:32 hi all Jun 10 14:58:56 hey kyros Jun 10 14:59:17 I aked iurgi a question vis skype chat which he adviced to ask better here in the IRC Jun 10 14:59:40 well ask ahead :-) Jun 10 15:01:38 it is regarding the ralink chipset compared to the atheros - we used the wlanconfig command on the fonera2.0g for geting the number of clients connected to a network interface. what to use now for the fonera2.0n (ralink) ? Jun 10 15:02:44 iurgi mentioned to use the iwconfig command but I couldn't find an option to get out the number of clients. Jun 10 15:06:03 Hmm, the fonera does show the connected clients in the dashboard, right? Jun 10 15:07:00 no - not on the status page Jun 10 15:07:19 and not on the first dashboard page Jun 10 15:08:30 but Dashboard >> Settings >> Network shows the DHCP leases Jun 10 15:09:05 it's a list, not the sumarized numner... Jun 10 15:09:22 If you have a list, you can count, of course :-) Jun 10 15:09:36 But DHCP leases is very different from wireless clients, of course Jun 10 15:09:41 kyros: What do you need it for? Jun 10 15:10:16 I think the number of leases will do Jun 10 15:10:40 it's for the fonera.be status sticker Jun 10 15:11:04 http://www.fonera.be/status-index.php Jun 10 15:11:36 http://www.fonera.be/status2-2057.png ; the last 2 numbers are working on a Fonera classic, +, 2.0g and show how many clients are connected on your Myplace and how many on your Fon-NG Jun 10 15:12:14 but on the Fonera 2.0n there exists only 1 uci script to count how many "hotspotsessions" there are (registered)... Jun 10 15:12:35 works for all foneras up to f2g, but cpmpletely not for the f2n: there the last box about the number of current clients stays empty since wlanconfig is not applicable. Jun 10 15:12:36 In theory (?) there should be a possibility to find out dhcp leases ? Jun 10 15:14:16 hi skynetbbs - 2 is twice a s much as 1 ;-) Jun 10 15:14:32 dnsmasq used to create such a file I believe in /tmp/dhcp.leases ? Jun 10 15:14:45 I don't have a F2n shell at the moment to test it out :( Jun 10 15:15:21 kyros is your f2n running? Jun 10 15:15:50 lemme check Jun 10 15:15:59 my gf cleaned my desk today and i'm @work Jun 10 15:16:00 Yup, it's there Jun 10 15:16:25 And from the IP address you should be able to tell the difference between public and private, I think? Jun 10 15:16:38 yes - my f2n is active Jun 10 15:16:54 Okay I'll see if I can adapt my file Jun 10 15:16:57 tell me what to do Jun 10 15:18:54 can I get ssh access? Jun 10 15:19:10 currently connected to 2 fonera classic but they have an empty dhcp.leases Jun 10 15:21:39 just checked there are 5 people connected to my Fonera Classic : wlanconfig ath0 list | grep -v UAPSD 2> /dev/null |grep -c -> gives 5 people Jun 10 15:21:44 but dhcp.leases is empty Jun 10 15:22:00 sorry - is was disconected. Jun 10 15:22:10 I was disconnected Jun 10 15:24:41 okay Jun 10 15:24:46 I've send some details via sky Jun 10 15:24:47 skype Jun 10 15:24:54 there must be a reason I didn't use the dhcp.leases Jun 10 15:26:27 on a fon classic/fon+ the dhcp.leases exists but allways empty.... there is a "/tmp/online".... Jun 10 15:33:05 skynetbbs: Those have a completely different firmware, AFAIU, right? Jun 10 15:40:02 different... the fonera 2.0g/n have fon-ng ... but it works on the fonera 2.0g.... but i'm depended on network stack (wlanconfig) and this one doesn't exist on ralink based fon 2.0n Jun 10 15:42:27 I logged in via fon public wlan but there is no /tmp/online Jun 10 15:43:28 "dhcp.leases" is only showing clients of the private network Jun 10 15:44:07 file "dhcp.leases" is submitted to skybetbbs Jun 10 15:49:05 hmm public can be counted with uci.show... but the counter will only indicate "registered" users... not windows users which autoconnect or people who only visit google/youtube Jun 10 15:50:29 wouldn't it be "nice" if the router's owner could see in the GUI that there is a guest connected...? Dashboard >> Settings >> Fonspot or Network is not displaying the connected guest as well. Jun 10 15:51:04 local hotspotcount = require("luci.model.uci").cursor_state():get("fon", "state", "hotspotcount") Jun 10 15:51:27 it's possible to show in the gui Jun 10 15:51:42 I'll see if I can make a plugin soon... Jun 10 15:51:57 got a flukso session to give tonight :-) Jun 10 15:52:15 anyone knowing why it isn't shown in the current GUI? Jun 10 15:53:19 a connected Fonero should be an important information for the hotspot's owner, isn't it? Jun 10 15:54:27 no idea where the "dashboard" is configured Jun 10 15:54:52 etc lua luci controller comes to mind Jun 10 15:55:21 and then in "model" it can be put between "Public: <% = require("luci.model.uci").cursor_state():get("fon", "state", "hotspotcount") %>" Jun 10 15:56:13 http://trac.fonosfera.org/fon-ng/changeset/689 Jun 10 15:56:16 ffound it... Jun 10 15:56:40 go to /view/fon/admin_fon_summary.htm ΒΆ Jun 10 15:56:51 probably under /etc/lua/luci/view/fon Jun 10 15:56:57 vi admin_fon.summary.htm Jun 10 15:57:45 at line 48 you can copy line 47 but change extra info...instead of uptime add... connected users public/private Jun 10 15:58:15 at the moment fon has added "important" info to tweets :-) Jun 10 15:58:31 you're not 24/24h watching your dashboard (and request an autorefresh :-) Jun 10 15:59:49 when I check the gui one important staus info is if rhwew is a guest connected or not. Jun 10 16:02:34 kyros: I guess you can few connected users' history on fon.com, of course Jun 10 16:03:27 skynetbbs: Where do you get the connected users from, then? Jun 10 16:03:47 Ah, the hotspotcount line you pasted before, I guess? Jun 10 16:04:35 yes Jun 10 16:04:58 there is a hotspot counter... (not private counter) Jun 10 16:05:39 so for the private we just do a "wc -l /tmp/dhcp.leases" and for public it's this luci thing... to do it in a shell script it's just using "uci get fon state hotspotcount" Jun 10 16:05:53 or something (i'm not yet fluent in luci :-) Jun 10 16:09:50 nevertheless a connected fonero guest it's a core information for the dashboard in my eyes since it is a FON-router. Jun 10 16:09:51 http://trac.fonosfera.org/fon-ng/browser/trunk/fon/fonstate/src/plugin/chilli.c?rev=1366 : chilli_set_users Jun 10 16:10:29 @kyros... I'll see to give you a plugin with the first community advanced dashboard :-) Jun 10 16:11:30 thnax for caring ;-) Jun 10 16:12:30 okay gotta leave now...see ya Jun 10 16:12:36 but I'm happy to see that the perfect status sticker seem to get a change for f2n soon. Jun 10 16:14:18 thanx everyone for helping! I now leave as well. Jun 10 17:39:13 Ciao **** ENDING LOGGING AT Fri Jun 11 02:59:57 2010