Permalink
Browse files

Minor updates

  • Loading branch information...
tigoe committed Aug 7, 2011
1 parent 554b729 commit e934b029606bbf05f2e212e774d9cb62e88daf64
@@ -16,7 +16,7 @@ int lastSend = minute(); // the minute last time you read
String lastSendTime; // String timestamp of last server update
// URL of your PHP Script:
String url = "http://tigoe.net/mtt2/logger.php?data=";
String url = "http://www.example.com/logger.php?data=";
String currentReadings = ""; // group of readings, with datestamps
String thisReading; // most recent reading
@@ -16,7 +16,7 @@ int threshold = 250; // above this number, the cat is on the mat.
int lastTimeSent = 0; // last minute you sent a mail
int timeThreshold = 1; // minimum minutes between mails
String mailUrl = "http://tigoe.net/mtt2/cat-script.php";
String mailUrl = "http://www.example.com/cat-script.php";
void setup() {
@@ -60,7 +60,7 @@ void keyReleased() {
PImage img = get();
img.save(fileName);
postPicture();
// loadStrings("http://www.tigoe.net/mtt2/mailer.php");
// loadStrings("http://www.www.example.com/mailer.php");
}
void postPicture() {
@@ -21,7 +21,7 @@ int threshold = 250; // above this number, the cat is on the mat.
int currentTime = 0; // the current time as a single number
int lastMailTime = 0; // last minute you sent a mail
int mailInterval = 60; // minimum seconds between mails
String mailUrl = "http://tigoe.net/mtt2/cat-script.php";
String mailUrl = "http://www.example.com/cat-script.php";
int lastPictureTime = 0; // last minute you sent a picture
int pictureInterval = 10; // minimum seconds between pictures
@@ -87,7 +87,7 @@ void keyReleased() {
void takePicture() {
PImage img = get();
img.save(fileName);
// loadStrings("http://www.tigoe.net/mtt2/mailer.php");
// loadStrings("http://www.www.example.com/mailer.php");
}

0 comments on commit e934b02

Please sign in to comment.