Now we're cooking. Things seem to be progressing smoothly now. I'll monitor for a day'ish, then upgrade to your latest script and make sure it stays working.
Now we're cooking. Things seem to be progressing smoothly now. I'll monitor for a day'ish, then upgrade to your latest script and make sure it stays working.
Brad.
Oh good :-)
You will be happy to know that I have revamped my setup wiki page based on the issues found recently with my setup instructions.
user_details.js is generate fine on /tmp/www and found on monitor.html. mac_usage.db and mac_usage.backup are generated fine too with the stats, but monitor.html never show me any information. _________________ My Blog
wrt54GL 1.1 -> Resurrected eko 14471/MMC Mod
E2000 (wrt320n converted) 1.0 -> BS 15962M -> Resurrected WAN<Serial> BS r23919
RT-AC56U -> Merlin 374.42_2
Yes, monitor.html was edit to correct IP, how I said, user_details.js its generated correctly on /tmp/www and accessible from my web interface.
Anyway, the content of js generated dont change, the whole content of file in this moment:
todaysDay=30; var users=[];
So far no errors on FF (and JS console) or IE. usage files (bckup, mac_usage...) appear contain the correct data.
Im using your latest file versions, maybe i should test old builds. _________________ My Blog
wrt54GL 1.1 -> Resurrected eko 14471/MMC Mod
E2000 (wrt320n converted) 1.0 -> BS 15962M -> Resurrected WAN<Serial> BS r23919
RT-AC56U -> Merlin 374.42_2
Yes, monitor.html was edit to correct IP, how I said, user_details.js its generated correctly on /tmp/www and accessible from my web interface.
Anyway, the content of js generated dont change, the whole content of file in this moment:
todaysDay=30; var users=[];
So far no errors on FF (and JS console) or IE. usage files (bckup, mac_usage...) appear contain the correct data.
Im using your latest file versions, maybe i should test old builds.
Your all good.
Is that the ONLY line in the JS file?
If it is, then I would check your users.txt file.
It goes through this file, and matches it up against the usage file.
If there are not entries such as
todaysDay=30; var users=[]; User0=new Object(); User0.ID='Chris'; User0.userUsage=[]; MAC701A04D1ABF2= new Object(); MAC701A04D1ABF2.ID='PC'; MAC701A04D1ABF2.dayUsages=[]; MAC701A04D1ABF201= new Object();
MAC701A04D1ABF201.down=0;
MAC701A04D1ABF201.up=0;
MAC701A04D1ABF2.dayUsages[0]=MAC701A04D1ABF201; MAC701A04D1ABF202= new Object();
MAC701A04D1ABF202.down=0;
MAC701A04D1ABF202.up=0;
MAC701A04D1ABF2.dayUsages[1]=MAC701A04D1ABF202; MAC701A04D1ABF203= new Object();
... up to MAC701A04D1ABF2.dayUsages[31]
Then it would appear I am not able to retrieve user information.
Can you try this on your route command line.
sed -n "1"'p' /tmp/smbshare/users.txt
What this should pull out is the very first user line.
Im assuming every version of dd-wrt contains grep and sed support (actually hoping) _________________ dd-wrt eko/V24-K26 15508
Belkin F7D4301
8MB Flash
64MB RAM
Yes, sed work fine and retrieve correctly the first line:
00:xx:xx:xx:xx:xx,192.168.2.2,Theliel,Theliel
The same problem with /tmp/dnsmasq.conf _________________ My Blog
wrt54GL 1.1 -> Resurrected eko 14471/MMC Mod
E2000 (wrt320n converted) 1.0 -> BS 15962M -> Resurrected WAN<Serial> BS r23919
RT-AC56U -> Merlin 374.42_2
Delete the JS file and let the script try and re-create it. You do not need to restert the script, the system checks every time make sure one exists or not.
I get the feeling that it didnt have access to the user.txt file before the script was started.
So it created the JS file, and every next update couldnt find an entry so stepped over it.
Ah wait, have you got sort functionality (Option 11)?
try this
sort -t, +2 -3 /tmp/smbshare/users.txt
If this doesnt work try changing that option to 0 (atm you have it set to 1).
sort dont work for some reason, If I invoke sort manually response with a "illegal option -- 3".
Work fine now thank, Im was very interested on some utils like this.
Im experimenting some issues, for example some clients are added automatically to my users.txt regardless if their exist on list or not. I going to play a little with this and maybe tomorrow i can tell you more (sorry, here are 4:17 am and I need to sleep something)
Good work. _________________ My Blog
wrt54GL 1.1 -> Resurrected eko 14471/MMC Mod
E2000 (wrt320n converted) 1.0 -> BS 15962M -> Resurrected WAN<Serial> BS r23919
RT-AC56U -> Merlin 374.42_2
add other clients to the list its fine, the problem are some client that already exist on list are added too with MAC 00:00:00:00:00:00, but with a correct and existing IP. _________________ My Blog
wrt54GL 1.1 -> Resurrected eko 14471/MMC Mod
E2000 (wrt320n converted) 1.0 -> BS 15962M -> Resurrected WAN<Serial> BS r23919
RT-AC56U -> Merlin 374.42_2