Shutdown the camera - Script Writing - CHDK Forum

Shutdown the camera

  • 2 Replies
  • 3043 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

  • ******
  • 14126
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

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

msl
CHDK-DE:  CHDK-DE links

 

Related Topics


SimplePortal © 2008-2014, SimplePortal