supplierdeeply

Shutdown the camera

  • 2 Replies
  • 928 Views
Shutdown the camera
« on: 07 / March / 2018, 12:33:23 »
Advertisements
Hi,
   I'm writing (modifying) an intervalometer script written in LUA, but is possibile to shutdown the camera via LUA function ? Searching in the docs I don't found anything, but I'd like to tourn off the camera when the battery voltage go down the set threshold.

Thanks.

*

Offline reyalp

  • ******
  • 11583
Re: Shutdown the camera
« Reply #1 on: 07 / March / 2018, 13:09:09 »
You can use
Code: [Select]
post_levent_to_ui("PressPowerButton")
Don't forget what the H stands for.

*

Offline msl

  • *****
  • 1239
  • A720 IS, SX220 HS 1.01a
    • CHDK inside
Re: Shutdown the camera
« Reply #2 on: 07 / March / 2018, 13:17:16 »
... or the simple shut_down command.

msl
German CHDK pages:  CHDK forum | CHDK inside | CHDK Twitter News by msl | Download CHDK-DE (Autobuild)
Note: SDM violates the GPL rules!

 

Related Topics