I would love to see how you set up your bash script.. I'm a novice in that area too and have been struggling to get my command list organised. I can now manage the very basics.. set manual focus.. set zoom, shoot (just JPEGs at this point), then copy to a USB stick in the Raspberry Pi and upload via FTP.
Hello. Save for the very initial setup of the system, I do not really use a bash script. I think most people agree that bash's flow control operations and error handling is basic and not very readable. For this reason the "core" of the operations is Lua, that is the same language that chdk-ptp (running on the host) and CHDK (running on the camera) also use.
Setup bash script:
https://github.com/alesanmanoweb/multilapse-CHDK/blob/master/multilapseAs you can see, it merely sets something with LEDs (I turn off ALL of them, as I keep my Pi in the same box as the camera, and the emitted light interefers with night exposures) and then execute the Lua chdk-ptp script in an "infinite" loop, just in case it crashes.
Configuration file:
https://github.com/alesanmanoweb/multilapse-CHDK/blob/master/multilapse-config.luaThis is the file that containsl the main settings that you may have to tweak depending on the installation.
Main script:
https://github.com/alesanmanoweb/multilapse-CHDK/blob/master/multilapse.luaI realize this might be more complicated than something you had in mind, and yes my very initial script over two years ago was much, much shorter. But, complete error handling, night exposure, thorough setup, complete logs, are items that bring in complexity. Please feel free to have a look at the script and see if it makes sense. I do not know if you have any Lua background, or any programming background at all
Misc files:
https://github.com/alesanmanoweb/multilapse-CHDK'turnon' and 'turnoff' are two python scripts that are called by the Lua script to, guess what, turn on and off the camera. In my implementation they just flip a raspberry PI GPIO. If you use a different GPIO or any different method, just customize these scripts. Note: python is grossly overkill here. They could easily be Bash scripts. However, there is a neat Raspberry Pi GPIO library for python, and that is why I used it.
I'd like to figure out 3/4G mobile upload of (smaller resized) images because I have a possible remote shoot coming up and I need the peace of mind that it's all running smoothly.
Uploading files that have been resized down to a smaller resolution is definitely something that could be implemented, and it's not even a big deal; in fact I like the idea a lot. I might very well fix the script to support it.
Now, a question to reyalp: you gave me a "private" version of CHDK-PTP that supports signaling. I also know you want to port this experimental feature in the "mainstream" version of CHDK-PTP. Are you going to do it soon so user "Sdack" can get an official version, or can I just provide the binaries I already use for now? I ask this to avoid the proliferation of non-official builds unless it's necessary.