Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download file issue #9

Open
Hanskes opened this issue Oct 26, 2017 · 4 comments
Open

download file issue #9

Hanskes opened this issue Oct 26, 2017 · 4 comments

Comments

@Hanskes
Copy link

Hanskes commented Oct 26, 2017

I having the following issue, any idea what is going wrong?

hans@hans-neon:~$ python ~/bin/sony-pm-alt.py
2017-10-26 19:35:25,608 [INFO ] Server starting
2017-10-26 19:35:25,608 [INFO ] Setting download dir [PHOTO_DIR] to: /home/hans/Afbeeldingen/flashair/
2017-10-26 19:35:25,608 [INFO ] Setting LD_LIBRARY_PATH to: /usr/local/lib

2017-10-26 19:35:41,143 [INFO ] received MtpNullService from ('192.168.178.20', 1900)
2017-10-26 19:35:41,561 [INFO ] received MtpNullService from ('192.168.178.20', 1900)

*** Fout ***
File '/store_00010001/2017-10-26_00040000/DSC05586.JPG' does not exist.
*** Fout (-2: 'Bad parameters') ***

Gebruik de optie '--debug' voor het verkijgen van debug-informatie.
Debug-informatie kan helpen bij het zoeken naar de oplossing van een
probleem. Als u van plan bent om fout- of debug-meldingen op te sturen
naar de gphoto-mailinglijst gphoto-devel@lists.sourceforge.net, voer
dan gphoto uit als volgt:

env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --port ptpip:192.168.178.20 -P --skip-existing                               

Verzeker u ervan dat er voldoende aanhalingstekens rond de argumenten staan.

@Hanskes
Copy link
Author

Hanskes commented Oct 26, 2017

i have made a couple of extra pics and now it is working again. Sorry for the ticket

@Hanskes
Copy link
Author

Hanskes commented Oct 26, 2017

Is it possible to execute a command or bash script after every file that is downloaded?

@falk0069
Copy link
Owner

Every file? Or just every time the camera connects and uploads? If it is after each time there is an upload, you could add some code after the Popen command around line 165. Or if you want to just monitor the directory for new files you could take a look at the inotify tools. You might find this link useful:
https://superuser.com/questions/956311/continuously-detect-new-files-with-inotify-tools-within-multiple-directories-r

Good luck.

@Hanskes
Copy link
Author

Hanskes commented Oct 29, 2017

that is very helpful, thanks. I am working on a motorized panoramic head to take virtual tours, my goal is to automate the entire process of taking and processing the images, even during the making of the tour. I want to transfer the images after every 360 degree recording (that contains 5 pics) to process the images to an 360 degree image during the recording of the next panoramic image, and so on. My last challenge is to put the camera in transfer mode after every 360 degree recording. I think the only way to do this is by pressing the menu button en than twice the control button with a micro servo motor. Maybe you have an other idea?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants