User:Rando: Difference between revisions
| Line 58: | Line 58: | ||
Handles from ptpcam functions from the mac mini as python calls using subprocess.run. | Handles from ptpcam functions from the mac mini as python calls using subprocess.run. | ||
==== scripting ==== | |||
http://chdk.wikia.com/wiki/Lua | |||
The "Minimalistic Intervalometer" is a lua script that takes a photo, using half presses and full presses. | |||
Steps: | |||
# Write script | |||
# Place <script>.lua in CHDK/SCRIPTS on SD card | |||
# Run script with | |||
Script Reference | |||
http://chdk.wikia.com/wiki/CHDK_Scripting_Cross_Reference_Page | |||
How to script and run and stuff | |||
http://chdk.wikia.com/wiki/Lua/PTP_Scripting | |||
Revision as of 02:52, 23 November 2018
Ordibooth
CHDK
http://chdk.wikia.com/wiki/CHDK_1.4.0_User_Manual
Download using STICK: http://zenoshrdlu.com/stick/stick.html
Remote Pameters, enable remote
Error creating thumbnail: Unable to save thumbnail to destination
Remote Usage: http://chdk.wikia.com/wiki/USB_Remote
Note: the USB remote functionality is not used for this, we need to control it from the [pi <-> mac] mini device
Scripting
http://chdk.wikia.com/wiki/CHDK_Scripting_Cross_Reference_Page
click
is_key
is_pressed
press
release
shoot
wait_click
wheel_left
wheel_right
Transferring files
How to transfer to computer? Perhaps the rpi can indicate to the macmini to mount the camera and tx the picture.
http://chdk.wikia.com/wiki/PTP_Extension/ptpcam_Examples
ptpcam / libptp
Install instructions
http://chdk.wikia.com/wiki/Ptpcam_in_headless_linux_Dockstar
ok, THIS is the one we want, it has the "ptpcam --chdk" option:
https://github.com/jrabbit/libptp-chdk
notes on usage: http://chdk.wikia.com/wiki/PTP_Extension/ptpcam_Examples
ordi_controller
Handles from ptpcam functions from the mac mini as python calls using subprocess.run.
scripting
http://chdk.wikia.com/wiki/Lua
The "Minimalistic Intervalometer" is a lua script that takes a photo, using half presses and full presses.
Steps:
- Write script
- Place <script>.lua in CHDK/SCRIPTS on SD card
- Run script with
Script Reference
http://chdk.wikia.com/wiki/CHDK_Scripting_Cross_Reference_Page
How to script and run and stuff