This STATulator was born around new years 07, I was talking with some bike riding buddies and they were looking at their end of year spreadsheets. How many miles they rode, how little they used their mountain bike... And the inner geek in me decided to write the STATSulator.
After a full year of use it has turned out really useful for me. It has shown me how much I rode my commuter bike, after that the mountain bike... But now I carried my craziness over to a new level and track my weight in it as well.
As a project I thought it would be neat ot also make a physical desktop display for it that at a glance would display my stats, to see if I could skip riding that day. :)
Remove these ads by
Signing UpStep 1Supplies
- Plexiglass small sheet
- Allthread (I used #6/32)
- 16 nuts ( I used #6/32)
- 16 washers (I used #6)
- Basic Stamp 2
- Basic Stamp Board
- Parallax 4 x 20 LCD (I used the 4x20 backlit model)
- Wall Wart
-Linux box ( I use fedora core 8)
-- Have PHP/Apache/Mysql Installed
-- Install the BSTAMP Package from sourceforge to compile bs2 code
-- JPGraph
| « Previous Step | Download PDFView All Steps | Next Step » |

































































The table is called weights and has 4 columns
mysql> desc weights;
+--------+---------+
| Field | Type |
+--------+---------+
| id | int(11)
| uid | int(11)
| weight | float
| date | date
Then I use a select the avg weight for the user I am looking for,
select round(avg(weight),0) from weights where uid='$uid'
-Joe
The Hacker's Diet
No, I am not going to talk in Caps Lock for the rest of this comment.
Wow, you did an excellent job, it looks really super duper coolio. Yeah. Coolio.
But seriously Joe, this is just awesome. Great job.
+1 rating.
By the way, why did you feature it yourself?
You can get a unix like environment on windows though, using cygwin. Cygwin is available at http://cygwin.com/http://cygwin.com/
But regardless of that there is a really easy to install package from XAMPP that includes apache,mysql,php,perl for windows linux or os x. Check it out here: http://www.apachefriends.org/en/xampp.htmlhttp://www.apachefriends.org/en/xampp.html
-Joe