[SOLVED] Deciphering Primo fuel.txt file?   

[SOLVED] Deciphering Primo fuel.txt file?

Postby jumblies » Mon Feb 21, 2011 1:11 pm

Primo has a very handy mileage calculator/log that will prompt maintenance reminders. I would like to export this data, but the numbers are converted to a format that doesn't make any sense to me. This is crossposted to ****.

I'm looking at my fuel.txt and trying to make sense of the numbers. Here is an excerpt:

131729418;34410.9934;35099.7926;48.529000;2.550000
131729425;35099.7926;35638.9229;38.649100;2.540000
131729433;35638.9229;36203.8026;40.049700;2.520000

The date has already been solved (thanks to yksyks).The last "column" is the fuel price. The remainder of the line is puzzling. It's clear there are repeating numbers (mileage) carried from one line to another for the 2nd and 3rd Columns. These middle 3 numbers must be converted user input data. The fourth column must be fuel amount.

Real Data (displayed by Primo in the app)
First line from above: 8/10/2010, Odometer: Start-21382_____End-21810 , Fuel Amount- [unknown] MPG 33.39, Cost of trip .08/mi

I don't see the values for Gas amount in the data line in fuel.txt

Can anyone buy me a clue here?
jumblies offline


Junior Member



 
Joined: Fri Jul 30, 2010 11:49 am
Posts: 6
Has thanked: 0 time
Been thanked: 0 time

Postby Fatboyfun » Mon Feb 21, 2011 1:46 pm

I don't know if they're supposed to be but the numbers 48.529000 2.550000 are GPS coordinates for an area in France near Paris, Other than that i don't know.
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 403 times

Postby nabi » Mon Feb 21, 2011 1:50 pm

This is a first and very raw idea, so don't take it to be true. Also, I can not check things right now.
NavNGo is an European company. In Europe is counted with liters and Kilometers, not gallons and miles. Also not kms per liter (in some European countries they do use this) but very often (mostly?) liters per 100 km.
So now I am guessing that the programmers use this metric system in fuel.txt, while the conversion to miles and gallons is very quickly done by the processor depending on your settings.

As said, just a first idea.
________________________________________________________________________
When I do good, no one remembers, when I do wrong, no one forgets
.
I am in a permanent state of inactivity
I won't answer to any PM, so don't send me any
nabi offline


Ex Super Mod



 
Joined: Mon Dec 28, 2009 5:22 pm
Posts: 2429
Location: somewhere unknown
Has thanked: 39 times
Been thanked: 229 times

Postby Fatboyfun » Mon Feb 21, 2011 1:59 pm

21382 miles = 34410.9934 km, Spot on Nabi !!
Fatboyfun offline


User avatar Ex Moderator



 
Joined: Mon May 17, 2010 5:34 pm
Posts: 5782
Has thanked: 2 times
Been thanked: 403 times

Postby nabi » Mon Feb 21, 2011 2:29 pm

So it's time, km at start, km at arrival, total fuel consumption (?), fuel price.
With these figures, it's possible to calculate the average fuel consumption (here 7.45449 liter per 100km) and the cost.
Even in gallons.

Am I correct? What did I win?? Gimme Gimme !!
________________________________________________________________________
When I do good, no one remembers, when I do wrong, no one forgets
.
I am in a permanent state of inactivity
I won't answer to any PM, so don't send me any
nabi offline


Ex Super Mod



 
Joined: Mon Dec 28, 2009 5:22 pm
Posts: 2429
Location: somewhere unknown
Has thanked: 39 times
Been thanked: 229 times

Postby jumblies » Mon Feb 21, 2011 9:08 pm

You win a spreadsheet! What would you like to have won?

Sorry, No links to other GPS sites allowed!:rulz:
jumblies offline


Junior Member



 
Joined: Fri Jul 30, 2010 11:49 am
Posts: 6
Has thanked: 0 time
Been thanked: 0 time

Postby nabi » Mon Feb 21, 2011 9:14 pm

:yahoo:
I won I won!!
A spreadsheet is fine, so I can play on :gamer:
________________________________________________________________________
When I do good, no one remembers, when I do wrong, no one forgets
.
I am in a permanent state of inactivity
I won't answer to any PM, so don't send me any
nabi offline


Ex Super Mod



 
Joined: Mon Dec 28, 2009 5:22 pm
Posts: 2429
Location: somewhere unknown
Has thanked: 39 times
Been thanked: 229 times

Postby jumblies » Mon Feb 21, 2011 11:47 pm

Spreadsheet attached.
jumblies offline


Junior Member



 
Joined: Fri Jul 30, 2010 11:49 am
Posts: 6
Has thanked: 0 time
Been thanked: 0 time

Postby nabi » Tue Feb 22, 2011 7:37 am

Interesting. Thanks for the attachment!!
________________________________________________________________________
When I do good, no one remembers, when I do wrong, no one forgets
.
I am in a permanent state of inactivity
I won't answer to any PM, so don't send me any
nabi offline


Ex Super Mod



 
Joined: Mon Dec 28, 2009 5:22 pm
Posts: 2429
Location: somewhere unknown
Has thanked: 39 times
Been thanked: 229 times


Return to General Discussions about iGO core

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Bing [Bot] and 5 guests