DSLStats I notice sometimes doesn't allow its web server to work - it never has worked with my setup from the Pi.
So if anyone is interested, I've made a little workaround where the Pi uploads the files from the \.dslstats\webserver directory to your own FTP server. In my case, I'm uploading to my own website.
First you may need to install ncftp, the following command will do this:
sudo apt-get install ncftp
You'll need to create a script file, this works for me:
echo "Uploading to FTP..."
ncftpput -mR -t 300 -u ftpuserhere -p ftppasswordhere yourftpserver /webstats /home/pi/.dslstats/webserver
echo "Upload Completed."
An example, would be as follows:
echo "Uploading to FTP..."
ncftpput -mR -t 300 -u joebloggs@mywebserver.co.uk -p mypassword ftp.mywebserver.co.uk /public_html/stats /home/pi/.dslstats/webserver
echo "Upload Completed."
The above example would upload to
www.mywebserver.co.uk/stats/webserver/You then need to just add this script to run from cron every 5 mins or whatever interval you want. Add the following line to your cron file:
*/5 * * * * /home/pi/bin/ftp_script
I hope Eric doesn't mind me posting this workaround? Happy New Year to all