This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function asEV(lux) { | |
return Math.log2(lux/2.5); | |
} | |
function asLux(ev) { | |
return Math.pow(2, ev) * 2.5; | |
} | |
function asLux(fc) { | |
return fc * 10.76; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Author: Hugo Alvarado | |
* Version 1.0 | |
* March 01, 2015 - 7:53 PM | |
*/ | |
var http = require('http'); | |
var fs = require('fs'); | |
var app = http.createServer(function(request, response) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Hugo Alvarado | |
# Date: March 8, 2015 | |
#This parameter is the full path to the movie created by Motion. | |
MOVIE=$1 | |
echo "Uploading Movie: $MOVIE" >> /path/to/your/movie.log | |
/usr/bin/wput -B ftp://username:[email protected] $MOVIE 2> /path/to/your/error.log | |
if [ "$?" = "0" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Hugo Alvarado | |
# Date: March 8, 2015 | |
TODAY=$(date) | |
echo "Your log entry here: $TODAY" >> /path/to/your/movie.log | |
echo "Your text message here: $TODAY" | sudo /usr/bin/gammu sendsms TEXT 1112223344 2> /path/to/your/error.log | |
if [ "$?" = "0" ]; then |