|
2014-08-14
, 08:13
|
Posts: 391 |
Thanked: 908 times |
Joined on Aug 2011
@ suncity
|
#42
|
hey cheers -- haven't done much to this in yonks
Yeah in my experience the timelapse bugs are more to do with the somewhat buggy native alarmd library than anything else -- I was trying to avoid using cron unneccesarily, but maybe I should switch for stability.....
Anyhoo, let me see if I can actually help or not:
* What params did you set for the timelapse?
* Were the relevant alarm cookies showing in the timelapse window?
|
2014-08-15
, 10:10
|
Posts: 309 |
Thanked: 519 times |
Joined on Oct 2010
|
#43
|
The Following User Says Thank You to tetris11_ For This Useful Post: | ||
|
2014-08-15
, 12:04
|
Posts: 391 |
Thanked: 908 times |
Joined on Aug 2011
@ suncity
|
#44
|
The alarmd cookies are the listed items on the second image you provided -- these tell the alarmd daemon: when to run, what to run, and who set the alarm.
So right now you've just confirmed that the cookies are being set properly and read from alarmed properly, but unfortunately alamred is not processing them for some buggy reason I've seen before that comes with executing custom scripts....
This leaves me with two options:
* 1 . write my own background daemon, which would be overkill
* 2. Use cron, which is nice and easy but I have no idea how reliable or resource hungry it is.
I'll try and find some time to play with this over the coming months, but no promises as usual. Thanks for the feedback anyhow
|
2014-08-16
, 13:02
|
Posts: 309 |
Thanked: 519 times |
Joined on Oct 2010
|
#45
|
#!/bin/bash # Edit these cap_script=/home/user/MyDocs/cap_script.sh cap_dir=/var/tmp an_script=/home/user/MyDocs/animate_script.sh output_anim= $cap_dir/output_animation.gif every_N_min=20 between_hour="11-12" #################### # Make capture script echo " #!/bin/bash phone-control --capture $cap_dir/`date +%Y_%m_%d-%H_%M_%S`.jpg " > $cap_script # copy+backup current crontab crontab -l > old_cron.txt cp old_cron.txt current_cron.txt # Make the animate script that also restores the previous cron (and deletes the timelapse job) echo " #!/bin/bash convert -delay 20 -loop 0 $cap_dir/*.jpg $output_anim crontab old_cron.txt rm old_cron.txt " > $an_script # The following will execute the capture script "every N minutes" between the hours of "between_hour" just for today echo "#min hour dom mon dow year" >> current_cron.txt echo " */$every_N_min $between_hour `date +%d\ %m\ %w\ %Y` $cap_script >> current_cron.txt # Add animation script an hour after it runs to cron echo " 0 $(( `echo $between_hour | egrep "[0-9]+$"` + 1 )) `date +%d\ %m\ %w\ %Y` $an_script >> current_cron.txt # Write new crontab crontab current_cron.txt rm current_cron.txt
The Following 5 Users Say Thank You to tetris11_ For This Useful Post: | ||
|
2014-09-08
, 11:53
|
Posts: 391 |
Thanked: 908 times |
Joined on Aug 2011
@ suncity
|
#47
|
A quick fix until then would be to install cron, phone-control, and imagemagik and run:
TimeLapse.sh:
=============
Code:#!/bin/bash # Edit these cap_script=/home/user/MyDocs/cap_script.sh cap_dir=/var/tmp an_script=/home/user/MyDocs/animate_script.sh output_anim= $cap_dir/output_animation.gif every_N_min=20 between_hour="11-12" #################### # Make capture script echo " #!/bin/bash phone-control --capture $cap_dir/`date +%Y_%m_%d-%H_%M_%S`.jpg " > $cap_script # copy+backup current crontab crontab -l > old_cron.txt cp old_cron.txt current_cron.txt # Make the animate script that also restores the previous cron (and deletes the timelapse job) echo " #!/bin/bash convert -delay 20 -loop 0 $cap_dir/*.jpg $output_anim crontab old_cron.txt rm old_cron.txt " > $an_script # The following will execute the capture script "every N minutes" between the hours of "between_hour" just for today echo "#min hour dom mon dow year" >> current_cron.txt echo " */$every_N_min $between_hour `date +%d\ %m\ %w\ %Y` $cap_script >> current_cron.txt # Add animation script an hour after it runs to cron echo " 0 $(( `echo $between_hour | egrep "[0-9]+$"` + 1 )) `date +%d\ %m\ %w\ %Y` $an_script >> current_cron.txt # Write new crontab crontab current_cron.txt rm current_cron.txt
The Following User Says Thank You to justmemory For This Useful Post: | ||
|
2015-03-03
, 12:11
|
Posts: 309 |
Thanked: 519 times |
Joined on Oct 2010
|
#49
|
|
2015-08-14
, 18:43
|
Posts: 290 |
Thanked: 385 times |
Joined on Jan 2012
@ Madrid, Spain
|
#50
|
White needs to be a valid integer
/opt/watchdog/bin/watchdog -c -d -s 1280 960 -w 5999 -t 30:00
The Following User Says Thank You to pasko For This Useful Post: | ||
Tags |
nokia n900, watchdog |
Thread Tools | |
|
hey cheers -- haven't done much to this in yonks
Yeah in my experience the timelapse bugs are more to do with the somewhat buggy native alarmd library than anything else -- I was trying to avoid using cron unneccesarily, but maybe I should switch for stability.....
Anyhoo, let me see if I can actually help or not:
* What params did you set for the timelapse?
* Were the relevant alarm cookies showing in the timelapse window?
PhoneStreamer - VLC/Webcam/Audio streaming to your PC. Also it's a SPYCAM app
WatchDog - Motion Detector and Time Lapser. Securicam!