• December 08, 2019, 11:54:58 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: 1 [2]

Author Topic: Feature Request for DCS-930L: Motion Detection on a schedule  (Read 19774 times)

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Feature Request for DCS-930L: Motion Detection on a schedule
« Reply #15 on: December 19, 2011, 11:44:06 AM »

Hi there,

there is a simple solution when you want to combine motion detection with a schedule:
Plug the camera to a time switch. Yeah, I know, it is a bit ridiculous but it works.

Hope that helps,
F

I don't recommend using this approach. Power cycling the camera each day and having to reestablish the network connection(s), isn't a good thing.
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

acook

  • Level 1 Member
  • *
  • Posts: 1
Re: Feature Request for DCS-930L: Motion Detection on a schedule
« Reply #16 on: November 19, 2013, 05:55:51 PM »

I wrote this as a script for gmail:
Code: [Select]
/*
Foward Motion detects if they happen within a given time
*/

function processInbox() {
 
  // A search string to get the thread
  // Gmail Advanced Search
  // https://support.google.com/mail/answer/7190?hl=en
  var threads = GmailApp.search('label:unread label:inbox to:me from:me subject:"Record by Motion Detection E-mail"');
 
  // Stop and start times in hours ( 0-23 )
  var startTime = 10;
  var stopTime  = 12+5;
 
  // Start and stop days in days ( 0-6 0=sun 6=sat)
  var startDay = 1; //1=Moday
  var stopDay  = 5; //5=Friday
     
  // Address to forward to
  var address = "asdf@asdf.com";

  // Log the time
  var currentTime =  todayDate = new Date();
  Logger.log("Current Time: "+currentTime);
 
 
  for (var i = 0; i < threads.length; i++) {
   
    // get all messages in a given thread
    var messages = threads[i].getMessages();
   
    // iterate over each message
    for (var j = 0; j < messages.length; j++) {
       
      var message = messages[j];
     
      //Get the date and time of the message
      var msgDate = message.getDate();
      var msgHour = msgDate.getHours()
      var msgDay  = msgDate.getDay();

      // log subject date and time of the message
     
      Logger.log("Msg Date "+msgDate);
      Logger.log("Msg Hour "+msgHour);
      Logger.log("Msg Day "+msgDay);
     
      if(
        msgHour > startTime && msgHour < stopTime &&
        msgDay  > startDay  && msgDay  < stopDay
        ) {
        Logger.log("VALID MESSAGE");
        forwardMessage(message,address);
        //message.markRead();       
        message.getThread().moveToArchive();
      }
      else {
        Logger.log("INVALID MESSAGE");
        message.moveToTrash();
      }
     
    }
   
  }
 
};

//Forward the email to another account
function forwardMessage(message, address) {
  Logger.log("FORWARDED to "+address);
  message.forward(address); 
}
Logged

Bushman

  • Level 1 Member
  • *
  • Posts: 17
Re: Feature Request for DCS-930L: Motion Detection on a schedule
« Reply #17 on: November 20, 2013, 04:27:32 PM »

Hi there,

there is a simple solution when you want to combine motion detection with a schedule:
Plug the camera to a time switch. Yeah, I know, it is a bit ridiculous but it works.

Hope that helps,
F
Or better yet, buy two and set them on opposite schedules so that you get images all day long.  But motion detection on on one of them.  :)
Logged
Pages: 1 [2]