jankae / LibreCAL

4 port eCal module
GNU General Public License v3.0
60 stars 19 forks source link

Add SCPI command to READ/WRITE Date & Time #9

Closed bvernoux closed 1 year ago

bvernoux commented 1 year ago

A good improvement will be to add a SCPI command to retrieve and use PC date/time This will be a great addition to have correct date/time on files created for example to create *.snp files for calibration (Factory or users) As today we see file date time of 2020/01/01 It seems possible to use internal RTC for that https://www.raspberrypi.com/documentation/pico-sdk/hardware.html#hardware_rtc http://elm-chan.org/fsw/ff/doc/fattime.html

Even if after each power off of the LibreCAL the Date/Time will be lost the idea it to update it each time it is connected to the PC when required with the SCPI API

Proposal SCPI command :DATE_TIME with parameter format YYYY/MM/DD HH:MM:SS UTC offset (UTC offset)

bvernoux commented 1 year ago

@jankae Are you ok for that proposal ? as I plan to implement it (and do a PR after)

jankae commented 1 year ago

Yes, this seems like good idea. Thank you for taking it on, I currently can't find much time for this project.

bvernoux commented 1 year ago

I'm waiting your feedback on my PR https://github.com/jankae/LibreCAL/pull/15