Device and Door Details in SMTP notification

MyDoorOpener custom/homebrew "Arduino" backend enhancements sharing and discussions.

Device and Door Details in SMTP notification

Postby bheil123 » Fri Jan 03, 2014 8:43 pm

add as define statements:

#define APP_NOTIFICATION_SUBJECT "MyDoorOpener Notification"
#define ARDUINO_NAME "My Arduino Name" // substitute with a friendly device name

// added door labels for SMS and email reporting
static char door_label[4][25] = { "Left Garage Door", "Center Garage Door", "Right Garage Door", ""}; // substitute with your door labels (make each 25 characters or less)

**** REPLACE LINE BELOW ***
// sprintf(body, "A door or device has been opened for more than %i minute(s).", NOTIFICATIONS_WATCHDOG_MINUTES);
sprintf(body, "%s report: %s has been opened for more than %i minute(s).\n", ARDUINO_NAME, door_label[i], NOTIFICATIONS_WATCHDOG_MINUTES);


**** REPLACE LINES BELOW ****
// char body[] = "A door or device has just been opened.";
char body[100] = "";
sprintf(body, "%s report: %s has been opened\n", ARDUINO_NAME, door_label[i]);
bheil123
 
Posts: 5
Joined: Fri Dec 27, 2013 3:54 pm

Re: Device and Door Details in SMTP notification

Postby support » Sat Jan 04, 2014 11:56 am

Nice enhancement. Thanks for sharing!
support
Site Admin
 
Posts: 384
Joined: Thu Aug 22, 2013 7:30 pm

Re: Device and Door Details in SMTP notification

Postby TVTuga » Mon Feb 16, 2015 11:36 pm

Yes, i agree this is a Nice enhancement

but i am confused

Ok i have two car Garage Doors , so lets call it a Left and a Right

the Idea is to identify what door opens and closes left Door or Right Door

is what this is for correct ? if so how does it identifies each Door?

Thanks
TVTuga
 
Posts: 15
Joined: Sun Jan 25, 2015 12:56 pm


Return to Arduino Backend Enhancements



cron