View unanswered posts | View active topics It is currently Sat May 18, 2013 9:28 pm



Reply to topic  [ 4 posts ] 
 24/7 Audio and Video Supervision ***IMPROVED 2/6/06 
Author Message

Joined: Dec 08, 2005
Posts: 31
Post 24/7 Audio and Video Supervision ***IMPROVED 2/6/06
Code: Select all
-----By Ian Dopps in 2006
-----Allows remote access to multiple iSight cameras via iChat to work with Indigo. To use, insert as a script to run upon an email trigger in Inidgo. Type the word ichat in the subject box. In the body, ONLY type the name of the AIM account you want to connect to ON THE FIRST LINE. In the SECOND LINE, type the name of the camera you want to connect to. For example, if iSight#3 is in your garage, type garage on the second line. You need to put your own camera location names in the code below. So, if iSight#4 is you bathroom, insert the word bathroom where you see "XXX" below. The script will also let you start an audio conversation too. This may be a useful way to talk to someone in your house. In LINE 3 put "video" if you want to start a video session or put "audio" if you want an audio chat.  Question? doctorlambo@gmail.com
tell application "System Events"
   keystroke space
end tell
tell application "Mail"
   activate
   delay 5
   check for new mail
   if (exists (first message of inbox whose subject is "ichat")) then
      tell (first message of inbox whose subject is "ichat")
         try
            set target_buddy to first paragraph of (get content)
         on error
            set target_buddy to "doctorlambo1"
         end try
         try
            set target_camera to second paragraph of (get content)
         on error
            set target_camera to "living room"
         end try
         try
            set message_type to third paragraph of (get content)
         on error
            set message_type to "video"
         end try
         set itemNumber to 0
         if target_camera is "living room" then
            set itemNumber to 1
         else
            if target_camera is "kitchen" then
               set itemNumber to 2
            else
               if target_camera is "front yard" then
                  set itemNumber to 3
               else
                  if target_camera is "xxx" then
                     set itemNumber to 4
                  else
                     set itemNumber to 0
                  end if
               end if
            end if
         end if
         tell application "Mail"
            delete (first message of inbox whose subject contains "ichat")
         end tell
      end tell
      tell application "iChat"
         activate
         launch
         delay 5
      end tell
      tell application "System Events" to tell process "iChat"
         set frontmost to true
         if itemNumber is 0 then
            delay 0.1
         else
            click menu item "Video Preview" of menu "Video" of menu bar item "Video" of menu bar 1
            tell (windows whose name contains "iSight")
               click button "Preferences…"
            end tell
            tell window "Video"
               click pop up button 1 of group 1 of group 1
               click menu item itemNumber of menu 1 of pop up button 1 of group 1 of group 1
               click pop up button 2 of group 1 of group 1
               click menu item itemNumber of menu 1 of pop up button 2 of group 1 of group 1
            end tell
         end if
      end tell
      tell application "iChat"
         close every window
         if account target_buddy exists then
            if status of account target_buddy is not offline then
               if message_type is "video" then
                  send video invitation to account target_buddy
               end if
               if message_type is "audio" then
                  send audio invitation to account target_buddy
               end if
            end if
         else
            quit "ichat"
         end if
      end tell
   end if
end tell



 


Last edited by doctorlambo on Mon Feb 06, 2006 1:05 pm, edited 6 times in total.



Mon Dec 26, 2005 1:31 am
Profile

Joined: Dec 08, 2005
Posts: 31
Post 
This was last updated on 2/6/06. You can now start an audio session. It has another new feature on it, and is alot cleaner. The above code will allow you to access many different iSights on your computer. For example, I have 3 iSights. They are living room, front yard, and kitchen. This code can handle up to 4 different cameras. It would be easy to do more. If you need help with this, just ask. All you have to do is send your indigo POP account an email with the word iChat in the subject box. For the email body, do this:
- The first line, ONLY type the name of the user name you want to connect to.
-On the second line, ONLY type then name of the camera you want to view. Tips:
1. Set up an Additional AIM account that you can use away from home, so that your normal AIM/iChat account can contact you from home. For example, your normal iChat name is Joe, make anotherr ID named Joe1. That way, you can run this script away from hime, and allow Joe to send Joe1 the video invitation. Remember, you cannot start a conversation with yourself on ichat.
2. Go to video preview and click the preferences button in iChat. If you have more than one camera, get its number (iSight, iSight#2, ect). If iSight#2 is your garage, then replace the word "kitchen" in my code with the word "garage". That way, if you email your Indigo POP account and want to connect to your garage, it will select iSight#2, where the garage is. This is all commen sense, just thought I would explain it just in case. Don't worry, if you only have 1 iSight, the code still works.
3.test this script in indigo. if you get an error, save the above script as an application named "remote security". then try this script in indigo instead. Sometimes application responses can interfere with a function of a script, and this will solve the errors, if you are having them....
Code: Select all
 ignoring application responses
   tell application "remote  security" to run
end ignoring


Sun Jan 01, 2006 7:47 pm
Profile

Joined: Apr 30, 2005
Posts: 141
Post 
Just curious how you mounted the iSight outside...did you use a weatherproof enclosure of some sort?

Also, I was thinking about using the iSights for serveilance myself...have you looked into the EvoCam software or have any experience with it in relation to Indigo?

-Bradley


Fri Feb 17, 2006 8:00 pm
Profile

Joined: Dec 08, 2005
Posts: 31
Post 
This may sound funny, but I used that clear plastic case that comes with the isight. that just protects it from water. You have to drill holes in it for the wires and stuff. That is an option, but there is nicer stuff out there I am sure. I used SecuritySpy. It will let you do as many cameras as you want. I wrote a script that will adjust the camea settings throughout the day. Let me know if you need help.


Sun Feb 26, 2006 10:54 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.