I manage to put automatic statistics in Open Ogame :D
What did i do...
I use linux, for hosting my ogame site so i used the cron for schedule the statistics...
What did i do?
1 - i installed the
links(text based Internet browser)
2 - i modify the statbuilder.php file, so anyone can update the statistics.
3 - I created a script called
statistics.sh with this code:
Code:
#/bin/bash
echo -----------------------------------------------------
links2 -dump http://mysite/openogame/admin/statbuilder.php
date
echo -----------------------------------------------------
4 - i added this line to crontab(here it updates statistics every 5 minutes) :
Code:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/chico/statistics.sh >> /var/log/ogame.log
What does the statistics script do?
It updates the statistics, and prints the date. so when the cron runs, it sends the output with a date to the log file.
It is pretty stupid i know, but it is a simple way to do the job and log it, and it can do ever 12 Hours or anytime i schedule it to run...
