Dear Manoweb,
In my search for the most low power version of this set up I have purchased a Raspberry Pi Zero (W), which draws roughly half the current of it's bigger brothers in the Raspberry Pi family. I duplicated the installation of your awesome multilapse to the corresponding folders but find that the LED control causes the scripts to fail with the following error:
root@raspberrypi_Zero-01:~/multilapse-CHDK# ./multilapse
./multilapse: 4: ./multilapse: cannot create /sys/class/leds/led1/trigger: Directory nonexistent
./multilapse: 5: ./multilapse: cannot create /sys/class/leds/led1/brightness: Directory nonexistent
setting SPD LED to status 0
setting LNK LED to status 0
No LAN951x found on USB
can not open usb device. are you root?
It turns out that the Zero only has one LED and no ethernet port (the W in the name of my device stands for 'wireless')
I've looked at the code in the multilapse file
!/bin/sh
echo none >/sys/class/leds/led0/trigger
echo 0 >/sys/class/leds/led0/brightness
echo none >/sys/class/leds/led1/trigger
echo 0 >/sys/class/leds/led1/brightness
/usr/bin/lan951x-led-ctl --spd=0 --lnk=0
while [ true ]
do
/root/chdkptp/chdkptp.sh -e'exec dofile("/root/multilapse-CHDK/multilapse.lua")' >>/$
sleep 10
done
and am wondering if it's safe to remove the while loop that contains the led controls, in the vain hope that it might allow the rest of the script to go ahead and take pictures.
Am I right?
Cheers
Sdack