Jump to content

video-noob

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. I ran it again the see it scheduled using the atq and I am also keeping the shell window opened. Will check again after the next run time to see how it does. Thanks. Edit:: Found the problem, I was running the script from a SMB share that root didn't have access to so the subsequent at run had nothing to do. Running now from my home dir and all should be good.
  2. Question: Got the script to run Yeah and it schedules itself for another run however after that I can't find it resheduling itself after? Do I need to do a cron job to keep it going forever? Thanks as always...
  3. You should be able to install it with:sudo apt-get install libdatetime-event-sunrise-perl If that does not work, then this should: sudo cpan DateTime::Event::Sunrise Got these functioning Thanks!! I believe there's a logic error for day night in this version? OUTPUT /mnt/dunn-nas-1/House_Docs/Video Surveillance/Hikvision-WDR$ perl ./rick-hikvision-raptor-schedule-adjustments-v3-DUNN.pl 2014-11-14 16:18: night Next sunset: 2014-11-15 06:49 Next sunrise: 2014-11-14 19:58 Is there a newer version with day night flipped?? NEVER MIND HAD MY Longitude on the wrong side of the Globe Fixed DOH!!
  4. I don't know of a better way. This works just fine. Your posting made me realize there is an easier way to do it, so now only the XML is needed and the URL gets auto-detected. This makes adding new controls easier. I've attached version 2 with the following changes: Add more controls, thanks FastEddy Auto-detect Windows and call appropriate at command Try to auto-detect lat/long Do a better job with DEBUG: > 0 will not schedule future actions, >= 1 will print URLs, >= 2 will run actions EDIT: Stupid logic error in v2, fixed in v3. I tried the attached version on a Ubuntu install and its asking for the modules ( you may need to install the DateTime::Event::Sunrise module ) ... Do you have these modules I can also use? Thanks
×