RP6conrad / ESP-GPS-Logger

GPS logger for Speedsurfing, based on ESP32 & Ublox M8N hardware.
MIT License
36 stars 19 forks source link

File naming #2

Closed prichterich closed 1 year ago

prichterich commented 2 years ago

I suggest to change the naming of the log files to include the date (preferably at the front, and in yyyy-mm-dd format), and possibly also the time (add hhmm). In theory, the date and time file stamps on the files could be used, but in practice, transferring the files with FTP time stamps the transferred files with the date and time of transfer, so the original dates and times are lost.

To prevent file names from getting very long, but to keep information about the units used, the MAC address can be shortened to the last 4 digits in the file names. The first 8 characters of the MAC address tend to be identical or almost identical for ESP units, so they add very little information.

RP6conrad commented 2 years ago

With WinSCP (FTP client for Windows), the correct date/time stamps are transferred, but maybe other FTP clients behave different.

Greetings, Jan.

Verzonden vanuit Mail voor Windows

Van: prichterich Verzonden: zaterdag 14 mei 2022 15:46 Aan: RP6conrad/ESP-GPS-Logger CC: Subscribed Onderwerp: [RP6conrad/ESP-GPS-Logger] File naming (Issue #2)

I suggest to change the naming of the log files to include the date (preferably at the front, and in yyyy-mm-dd format), and possibly also the time (add hhmm). In theory, the date and time file stamps on the files could be used, but in practice, transferring the files with FTP time stamps the transferred files with the date and time of transfer, so the original dates and times are lost. To prevent file names from getting very long, but to keep information about the units used, the MAC address can be shortened to the last 4 digits in the file names. The first 8 characters of the MAC address tend to be identical or almost identical for ESP units, so they add very little information. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

prichterich commented 2 years ago

I just double-checked, and FileZilla on macOS sets both creation and modification date of the file to the transfer date. FileZilla is also the only ftp program that seems to work (I've tried 3 or 4 others). Of the speedsurfers I know in the US and Australia, a lot are Mac users.

jetsoftwind commented 2 years ago

I use filezilla on windows and as long as the menu option - Transfer/"Preserve timeStamps of transferred files" is on then the modifed date/times are correct the created time is the transfer time. On windows the shortcut key is Ctrl-U

Rolzzz commented 1 year ago

just bumping this one, I'm using new method of pulling down from internal web browser and file format when downloading is as follows

_Rolz_94B555C8DB1C_000.ubx _Rolz_94B555C8DB1C_001.ubx _Rolz_94B555C8DB1C_002.ubx

if I download and then delete from device it creates a new file that again starts from _Rolz_94B555C8DB1C_000.ubx then if I try to save to my gps file location on my computer I get message file already exists. if file name could include date that would be awesome. :)