-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: GasBuddy import #109
Comments
I made an initial attempt at an implementation. For both Fuelly and GasBuddy uploads, I have run into #106. This includes when using sample data from #11 sample2. I wasn't able to find any special characters to remove to help resolve this (as suggested in #106). It looks like the content upload is a text/csv, where multipart/form-data is expected? Response: {"ErrorString":"request Content-Type isn't multipart/form-data"} Request:
|
Looks interesting. Will look into it.
…On Wed, 26 Oct 2022, 9:39 pm Camden Bock, ***@***.***> wrote:
I made an initial attempt
<camden-bock@285865d>
at an implementation.
For both Fuelly and GasBuddy uploads, I have run into #106
<#106>. This includes when
using sample data from #11 <#11>
sample2
<#11 (comment)>. I
wasn't able to find any special characters to remove to help resolve this
(as suggested in #106 <#106>).
It looks like the content upload is a text/csv, where multipart/form-data
is expected?
Response:
{"ErrorString":"request Content-Type isn't multipart/form-data"}
Request:
XHRPOSThttp://localhost:8080/api/import/fuelly
[HTTP/1.1 422 Unprocessable Entity 10ms]
-----------------------------412623039826418261423771155141
Content-Disposition: form-data; name="file"; filename="Fuelly.Export.2.csv"
Content-Type: text/csv
Type,MPG,Date,Time,Vehicle,Odometer,Filled Up,Cost/Gallon,Gallons,Total Cost,Octane,Gas Brand,Location,Tags,Payment Type,Tire Pressure,Notes,Services
Gas,0,2020-01-17,3:03 PM,2010 Honda Element,15021,Full,$3.559,9.781,$34.81,Premium [Octane: 92],,,,,0,,
Gas,22.9,2020-01-21,10:12 AM,2010 Honda Element,15183,Full,$4.099,7.088,$29.05,Premium [Octane: 92],Chevron,chevron,,,0,,
Gas,21.4,2020-01-23,1:06 PM,2010 Honda Element,15403,Full,$3.579,10.298,$36.86,Premium [Octane: 92],Chevron,,,MasterCard,0,,
[...]
-----------------------------412623039826418261423771155141-
—
Reply to this email directly, view it on GitHub
<#109 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEMVPTLIQYUYCYBQ5GHHZ3WFFJTDANCNFSM6AAAAAARPBPU7U>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GasBuddy offers a fuel log tied to transactions from GasBuddy's WEX payment card. GasBuddy's log exports as a CSV with many of the same fields that hammond relies on.
Because GasBuddy provides integration with the fuel purchase through Wex, it is convenient to collect fuel log data through GasBuddy. It would be really great to be able to import this in batches to Hammond!
Column Headers:
ExampleGasBuddyExport.csv
g., MPG)
This looks like it would only require small modificatinos from the Fuelly import function, as well as a new view.
I would imagine that similar instructions would apply to gasbuddy.
GasBuddy has the appropriate currency and fuel unit data if #103 is implemented.
I am not familiar with Go, but I will try to test this in a fork to see if I can get it working.
The text was updated successfully, but these errors were encountered: