dsummersl / watchmb Goto Github PK
View Code? Open in Web Editor NEWScript to capture isight photo, desktop, and IP in one fell swoop.
Script to capture isight photo, desktop, and IP in one fell swoop.
-------------- - WatchMB - -------------- Watch MacBook: A simple script to capture information about your MacBook (or OSX something). Use it to keep a historical picture book of yourself. Use it to track where your computer is, and what is happening on it. What it does: 1. Uses the iSight camera it creates one shapshot, which is time stamped (using the wacaw program). The format is: MonthDayYearHourMinuteSecond.jpeg 2. Captures a screenshot of the desktop. The format is MonthDayYearHourMinuteSecond-screen.jpeg 3. Stores the public IP address of the computer. The IP address is stored in a file labelled: MonthDayYearHourMinuteSecond-loc.txt ------------------ - INSTALLATION - ------------------ Put the watchmac directory somewhere on your computer (like your home directory). Either run the script directly, or use cron to schedule regular snapshots. I've set mine up thusly, so that I have access to the files even if I'm not in front of it (by going to dropbox.com): 1. Install DropBox. Create the folder 'WatchMB' in the 'Photos' folder. 2. Put this program's folder into my home directory: run Terminal and paste the following: git clone git://github.com/dsummersl/WatchMB.git 3. Copy/paste the following commands into the Terminal window to setup the script to run every half hour: crontab -l | grep -v photo.sh > oldcrontab (cat oldcrontab ; echo "0,30 * * * * ~/WatchMB/photo.sh &> /dev/null") > newcrontab crontab newcrontab rm oldcrontab rm newcrontab ----------- - NOTES - ----------- Uses the wacaw program (bundled). See their site for more info: http://webcam-tools.sourceforge.net Uses screencapture and sips for screen capture (from Apple, available on OSX). Uses dyndns.org's website to determine the public IP of the computer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.