I have been working on a very simple MacBook_Pro/iMac centric project. I have called it Spy .
If you just want to test for fun you only need ./Spy and this defaults to a 5 second video with Medium sensitivity from the working directory whre Spy is.
(Just light talking is all that is required to get to video recording mode.)
It does NOT require anything other than a current virgin Apple OSX install, the version as of 9th May 2018 is OSX 10.13.4, High Sierra.
Although developed on my MBP it is best used on a fixed iMac station.
In the code below I decided on creating script files on the fly instead of using functions that are saved in the /tmp/ directory.
The reason being that those that want the HW access code snippets don't have to edit, cut and paste the 'bash' script as they are already saved.
What does it do?
It is a _hidden_ camera that records a video when a sound signal is detected. It is to video burglars that enter the home during daylight hours.
Night time detection is possible and a trigger circuit is shown to latch a remote relay to turn on lights if you want this facility.
The only modification to your computer is a piece of black electrical tape to cover the light that comes on next to the camera on the computer.
How does it work?
Once the program is started the screen near immediately goes blank and the machine standby is disabled.
Several files are created and access rights set up on all of them.
The overall sleep disabling is done by creating a second terminal and calling pmset .
The program then goes into a loop that uses QuickTime Player to listen for audio that is in the room being monitored.
The sound levels are tested and once user set levels are exceeded the loop is exited and the video starts for the time allocated.
The resulting video is saved to the Desktop but the screen should remain black until the keyboard is hit, Ctrl-C.
The screen will reappear and the TWO terminals will have to be manually shut down.
If there has been no detection then Ctrl-C both terminals will stop the program.
Read the code for more info.
Have fun and enjoy...
EDIT:
Minor change to commented out auto-lighting latch code; position inside the code change only and still commented out.
Last edited by wisecracker; 05-10-2018 at 03:39 AM..
Reason: See above...
This User Gave Thanks to wisecracker For This Post:
I'm a beginner in Unix OS. I really want to know what kind of hardware I need in order to install the Unix OS.(I know Linx can be installed in both Mac & PC, but not Unix)
Thanks to let me ask such question here. (1 Reply)
Hi!
I just got a new iMAC G5 (20") and I love it!!!!
Amazon dropped the price $200, and there was also a $150 rebate, making it around $1325, so I could not resist anymore
Finally!!!!
Neo (2 Replies)
Hi all.
I have a problem at work which I have managed to break down into a simple test scenario:
I have written a monitoring script that outputs every second the status of various processes, but for now, lets just print the date
input.sh:
while true
do
date
sleep 1
done
This... (9 Replies)
A really silly thing I did about a year ago (probably after one beer too many) was upgrading my perfectly stable Windows XP Pro to Windows Vista. Vista is really getting on my nerves, so I was in Media Markt the other week looking to see if they had Windows 7 Ultimatum in stock.
As I was... (1 Reply)
Hi,
For the text file let us say t.txt having the statements as below.
filename : t.txt.
Contents :
This is first string1
This is first string2
This is first string3
The output of the file should have newline. How to introduce the new line so that the output be as follows
... (5 Replies)
Hi,
Solid as a rock or ...
Is it possible for a program to damage an iMac (Snow Leopard) so bad that it cannot start up again, and need to be repaired?
I am asking about this, because this seems to have occurred two days ago, when I was running a popular game program.
When I closed the... (6 Replies)
the name on my terminal changed from BuDop's MBP:~ budop$ to dhcp-v06:~ budop$ after I set up a local server using nodejs.
This was was I did prior to the change:
I installed a middleware framework for node
1. npm install connect
2. created a server file called server.js
3. ran... (12 Replies)