Been real busy getting a project closed off for a prod release.
Did you get your issue sorted out?
If you didnt try manually copying the html file to the www directory (dont change any values except for the ip address).
See that sorts you issue out.
Just a note, that part of the start up script is there to help, BUT the main part of it is the IP address.
I would suggest only leaving that part of the script in and removing the others (USAGE etc) _________________ dd-wrt eko/V24-K26 15508
Belkin F7D4301
8MB Flash
64MB RAM
You are probably using the latest script version as well I assume.
The latest version is still a work in progress and I am still testing it.
I re-wrote the check next day functionality.
It could be this is not working. Ill find out tomorrow night if its not working as mine will reset tomorrow. _________________ dd-wrt eko/V24-K26 15508
Belkin F7D4301
8MB Flash
64MB RAM
I have been playing around with the script recently and think I may have discovered a typo in line 622 of the latest script
currentScript=`echo "$currentScript" | sed "s/$replaceToday/$replaceNewDay"/`
Should it not be
currentScript=`echo "$currentScript" | sed s/"$replaceToday/$replaceNewDay"/`
Given my total lack of scripting knowledge I may be out to lunch in this ..................
wooly
Hey wooly
Both ways should work. If you look at the script I have instances where I have mixed them up (Mainly cause I was still learning as I was developing this script).
I think the fully enclosed expression sed "s/blah/blah" is the cleanest option
Mind you, what I have learnt about firmware, one expression may not work on all versions of the same firmware lol _________________ dd-wrt eko/V24-K26 15508
Belkin F7D4301
8MB Flash
64MB RAM
Thanks FezJay. Having been sidelined with a bad cough/cold recently I have been playing around with the start up script. (Hope I am not stepping on toes )
The majority of the changes require the user to fill in data for a number of parameters which are then carried through to the monitor.html and monitor.sh files. Really just a continuation of what you were doing. Once I found out how to pass more than 9 parameters live became a little simpler!!
A couple of changes are needed in the monitor.html and monitor.sh files
The start of the new start file is shown below. If you have no objection AND there is a demand, I'll clean stuff up a little and put it on here.
Wooly
Quote:
#!/bin/sh
# Enter the 17 Script Arguments for monitor.sh as per the wiki
UPD_INT=10
PUB_ITRN=3
BUP_ITRN=30
RESET_DAY=8
USR_PATH=/mnt/monitor/users.file
BUP_USG_PATH=/mnt/monitor/history/usage.backup
BUP_HIST_PATH=/mnt/monitor/history/
MAC_USG_PATH=/mnt/monitor/mac_usage.db
JAVA_OUT_PATH=/mnt/www/
USG_RST=1
JAVA_HIST=0
KEEP_JAVA=1
REC_DAILY_USG=1
AUTO_ADD_MAC=1
ADD32_SUPT=0
SHOW_MAC=1
LOG_PATH=/mnt/monitor/logs/log
#Enter data to be placed into the Monitor.html file, RESET_DAY data is taken from above
ROUTER_URL=10.1.1.1
USAGE_CAP=90
#Enter path and script name to run the monitor script
RUN_MON_SH=/mnt/monitor/monitor.sh
#These are the orininal variables
MONITOR_LOCK_FILE=/tmp/monitor-started.lock
MONITOR_STOP_FILE=/tmp/monitor-stop
MONITOR_STOPPED_FILE=/tmp/monitor-stopped
Thanks FezJay. Having been sidelined with a bad cough/cold recently I have been playing around with the start up script. (Hope I am not stepping on toes )
The majority of the changes require the user to fill in data for a number of parameters which are then carried through to the monitor.html and monitor.sh files. Really just a continuation of what you were doing. Once I found out how to pass more than 9 parameters live became a little simpler!!
A couple of changes are needed in the monitor.html and monitor.sh files
The start of the new start file is shown below. If you have no objection AND there is a demand, I'll clean stuff up a little and put it on here.
Wooly
Quote:
#!/bin/sh
# Enter the 17 Script Arguments for monitor.sh as per the wiki
UPD_INT=10
PUB_ITRN=3
BUP_ITRN=30
RESET_DAY=8
USR_PATH=/mnt/monitor/users.file
BUP_USG_PATH=/mnt/monitor/history/usage.backup
BUP_HIST_PATH=/mnt/monitor/history/
MAC_USG_PATH=/mnt/monitor/mac_usage.db
JAVA_OUT_PATH=/mnt/www/
USG_RST=1
JAVA_HIST=0
KEEP_JAVA=1
REC_DAILY_USG=1
AUTO_ADD_MAC=1
ADD32_SUPT=0
SHOW_MAC=1
LOG_PATH=/mnt/monitor/logs/log
#Enter data to be placed into the Monitor.html file, RESET_DAY data is taken from above
ROUTER_URL=10.1.1.1
USAGE_CAP=90
#Enter path and script name to run the monitor script
RUN_MON_SH=/mnt/monitor/monitor.sh
#These are the orininal variables
MONITOR_LOCK_FILE=/tmp/monitor-started.lock
MONITOR_STOP_FILE=/tmp/monitor-stop
MONITOR_STOPPED_FILE=/tmp/monitor-stopped
I've been doing this for a while now tbh... I just used the full names & _ for spaces. Using full words help understand what's going on
Thanks FezJay. Having been sidelined with a bad cough/cold recently I have been playing around with the start up script. (Hope I am not stepping on toes )
The majority of the changes require the user to fill in data for a number of parameters which are then carried through to the monitor.html and monitor.sh files. Really just a continuation of what you were doing. Once I found out how to pass more than 9 parameters live became a little simpler!!
A couple of changes are needed in the monitor.html and monitor.sh files
...
Hey Wooly
Not stepping on anyones toes buddy. In fact any help is appreciated. I am sure there are better more effective and efficient ways of doing most of the stuff i am doing in my script.
If you would like, I could add you as a source editor of the project? Just need your email (not too sure if it needs to be a gmail account).
Im using subversion as the source control (pretty easy to setup and use).
Another option is, you send me the source code changes you have made and I add them to subversion.
In any case I will create a major version in the trunk naming it after the dev.
Just finished playing around and adding a couple of lines of text that display % of days from current period that have been used and % of GB used.
Just want to add 1 more piece to colour code the text to show whether usage is ahead of the availability or behind it. Probably be a couple of weeks before I get anything to you as we are taking the trailer down to Tx (away from the snow hopefully). Once settled in I'll send you stuff to look at. If it's worth including, feel free to do so, but be warned .... it's my first attempt at javascript, it may not be pretty.
Hello
I see this listed on the broadcom section but could it also work for an atheros based unit? I have a WNDR3700v2 running DD-WRT v24-sp2 (06/14/11) std - build 17201 and would love to have this or a tracker with similiar detail running. I just have the full version of DD-WRT running, I did not add optware, would prefer not to if I don't have to. With a flash drive mounted as /opt I followed the guide, the startup script runs without error and I get a blank template when I go to http://192.168.1.1/user/monitor.html
showing 0 bytes used and no users listed.
what format does entries into users.file need to be in for my static IP/Mac assignments instead of using dnsmasq.conf? I have static entries for my equipment and the network printer, all the rest are DHCP, mostly guests <20 clients.
Here is how I set up my startup file
#!/bin/sh
MONITOR_LOCK_FILE=/tmp/monitor-started.lock
MONITOR_STOP_FILE=/tmp/monitor-stop
MONITOR_STOPPED_FILE=/tmp/monitor-stopped
while [ ! -f $MONITOR_LOCK_FILE ] && [ ! -f $MONITOR_STOP_FILE ]; do
if [ ! -f /tmp/www/monitor.html ]; then
sed 's/src=.*>/src="http:\/\/192.168.1.1\/user\/user_details.js"><\/script>/' /opt/monitor.html > /tmp/www/monitor.html
fi
/opt/bw_monitor.sh 30 3 30 4 /tmp/dnsmasq.conf /opt/mac_usage.backup /opt/history/ /tmp/mac_usage.db /tmp/www/ 1 0 0 1 1 1 0 /opt/tmp/bw_monitor.log
if [ ! -f $MONITOR_LOCK_FILE ]; then
sleep 10
fi
done
I created all the files in /opt it asks for. The script when ran only creates monitor-started.lock but not mac_usage.db in /tmp.