Get fit and leave the car at home

Posted on April 1, 2008 20:16 by gtftr

It’s not really a fitness tracker, but it might just help with motivation to get on a bike or walk to work. The latest tracker records fuel (gas for the Americans, petrol for the rest of the world, and of course diesel) and what it costs to cover those miles.. The message format follows a pretty standard format:

@gtFtr Fuel 15.173 gals price 50.51 Odo 13804 Type reg V Jeep # I'm probably going to get scared what the Jeep costs to run!

The parameters are as follows (as usual apart from the first which identifies what it is order isn't that important, but the space separators are, and unless specified they are all optional)

  • Fuel- this has to come first so the parser knows what's it's dealing with. You can also use Gas, Petrol or Diesel instead
  • Qty 15.173 gals – specify Qty, gals (gallons) or litres
  • Cost 50.51 – or Price to record how much you paid
  • Odo 13804 - What was your odometer reading. You can also use Miles or KMs.
  • Type Reg – Which type of fuel – Regular, Unleaded, E10, E85, Flex, Diesel etc
  • Vehicle Jeep – If you record a tracker for more than one vehicle this allows you to separate them

gtFtr is slowly growing. Feel free to use the comments on any post here, or contact us to make suggestions.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

May 14. 2008 07:55

Joe Levi

Thanks for the visit to my blog! MPG tracking is an interesting approach for your "fitness application." Smile

I tried to look up your stats, but I'm getting the dreaded "Yellow Screen of Death" (web.config must not have customErrors set to RemoteOnly or On)

The 'calories' start tag on line 1 does not match the end tag of 'twit'. Line 1, position 39.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Xml.XmlException: The 'calories' start tag on line 1 does not match the end tag of 'twit'. Line 1, position 39.

Source Error:

Line 82: rs = con.execute(query)
Line 83: While Not rs.eof
Line 84: xDoc.loadXML("<twit>" & rs("parsed_twit").value & "</twit>")
Line 85:
Line 86: xml_prep(xDoc.innerXML)


Source File: D:\websites\69.20.45.194\localuser\re100674\show.aspx Line: 84

- www.JoeLevi.com

Joe Levi us

May 14. 2008 12:25

gtFtr

looks like there is a database hiccup. will have a look at it this evening. Grrr. Computers!

gtFtr us

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

November 21. 2008 15:51