Coder Social home page Coder Social logo

Comments (7)

LOVE2CMOL avatar LOVE2CMOL commented on June 18, 2024

Alternatively, the CSV file will not be generated if the option to generate CSV files is not selected when using the automatic sending feature to a custom URL.

from gpslogger.

LOVE2CMOL avatar LOVE2CMOL commented on June 18, 2024

Perhaps the CSV file generated by selecting the 'Allow auto sending' option can be used as a temp file.

from gpslogger.

mendhak avatar mendhak commented on June 18, 2024

I don't really have a way to do this cleanly, because the 'auto sending' of URLs is not synchronous with the rest of the application; that means points can be logged to the CSV while at the same time lines from minutes ago are being sent to Custom URL.

A better way to see it is that the Custom URL "auto send" feature is piggybacking off the CSV file logging feature.

I am wondering if it's better to raise a broadcast when a file upload is done, and it could try sending the file name, and a third party application like Llama/Tasker could then delete the file instead.

from gpslogger.

mendhak avatar mendhak commented on June 18, 2024

I am wondering if it's better to raise a broadcast when a file upload is done, and it could try sending the file name, and a third party application like Llama/Tasker could then delete the file instead.

Ah not straightforward like I thought, many of the uploaders don't know about the file they're dealing with or when they're done, and they're background jobs, so I don't have a reliable way of saying that an upload is complete. (Should have listened to my own comment)

from gpslogger.

JoannaBurlandBDR avatar JoannaBurlandBDR commented on June 18, 2024

Could you have it so the URL job removes the line from the csv file?

Or maybe an option to auto delete after a day/week etc.

I'm currently using this for expense tracking and it's filling up my phones storage and creating a lot of duplicates if I don't manually action it everyday. I am considering using Llama or otherwise but would prefer an all in one.

Thanks for the great app otherwise super happy, I'd contribute if I weren't such an amateur!

from gpslogger.

mendhak avatar mendhak commented on June 18, 2024

I think it's best to stick to Llama/Tasker for clearing up files. I have had a few requests, but I really don't want to make GPSLogger a file manager, including having it remove entries from files. There's just too much interdependent logic which can go wrong, and it's too destructive to troubleshoot. A lot of the reasoning boils down to GPSLogger being very 'stateless', it writes to a file and actually forgets about it. It has no knowledge of files it's written to in the past.

from gpslogger.

mendhak avatar mendhak commented on June 18, 2024

Alright, tried once more and I think I have a way to do this.

I can get the app to send a broadcast when a file is uploaded. Tasker or Automate can listen for the broadcast and then choose to delete the file.

This allows the app to continue to be stateless, and it's up to the user to take responsibility for deleting the file.

Example of what the broadcast will look like: https://github.com/mendhak/gpslogger/pull/1126/files#diff-ee93d376b875c680c27e935b59452e931ae71952faf41cc268973e002498b224R78

Just did a quick test in Automate.

image

image

from gpslogger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.