Closed bvernoux closed 1 year ago
@jankae Are you ok for that proposal ? as I plan to implement it (and do a PR after)
Yes, this seems like good idea. Thank you for taking it on, I currently can't find much time for this project.
I'm waiting your feedback on my PR https://github.com/jankae/LibreCAL/pull/15
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 formatYYYY/MM/DD HH:MM:SS UTC offset
(UTC offset):DATE_TIME 2023/03/01 10:05:48 UTC+01:00
for France Time:DATE_TIME?
will return for example2023/03/01 10:05:48 UTC+01:00