VEHPI-32: Upload of GPX files to the API



Issue Information

Issue Type: Sub-task
 
Priority: Major
Status: In Progress

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: VehManPi (VEHPI)
Resolution: Unresolved
Components: GPS , API Integration ,

Created: 2013-12-26 21:08:39
Time Spent Working
Child of: VEHPI-7: Implement GPS Support


Description
After a GPX track file has been generated (VEHPI-27) the system should attempt to upload all queued track files to the API (assuming that wifi/3g connectivity is available).

Although want to implement in Python, the following would submit a file in BASH;


curl -F "subfile=@importfile.gpx;type=text/xml" \\
-H "X-VEHMAN-KEY: Test: `echo \{mykey\} | sha1sum | awk -F\ '\{print $1\}'`" \\
-H "X-VEHMAN-USER: \{myuserkey\}" \\
\{apiurl\}/journey/import/\{vehicleidentifier\}


Issue Links

Toggle State Changes

Activity


btasker changed status from 'Open' to 'In Progress'