I thought the problem was the ip 192.168.1.1. My router is 192.168.254.1 so I changed that line but it didn't change anything.
As said.. the files are being moved and created. The app is running, the data files are being populated, but the html page does not run.. well it runs but it is not getting the data.
The page also reports errors. I can't bring it up right now but something about "users" is not defined.
I'm using IE for the browser _________________ [Moderator Deleted]
You don't have Javascript disabled in your browser, do you? That'll definitely mess things up. Is the user_details.js file being created in the same directory as your monitor.html?
Joined: 26 Jan 2008 Posts: 13049 Location: Behind The Reset Button
Posted: Sat Oct 29, 2011 13:12 Post subject:
bpsmicro wrote:
You don't have Javascript disabled in your browser, do you? That'll definitely mess things up. Is the user_details.js file being created in the same directory as your monitor.html?
No.. it is not disabled... I got rid of DS's startup and went back to the one I posted earlier.
The app is running.. The files are where they are supposed to be. The .js script is being created in the same folder a monitor.html.
the user folder is created.. it is actually a symbolic link that points bact to my /opt/www folder
/www/user = /opt/www
the monitor-started.lock file in created in /tmp
EDIT: it has been running for a while.. mac_usage.db & mac_usage.backup are there & populated. No question the app is running. _________________ [Moderator Deleted]
Joined: 26 Jan 2008 Posts: 13049 Location: Behind The Reset Button
Posted: Sat Oct 29, 2011 17:56 Post subject:
Dark_Shadow wrote:
barryware wrote:
Dark_Shadow wrote:
Did you input the correct IP address in /www/user/monitor.html?
that would be 192.168.254.1.. yep..
Only thing I can see is that your script is missing parts of the original script.
Code:
#!/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 /[WWW DIR]/monitor.html ]; then
sed 's/src=.*>/src="http:\/\/192.168.1.1\/user\/user_details.js"><\/script>/' /[DIR]/monitor.html > /[WWW DIR]/monitor.html
fi
/[DIR]/bw_monitor.sh 30 3 30 4 [USER FILE] [DIR]/[USAGE BACKUP FILE] [HISTORY DIR] '' '' 1 0 0 0 1 0 0 [DIR]/[LOG FILE]
if [ ! -f $MONITOR_LOCK_FILE ]; then
sleep 10
fi
done
I didn't define a couple of things.. if you look at my script, I just hard coded a couple of things (MONITOR_LOCK_FILE=)I just hard coded the file into the while statement.
All the files exist.. All are being populated. The only problem is that the html page is not reading the data. The .js file is in the same folder as the html file and has fresh data in it..
I've been dicking with this for hours & hours (collectively over the last few days) I see no reason it isn't working.. I still get the same errors as posted when I bring up the monitor.html page. _________________ [Moderator Deleted]
What paths did you mess up? I have it setup but the page is not populated.
Well.. I spoke too soon. The app runs and the files get put in tmp and they get populated but the monitor.html file does not run.
I get the page, but there is no data..
.
.
.
The page also reports errors. I can't bring it up right now but something about "users" is not defined.
I'm using IE for the browser
Are you using https to browse to the router configuration?
If you are using https and the javascript file is being referenced via http (which it is), you may run into a few security issues.
Is the user_details.js file being populated? Does it have numbers and reading etc?
If it does, then it means that page is unable to load or reference the js file (probably because there are 2 different protocols being used https and http).
If the user_details.js file is not being populated properly (no readings or user array is empty), then I would say that your users.file (your custom file) contains invalid characters or it is not meeting specifications.
Try those for now and see how it goes. _________________ dd-wrt eko/V24-K26 15508
Belkin F7D4301
8MB Flash
64MB RAM