Comments (7)
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.
Perhaps the CSV file generated by selecting the 'Allow auto sending' option can be used as a temp file.
from gpslogger.
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.
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.
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.
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.
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.
from gpslogger.
Related Issues (20)
- App doesn't respect statusbar / camera cut out space HOT 2
- "Package installer keeps stopping": can't install on new Pixel 8 HOT 11
- [Feature request] Add activity type setting
- [Feature request] Send to multiple custom urls HOT 1
- [Feature request] GPS polling and file logging with different peroids HOT 2
- [Feature request] Add BLE Uart as destination for output HOT 2
- Upload all files that have failed to upload when network becomes available HOT 2
- why Intent serviceIntent = new Intent(AppSettings.getInstance(), GpsLoggingService.class); HOT 1
- [Feature request] Auto logging while driving HOT 3
- Email auto sending does not work as set HOT 15
- Start logging after button tab without confirmation HOT 1
- On Android 12 GPS logger messes up with Trimble Mobile Manager HOT 1
- [Feature Request] Have you a plan to add Kalman filter HOT 2
- wrong recording interval (1minute instead of 1second) HOT 2
- Inconsistent Speed Data in GPSLogger App v130 HOT 1
- GPSLogger doesn't notify the user when it can't write to files, leading to data loss HOT 8
- Custom URL logger to OwnTracks with speed in km/h HOT 6
- GPSLogger vs GPS Logger HOT 1
- Send only latest points since auto-send
- Accuarcy export
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpslogger.