Indonesian Blogshares

Thursday, July 28, 2005

Track Your B$ Asset Growth


To create a graphics like above, you need a webserver and MRTG. MRTG should be configured like this:
WorkDir: /path/to/your/web/page/public_html/blogshares
Target[blogshares]: `/path/to/your/mrtg/script/bs.sh`
MaxBytes[blogshares]: 4000000000000000
Title[blogshares]: Grafik kekayaan blogshares
PageTop[blogshares]: <H1>Grafik kekayaan blogshares</H1>
Options[blogshares]: nopercent, gauge, growright, noinfo
YLegend[blogshares]: B$
kMG[blogshares]: ,k,M,B,T,Q
ShortLegend[blogshares]:
Legend1[blogshares]: Total Cash
Legend2[blogshares]: Total Worth
LegendI[blogshares]: &nbsp;Cash:
LegendO[blogshares]: &nbsp;Worth:
Script which feed raw data to MRTG is:
#!/bin/sh
lynx -dump http://blogshares.com/user.php?id=27221 | egrep -e '(Cash Balance|Total Worth B)' | sed -e 's/B\$//' | sed -e 's/,//g' | awk '{print $3}'
date
echo Andika Triwidada
Then you need a cron entry to run MRTG with above configuration every 30 minutes.

So? Let's start graphing! :D

2 Comments:

At 7/29/2005 2:17 PM, Anonymous Charly Silaban said...

Great....
This is mine :
http://charly.goblok.or.id/blogshares/

 
At 7/29/2005 6:20 PM, Blogger dezerai.... said...

saying hello to id b$ players....cheers you have some good players here....

 

Post a Comment

<< Home