Status of the GreenHybrid Mileage Database
#42
Re: Status of the GreenHybrid Mileage Database
Hmmm...it seems to work if you go through "Select Your Vehicle" and drill down to the particular model you want, but the link in the top left corner of the website is broken. The link that says "VIEW AND TRACT YOUR MILEAGE - CLICK HERE".
It points to https://www.greenhybrid.com/discuss/...showmpgsummary which results in "page not found".
It points to https://www.greenhybrid.com/discuss/...showmpgsummary which results in "page not found".
#43
Re: Status of the GreenHybrid Mileage Database
Is this what you are looking for?
https://www.greenhybrid.com/discuss/...showmpgsummary
https://www.greenhybrid.com/discuss/...showmpgsummary
#46
Re: Status of the GreenHybrid Mileage Database
Typically an API works like so:
Hit a URL like:
www.greenhybrid.com/api/<username>/mpg
And get back data like (in JSON in this case):
[{id: 1, mpg: 48.7, gallons: 8.1, miles: 394.1}, {id: 2, mpg: 30.4},...]
Those are just made-up values - it would return whatever the columns are in the database for the MPG for a given user. A list of data points for that user's MPG so far.
JSON is a replacement for XML that's basically Javascript. It's a lot shorter than XML for transferring the same amount of data. It's pretty easy to write as you see above - lists of things look like [ , , , ] and things that are more complex than a number or string (objects) look like {prop1: value1, prop2: value2}
A request like the above is called a "GET." It's what you do when you visit a webpage. API calls can also POST, where they write data to the server. For example, it would be nice if a POST to:
www.greenhybrid.com/api/<username>/addtank
With data like:
{mpg: 48.7, date: '11/10/2010', miles: 394, gallons: 8}
Would add a tank to the database.
If API calls like the above existed, iPhone and Android apps would be relatively easy to write that show a user a form for adding a tank, and show them various views of their MPG data.
Hit a URL like:
www.greenhybrid.com/api/<username>/mpg
And get back data like (in JSON in this case):
[{id: 1, mpg: 48.7, gallons: 8.1, miles: 394.1}, {id: 2, mpg: 30.4},...]
Those are just made-up values - it would return whatever the columns are in the database for the MPG for a given user. A list of data points for that user's MPG so far.
JSON is a replacement for XML that's basically Javascript. It's a lot shorter than XML for transferring the same amount of data. It's pretty easy to write as you see above - lists of things look like [ , , , ] and things that are more complex than a number or string (objects) look like {prop1: value1, prop2: value2}
A request like the above is called a "GET." It's what you do when you visit a webpage. API calls can also POST, where they write data to the server. For example, it would be nice if a POST to:
www.greenhybrid.com/api/<username>/addtank
With data like:
{mpg: 48.7, date: '11/10/2010', miles: 394, gallons: 8}
Would add a tank to the database.
If API calls like the above existed, iPhone and Android apps would be relatively easy to write that show a user a form for adding a tank, and show them various views of their MPG data.
#47
Re: Status of the GreenHybrid Mileage Database
Hey soopah, it sounds like this could be technically possible. I'll bring it up in our weekly team meeting, and see whether I can get you a timeframe on implementation.
Thanks for the idea & suggestion
cheers,
robb
Thanks for the idea & suggestion
cheers,
robb
#48
Re: Status of the GreenHybrid Mileage Database
The old mileage database used to have a nice graph function. Are there any plans to bring it back?
Also, is there a way to import your own data back to your home PC? If so, what kind of format would the data be in?
Thanks
Also, is there a way to import your own data back to your home PC? If so, what kind of format would the data be in?
Thanks
#49
Re: Status of the GreenHybrid Mileage Database
Thanks again, Gairwyn. I really liked the old database display. It was quite easy to see the trends, especially seasonal variation in gas mileage due to the effects of cold weather and winter gasoline blends. I lost interest in posting my data with the new database. I now have 98,000 miles on my FEH, nearly double from what I had posted with the old database.
Thread
Topic Starter
Forum
Replies
Last Post
2008 Honda CIvic Hybrid
HCH II-Specific Discussions
8
03-05-2008 03:13 PM