Solved: Auto import a directory when a file arrives?

Thanks Bill! I don’t have my camera but I tried it with file copying at the office. It seems to lag a bit more than I think is needed. Maybe the polling interval?

The 1st file opens in darkroom well but the following files cause a bit of chaos. It goes to lighttable and then seems to sequence through the images. Not sure what it’s looking for and then opens an earlier image in the darkroom.

Here’s some output:

/opt/darktable/bin/darktable -d lua

[view_load_module] /opt/darktable/lib/darktable/views/libknight.so' is compiled for another version of dt (module 18 != dt 19) ! [imageio_load_module] /opt/darktable/lib/darktable/plugins/imageio/storage/libpicasa.so’ is compiled for another version of dt (module 18 (opt) != dt 19 (opt)) !
[imageio_load_module] failed to open storage `picasa’: (null)
1.342031 LUA path is /home/me/Pictures/01]OOC/Flashair
1.464270 LUA interval is 2
1.466497 LUA view in darkroom preference is true
27.770169 LUA view in darkroom is true
29.785751 LUA view in darkroom is true
29.795289 LUA
29.795350 LUA number of files is 0
31.795480 LUA view in darkroom is true
31.805064 LUA
31.805108 LUA number of files is 0
33.805223 LUA view in darkroom is true
33.814650 LUA
33.814695 LUA number of files is 0
35.814810 LUA view in darkroom is true
35.824689 LUA panasonic_lumix_g9_76.rw2

35.824745 LUA number of files is 1
37.824856 LUA view in darkroom is true
37.824890 LUA panasonic_lumix_g9_76.rw2
37.832643 LUA checking if file is complete
37.964868 LUA file is complete
37.964892 LUA importing /home/me/Pictures/01]OOC/Flashair/panasonic_lumix_g9_76.rw2
37.976375 LUA panasonic_lumix_g9_76.rw2 imported with id 4622
37.996690 LUA panasonic_lumix_g9_76.rw2.xmp

37.996734 LUA number of files is 1
39.996861 LUA view in darkroom is true
39.996897 LUA panasonic_lumix_g9_76.rw2.xmp
40.022351 LUA
40.022397 LUA number of files is 0
42.022513 LUA view in darkroom is true
42.049925 LUA
42.049962 LUA number of files is 0
44.050107 LUA view in darkroom is true
44.077423 LUA
44.077466 LUA number of files is 0
46.077591 LUA view in darkroom is true
46.104449 LUA
46.104486 LUA number of files is 0
48.104597 LUA view in darkroom is true
48.132248 LUA
48.132283 LUA number of files is 0
50.132391 LUA view in darkroom is true
50.160249 LUA
50.160285 LUA number of files is 0
52.160385 LUA view in darkroom is true
52.187168 LUA panasonic_lumix_g9_76.rw2
panasonic_lumix_g9_30.rw2
DSCF1417.RAF
DSCF1402.RAF
DSCF1402.RAF.xmp
DSCF1417.RAF.xmp
panasonic_lumix_g9_76.rw2.xmp

52.187252 LUA number of files is 7
54.187377 LUA view in darkroom is true
54.187419 LUA panasonic_lumix_g9_76.rw2
54.212631 LUA checking if file is complete
54.354617 LUA file is complete
54.354647 LUA importing /home/me/Pictures/01]OOC/Flashair/panasonic_lumix_g9_76.rw2
54.361369 LUA panasonic_lumix_g9_76.rw2 imported with id 4622
54.862658 LUA panasonic_lumix_g9_30.rw2
54.884955 LUA checking if file is complete
55.023731 LUA file is complete
55.023757 LUA importing /home/me/Pictures/01]OOC/Flashair/panasonic_lumix_g9_30.rw2
55.033894 LUA panasonic_lumix_g9_30.rw2 imported with id 4623
55.047611 LUA DSCF1417.RAF
55.063600 LUA checking if file is complete
55.204725 LUA file is complete
55.204744 LUA importing /home/serveradmin/Pictures/01]OOC/Flashair/DSCF1417.RAF
55.208104 LUA DSCF1417.RAF imported with id 4610
56.039461 LUA DSCF1402.RAF
56.063591 LUA checking if file is complete
56.194662 LUA file is complete
56.194697 LUA importing /home/me/Pictures/01]OOC/Flashair/DSCF1402.RAF
56.201378 LUA DSCF1402.RAF imported with id 4596
56.203966 LUA DSCF1402.RAF.xmp
56.203988 LUA DSCF1417.RAF.xmp
56.203996 LUA panasonic_lumix_g9_76.rw2.xmp
56.227844 LUA panasonic_lumix_g9_30.rw2.xmp

56.227889 LUA number of files is 1
58.228043 LUA view in darkroom is true
58.228093 LUA panasonic_lumix_g9_30.rw2.xmp
58.258300 LUA
58.258337 LUA number of files is 0
60.258474 LUA view in darkroom is true

Hope this is helpful. I’ll give it a whirl with the camera tonight when I get home.

Playing with the camera, it works very smooth if “view in darkroom” is off. If I’m in the darkroom the new file shows up in the film strip and I just double click it to bring it up in the editor. Seems not so laggy when I have to wait for the file transfer. Overall it seems to respond quite well. If it automatically opened the new file in the editor, I’d say it would be very similar to what I see in Capture One.

With “view in darkroom” enabled it hunts around in the lightable per my previous comment.

P.S. the corruption problem seems solved! This is very usable. I am very thankful for the work you have done here!

The chaos problem comes from me turning off view_in_darkroom if there are multiple images and they aren’t xmp files. I turn it back on for the last image and just display that in darkroom. The problem was that it was a mixed batch of images and xmp files. The solution is just to get rid of the xmp file lines earlier in the process so that I don’t have to deal with them and try and work around them.

I’ll make some changes and send an update.

Fixed the xmp file problem. Here’s a zip file with the patched darkroom.c (just drop it over src/views/darktable.c then recompile and reinstall) with the version of filetether that uses it. This should put you in darkroom view, if you select it, and keep you there as each file is imported. Once it’s imported it should be displayed in darkroom view without all the jumping around.

The only thing I’ve noticed is when I drop 3 or 4 files, the import order is not always what I expect. I sort the list by time, so the time the file is copied is what gets used to decide the import order. So if I import file1.jpg, file2.jpg, file3.jpg, and file4.jpg the import order may be 1, 4, 3, 2. So in darkroom view it selects 2 as the image to display and 4 is the image at the end of the filmroll. I could always sort the diff list and import in name order.

Bill

filetether.zip (22.4 KB)

I just tried compiling but got this error:

[ 47%] Linking C shared module libmodule_toolbox.so
/home/me/Downloads/Git.Darktable/darktable/src/views/darkroom.c: In function ‘dt_dev_change_image’:
/home/me/Downloads/Git.Darktable/darktable/src/views/darkroom.c:668:3: error: implicit declaration of function ‘dt_masks_read_forms’; did you mean ‘dt_masks_free_form’? [-Werror=implicit-function-declaration]
dt_masks_read_forms(dev);
^~~~~~~~~~~~~~~~~~~
dt_masks_free_form
[ 47%] Built target map_settings

@Pascal_Obry

I submitted a PR for display_image() a couple of days ago and it’s merged into master, so just do a pull and recompile. I just built from source a few seconds ago and it was fine.

Thanks! Just tested. It was working for about 3 shots and now seems to crash. Possibly the Wifi is a little flaky tonight but seems to interrupt the copy process somehow. Doesn’t corrupt the file but the script that syncs the files from the flashair tells me it has sensed an interruption; didn’t see that before. Or at least I don’t recall it being so regular.

Here’s what the diagnostics are outputting leading into the crash:

667.814822 LUA number of files is 0
668.814932 LUA view in darkroom is true
668.856177 LUA L1009676.DNG

668.856204 LUA number of files is 1
669.856405 LUA view in darkroom is true
669.856488 LUA L1009676.DNG
669.898344 LUA checking if file is complete
670.075816 LUA not yet complete
672.256660 LUA not yet complete
674.445379 LUA not yet complete
676.628365 LUA not yet complete
678.808952 LUA not yet complete
681.001953 LUA not yet complete
683.195816 LUA not yet complete
685.374979 LUA not yet complete
687.568344 LUA file is complete
687.568382 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009676.DNG
687.577365 LUA L1009676.DNG imported with id 4266
688.088278 LUA L1009667.DNG
L1009668.DNG
L1009669.DNG
L1009670.DNG
L1009671.DNG
L1009672.DNG
L1009673.DNG
L1009674.DNG
L1009675.DNG
L1009676.DNG
688.088324 LUA * * * excessive diff detected * * *
688.088330 LUA * * * Old File List * * *
688.088333 LUA L1009676.DNG
L1009667.DNG
L1009668.DNG
L1009669.DNG
L1009670.DNG
L1009671.DNG
L1009672.DNG
L1009673.DNG
L1009674.DNG
L1009675.DNG
688.088341 LUA * * * New File List * * *
688.088582 LUA ERROR : …dmin/.config/darktable/lua/flashairtether/filetether.lua:155: bad argument #-1 to ‘print_log’ (string expected, got nil)
stack traceback:
[C]: in ?
[C]: in function ‘darktable.print_log’
…dmin/.config/darktable/lua/flashairtether/filetether.lua:155: in upvalue ‘start_polling’
…dmin/.config/darktable/lua/flashairtether/filetether.lua:212: in function <…dmin/.config/darktable/lua/flashairtether/filetether.lua:209>
[C]: in ?

Thanks, I’ll check it out. It looks like the first file took 14 seconds or so to transfer. I’m using lsof to check the file and see if it’s open. I wonder if it’s somehow disrupting the write.

Had a typo. Attached an updated file.

filetether.lua.txt (7.9 KB)

Thanks Bill! I’ll test tonight when I have my camera. For some reason I was getting interruptions but it’s possible the Wifi was flaky. Wifi is my least favorite part of what I’m doing here.

I wish someone would invent a dual port SD card that could service 2 hosts via cable connections. I did some research into this last year but it’s beyond my capability. The SD interface is so fast it is very hard to buffer.

Ran a test using a really slow copy command that I wrote (3 min for 25MB file). Tested with and without checking to see if the file was complete and the difference was 1 second. This was with the 2 second sleep between checks so the check ran 120+ times.

Thanks Bill! Yes, it may be a Wifi problem. I’ve got some SD slot extension cables at work. I’m bringing one home tonight for test. Maybe getting the card out of the body will help with more reliable x-mission.

Hi Bill;

I believe the transfer problem is the Wifi connection. I used the extender cable and it seemed to hook up better. So I dug out another Wifi modem (good thing I have my wrecking yard!) and created a dedicated access point. Distance from camera to router definitely affects transfer time. At close proximity with the extender cable it’s near enough 8s but from across the room it was over 1 minute. Luckily without the extender it seems to be consistent around 10s in close proximity so it don’t need to worry snagging the extender.

If you don’t mind me being picky, there’s a substantial delay between when the image arrives in the film strip and when the editor opens it. It looks like your program is cycling through the files trying to determine which to open. I know I could be missing details here but is the file name not known from the copy?

Other than this delay I don’t have any other feedback on what can be improved, this seems really great!

Here’s the output of my last file coming in:
769.826998 LUA
769.827034 LUA number of files is 0
770.827207 LUA view in darkroom is true
770.867590 LUA L1009678.DNG
L1009677.DNG
L1009679.DNG
L1009680.DNG
L1009681.DNG
L1009682.DNG
L1009683.DNG
L1009699.DNG
L1009684.DNG
L1009685.DNG
L1009686.DNG
L1009687.DNG
L1009688.DNG
L1009689.DNG
L1009690.DNG
L1009691.DNG
L1009692.DNG
L1009693.DNG
L1009694.DNG
L1009695.DNG
L1009696.DNG
L1009697.DNG
L1009698.DNG
770.867659 LUA * * * excessive diff detected * * *
770.867666 LUA * * * Old File List * * *
770.867671 LUA L1009678.DNG
L1009677.DNG
L1009679.DNG
L1009680.DNG
L1009681.DNG
L1009682.DNG
L1009683.DNG
L1009684.DNG
L1009685.DNG
L1009686.DNG
L1009687.DNG
L1009688.DNG
L1009689.DNG
L1009690.DNG
L1009691.DNG
L1009692.DNG
L1009693.DNG
L1009694.DNG
L1009695.DNG
L1009696.DNG
L1009697.DNG
L1009698.DNG
770.867693 LUA * * * New File List * * *
770.867698 LUA L1009678.DNG
L1009677.DNG
L1009679.DNG
L1009680.DNG
L1009681.DNG
L1009682.DNG
L1009683.DNG
L1009699.DNG
L1009684.DNG
L1009685.DNG
L1009686.DNG
L1009687.DNG
L1009688.DNG
L1009689.DNG
L1009690.DNG
L1009691.DNG
L1009692.DNG
L1009693.DNG
L1009694.DNG
L1009695.DNG
L1009696.DNG
L1009697.DNG
L1009698.DNG
770.867725 LUA * * * End of Report * * *
770.867738 LUA number of files is 23
771.867910 LUA view in darkroom is true
771.868014 LUA save state is true
771.868039 LUA L1009678.DNG
771.908358 LUA checking if file is complete
772.061474 LUA file is complete
772.061505 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009678.DNG
772.067999 LUA L1009678.DNG imported with id 4268
772.069236 LUA L1009677.DNG
772.101948 LUA checking if file is complete
772.251923 LUA file is complete
772.251995 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009677.DNG
772.256364 LUA L1009677.DNG imported with id 4267
772.258891 LUA L1009679.DNG
772.290587 LUA checking if file is complete
772.447456 LUA file is complete
772.447493 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009679.DNG
772.453819 LUA L1009679.DNG imported with id 4270
772.455116 LUA L1009680.DNG
772.485857 LUA checking if file is complete
772.638790 LUA file is complete
772.638823 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009680.DNG
772.646837 LUA L1009680.DNG imported with id 4271
772.648813 LUA L1009681.DNG
772.681209 LUA checking if file is complete
772.849902 LUA file is complete
772.849937 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009681.DNG
772.855381 LUA L1009681.DNG imported with id 4272
772.856648 LUA L1009682.DNG
772.886885 LUA checking if file is complete
773.046830 LUA file is complete
773.046864 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009682.DNG
773.053313 LUA L1009682.DNG imported with id 4273
773.054712 LUA L1009683.DNG
773.085719 LUA checking if file is complete
773.234000 LUA file is complete
773.234036 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009683.DNG
773.240439 LUA L1009683.DNG imported with id 4274
773.241771 LUA L1009699.DNG
773.275375 LUA checking if file is complete
773.424534 LUA not yet complete
775.588905 LUA file is complete
775.588945 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009699.DNG
775.596211 LUA L1009699.DNG imported with id 4290
775.608873 LUA L1009684.DNG
775.644127 LUA checking if file is complete
775.787834 LUA file is complete
775.787873 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009684.DNG
775.794178 LUA L1009684.DNG imported with id 4275
775.795871 LUA L1009685.DNG
775.826798 LUA checking if file is complete
775.984204 LUA file is complete
775.984241 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009685.DNG
775.990651 LUA L1009685.DNG imported with id 4276
775.992936 LUA L1009686.DNG
776.029605 LUA checking if file is complete
776.184284 LUA file is complete
776.184321 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009686.DNG
776.193256 LUA L1009686.DNG imported with id 4277
776.195893 LUA L1009687.DNG
776.225123 LUA checking if file is complete
776.378010 LUA file is complete
776.378065 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009687.DNG
776.382247 LUA L1009687.DNG imported with id 4278
776.384221 LUA L1009688.DNG
776.415147 LUA checking if file is complete
776.559507 LUA file is complete
776.559546 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009688.DNG
776.566901 LUA L1009688.DNG imported with id 4279
776.568233 LUA L1009689.DNG
776.600401 LUA checking if file is complete
776.757471 LUA file is complete
776.757510 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009689.DNG
776.764626 LUA L1009689.DNG imported with id 4280
776.765946 LUA L1009690.DNG
776.798230 LUA checking if file is complete
776.942620 LUA file is complete
776.942655 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009690.DNG
776.946852 LUA L1009690.DNG imported with id 4281
776.948722 LUA L1009691.DNG
776.979524 LUA checking if file is complete
777.126848 LUA file is complete
777.126885 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009691.DNG
777.133482 LUA L1009691.DNG imported with id 4282
777.135915 LUA L1009692.DNG
777.168938 LUA checking if file is complete
777.315351 LUA file is complete
777.315387 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009692.DNG
777.322050 LUA L1009692.DNG imported with id 4283
777.323408 LUA L1009693.DNG
777.357365 LUA checking if file is complete
777.505353 LUA file is complete
777.505405 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009693.DNG
777.509782 LUA L1009693.DNG imported with id 4284
777.512104 LUA L1009694.DNG
777.544318 LUA checking if file is complete
777.691700 LUA file is complete
777.691735 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009694.DNG
777.701124 LUA L1009694.DNG imported with id 4285
777.702531 LUA L1009695.DNG
777.734151 LUA checking if file is complete
777.877206 LUA file is complete
777.877243 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009695.DNG
777.883867 LUA L1009695.DNG imported with id 4286
777.885233 LUA L1009696.DNG
777.917986 LUA checking if file is complete
778.073773 LUA file is complete
778.073816 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009696.DNG
778.082289 LUA L1009696.DNG imported with id 4287
778.084070 LUA L1009697.DNG
778.114907 LUA checking if file is complete
778.270330 LUA file is complete
778.270363 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009697.DNG
778.279282 LUA L1009697.DNG imported with id 4288
778.281929 LUA L1009698.DNG
778.314640 LUA checking if file is complete
778.460690 LUA file is complete
778.460728 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009698.DNG
778.470515 LUA L1009698.DNG imported with id 4289
778.473324 LUA view in darkroom set to true
778.519253 LUA L1009678.DNG
L1009677.DNG
L1009679.DNG
L1009680.DNG
L1009681.DNG
L1009682.DNG
L1009683.DNG
L1009684.DNG
L1009685.DNG
L1009686.DNG
L1009687.DNG
L1009688.DNG
L1009689.DNG
L1009690.DNG
L1009691.DNG
L1009692.DNG
L1009693.DNG
L1009694.DNG
L1009695.DNG
L1009696.DNG
L1009697.DNG
L1009698.DNG
L1009699.DNG
778.519320 LUA * * * excessive diff detected * * *
778.519326 LUA * * * Old File List * * *
778.519331 LUA L1009678.DNG
L1009677.DNG
L1009679.DNG
L1009680.DNG
L1009681.DNG
L1009682.DNG
L1009683.DNG
L1009699.DNG
L1009684.DNG
L1009685.DNG
L1009686.DNG
L1009687.DNG
L1009688.DNG
L1009689.DNG
L1009690.DNG
L1009691.DNG
L1009692.DNG
L1009693.DNG
L1009694.DNG
L1009695.DNG
L1009696.DNG
L1009697.DNG
L1009698.DNG
778.519346 LUA * * * New File List * * *
778.519350 LUA L1009678.DNG
L1009677.DNG
L1009679.DNG
L1009680.DNG
L1009681.DNG
L1009682.DNG
L1009683.DNG
L1009684.DNG
L1009685.DNG
L1009686.DNG
L1009687.DNG
L1009688.DNG
L1009689.DNG
L1009690.DNG
L1009691.DNG
L1009692.DNG
L1009693.DNG
L1009694.DNG
L1009695.DNG
L1009696.DNG
L1009697.DNG
L1009698.DNG
L1009699.DNG
778.519361 LUA * * * End of Report * * *
778.519368 LUA number of files is 23
779.519529 LUA view in darkroom is true
779.519590 LUA save state is true
779.519601 LUA L1009678.DNG
779.550189 LUA checking if file is complete
779.693448 LUA file is complete
779.693473 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009678.DNG
779.697722 LUA L1009678.DNG imported with id 4268
779.699563 LUA L1009677.DNG
779.731392 LUA checking if file is complete
779.873403 LUA file is complete
779.873434 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009677.DNG
779.877652 LUA L1009677.DNG imported with id 4267
779.879509 LUA L1009679.DNG
779.911450 LUA checking if file is complete
780.068819 LUA file is complete
780.068885 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009679.DNG
780.073303 LUA L1009679.DNG imported with id 4270
780.075263 LUA L1009680.DNG
780.107763 LUA checking if file is complete
780.264543 LUA file is complete
780.264581 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009680.DNG
780.271874 LUA L1009680.DNG imported with id 4271
780.274313 LUA L1009681.DNG
780.308129 LUA checking if file is complete
780.468900 LUA file is complete
780.468939 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009681.DNG
780.473697 LUA L1009681.DNG imported with id 4272
780.475915 LUA L1009682.DNG
780.519157 LUA checking if file is complete
780.676177 LUA file is complete
780.676212 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009682.DNG
780.682723 LUA L1009682.DNG imported with id 4273
780.684025 LUA L1009683.DNG
780.715882 LUA checking if file is complete
780.870143 LUA file is complete
780.870179 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009683.DNG
780.876713 LUA L1009683.DNG imported with id 4274
780.878661 LUA L1009684.DNG
780.911206 LUA checking if file is complete
781.066961 LUA file is complete
781.067033 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009684.DNG
781.071280 LUA L1009684.DNG imported with id 4275
781.073235 LUA L1009685.DNG
781.105647 LUA checking if file is complete
781.255827 LUA file is complete
781.255865 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009685.DNG
781.263909 LUA L1009685.DNG imported with id 4276
781.266349 LUA L1009686.DNG
781.295651 LUA checking if file is complete
781.449827 LUA file is complete
781.449865 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009686.DNG
781.458583 LUA L1009686.DNG imported with id 4277
781.460745 LUA L1009687.DNG
781.493256 LUA checking if file is complete
781.652343 LUA file is complete
781.652380 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009687.DNG
781.659115 LUA L1009687.DNG imported with id 4278
781.661519 LUA L1009688.DNG
781.696297 LUA checking if file is complete
781.858895 LUA file is complete
781.858932 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009688.DNG
781.866254 LUA L1009688.DNG imported with id 4279
781.868751 LUA L1009689.DNG
781.902443 LUA checking if file is complete
782.058730 LUA file is complete
782.058767 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009689.DNG
782.065674 LUA L1009689.DNG imported with id 4280
782.066988 LUA L1009690.DNG
782.098008 LUA checking if file is complete
782.253273 LUA file is complete
782.253308 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009690.DNG
782.260934 LUA L1009690.DNG imported with id 4281
782.264163 LUA L1009691.DNG
782.297714 LUA checking if file is complete
782.444588 LUA file is complete
782.444638 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009691.DNG
782.448988 LUA L1009691.DNG imported with id 4282
782.452238 LUA L1009692.DNG
782.484124 LUA checking if file is complete
782.630084 LUA file is complete
782.630120 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009692.DNG
782.636882 LUA L1009692.DNG imported with id 4283
782.640371 LUA L1009693.DNG
782.675236 LUA checking if file is complete
782.836534 LUA file is complete
782.836582 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009693.DNG
782.843543 LUA L1009693.DNG imported with id 4284
782.846553 LUA L1009694.DNG
782.877002 LUA checking if file is complete
783.027838 LUA file is complete
783.027877 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009694.DNG
783.036223 LUA L1009694.DNG imported with id 4285
783.039346 LUA L1009695.DNG
783.068254 LUA checking if file is complete
783.215123 LUA file is complete
783.215150 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009695.DNG
783.219687 LUA L1009695.DNG imported with id 4286
783.222659 LUA L1009696.DNG
783.254773 LUA checking if file is complete
783.410021 LUA file is complete
783.410064 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009696.DNG
783.414264 LUA L1009696.DNG imported with id 4287
783.416738 LUA L1009697.DNG
783.448902 LUA checking if file is complete
783.606800 LUA file is complete
783.606845 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009697.DNG
783.611250 LUA L1009697.DNG imported with id 4288
783.613690 LUA L1009698.DNG
783.644669 LUA checking if file is complete
783.800718 LUA file is complete
783.800761 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009698.DNG
783.811319 LUA L1009698.DNG imported with id 4289
783.814797 LUA L1009699.DNG
783.846855 LUA checking if file is complete
784.004250 LUA file is complete
784.004287 LUA importing /home/me/Pictures/01]OOC/FlashAir/226LEICA/L1009699.DNG
784.007370 LUA L1009699.DNG imported with id 4290
784.010679 LUA view in darkroom set to true
784.251108 LUA
784.251138 LUA number of files is 0
785.251296 LUA view in darkroom is true
785.290058 LUA

If I import one file at a time, then I just display it. If I import a whole bunch of files, then I just display the last one, so you don’t have files “flashing”. There’s still something not quite right because sometimes it decides to try and import the whole directory. There’s also the problem where the first file is slow, and the rest are quick. I wait on each file until it’s complete which can backlog the system a little. I’m thinking queue them and process the queue each run, taking what’s complete and leaving the rest for the next run.

I’m not sure if I follow what you are saying but in the case of the log I posted, it was adding one file. I haven’t shot a sequential burst yet come to think of it. I’ve been shooting a single frame and timing it’s arrival. It seems to sequence through all of the files when only 1 file is new.

I will try some sequential tests tonight.

I found the import the whole directory issue. If you compare the new file list and the old file list in the log entries L1009699.DNG ended up between 83 and 84 in the old file list. The list is sorted by time, so I’m not quite sure what is going on unless I somehow caught it as it was being created and the time hadn’t updated yet. Just had a thought as I was typing that, because it may take awhile to copy the file over wifi that is probably what happened. So, I need another method to figure out what files have changed or another way of comparing.

I wonder if it was when I was experimenting with the Wifi signal. But I was still only shooting one image at a time so it shouldn’t have arrived out of order.

I may have also sent the file to trash and the sync program copied it back. I was playing with that last night too but I’m pretty sure it was after I sent the log. The Flashair Sync program is not deleting the files on the card as it is supposed to but that’s a different issue I won’t waste your time on.

Do you need to base it on time? I’m thinking generally sorting by file name should work; or at least with any camera I have used the names are sequential.

Here’s the latest version that should address all the issues. Give it a shot and see what you think.

Thanks,

Bill

filetether.lua.txt (8.3 KB)

Thanks! Will do. I haven’t been able been able to shoot much lately. Hopefully will get a chance in the next week or so.