User:Whiteknight/Count Ticker/Script
R L P | ||||||||
Whiteknight | Discussion | Book Foundry | All Books | New Book Guide | Book Creator | Images | About Me |
Script
editThis is a planning page for my script that reads the hit counter and posts results.
Data
edit- Month
- The month of the entry
- Total Hits
- The total number of page hits counted by wikicharts since the counter was activated on October 5th 2007. Notice that these numbers are not accurate prior to January 3rd, 2008.
- Threshold
- the threshold necessary for a book to appear on this list. This is computed statistically.
- Books Listed
- The number of books above the threshold. Capped at 50.
- Posted
- The time of day posted, EST.
Books are listed by the total number of page hits. The top 10 books are bolded. Per-book page hit data are proportional but inaccurate before January 3rd 2008. Page hits are counted continuously from October 5 2007. To get per-day hit counts, subtract the page hits from the number for the previous day. At the moment, this subtraction is not performed manually.
Current Status
editScript is up and running, regular updates. Script is set to automatically update the ticker every night at 9pm EST.
Components
editThere are a number of different components that i'm working on right now.
Templates
editI use various templates with the counter ticker. more details about them to come.
Uploader
editThis script is written in perl. It queries the hit counter every day at 9PM EST and posts the results onto wikibooks.
Graphs
editI'm working on a custom javascript to graph the daily page hit counts. I've just about removed all the kinks. To install my graph tool (which has many uses besides just keeping track of page counts), add this line to your personal javascript file:
import_script('User:Whiteknight/graph.js');
Once you do, you should be able to see a graph here:
This is tested to not work in IE6 and IE7. IE does not support the <canvas> tag, which is required for this to work. Works in Safari and FF2. I may try to come up with an alternate method for use in IE, but I make no promises about this.
To Do
edit- Possibly use subst on templates.
- Possibly allow other counts to be graphed, possibly by searching archives.
- Set hard limit for number of records to post, such as 50.