mendhak/gpslogger

[FEATURE] Add intent to upload data

Closed this issue ยท 9 comments

It will be useful to have an intent to upload data.
A lot of time I have an inconsistent Internet connection and sometimes it happens that some files are not sent.
With the intent, I can schedule with Tasker a profile that automatically upload the files when I'm in a certain location where I'm sure to have a good Internet connection.

Well this is embarrassing. I just started looking at this and realized it already exists, just with a bad name. You can apparently send emailAlarm:true and it initiates the file uploads. This must be a name from before there were other upload options.

As they say one of the hardest problems in programming is naming things.

I am going to break this name in the next release and call it immediateautosend, and add it to the FAQ page.

Test APK with the new name here. Hoping to find some time to test it. https://github.com/mendhak/gpslogger/releases/tag/v126-rc1

I see that I need to uninstall the version 125 before installing this one, will I lose the settings?

Yes I think you will lose all settings and all files if you install this APK. Android doesn't allow installing the same package name side-by-side!

Can you name this one as GPSLoger_beta or something like this?

I can't, it's the com.mendhak.gpslogger package name which is what the OS is complaining about. It's fine if you're unable to test, I'll test it in an emulator.

In the meantime with your existing version, you can try passing emailAlarm: true from Tasker and see if the upload is still working.

I'm trying it, but I don't see any connection from the smartphone to my server. All my files have been already updated, can this be the "problem"? If yes, then I don't know how to test it, sorry... :(

It may not be sent if logging is turned off, the auto send relies on the logging to be on. I just tried it with the new name and it worked fine.

Image

v126 is now in releases and fdroid.