A simple wifi doorbell
Posted: Sun Sep 15, 2019 4:07 am
Hi,
I'm trying to build a simple doorbell but I'm not finding something close enough to what I need on the internet. The closest I got to this on this forum is this: viewtopic.php?f=160&t=17672&p=76165&hilit=doorbell#p76165
I'm considering two options, depending of which is simpler.
OPTION A:
1) Client Device is a esp8266 with a push button hanging on the door that when pressed
a) makes a LED go on (to signal to the guest that the message has been received);
b) sends a http post to a linux apache server that will log the event in a mysql database (i.e. so I can consult when the button was pressed after I return home from a holiday);
c) sends a http post to a linux apache server to play a mp3 on the server;
d) and finally sends a http post to a linux apache server to send an email to a couple of accounts. or SMS
2) Server Device is the linux apache server with mysql.
OPTION B
1) Client Device is a esp8266 with a push button hanging on the door that when pressed
a) makes a LED go on (to signal to the guest that the message has been received);
b) sends a http post to a linux apache server that will log the event in a mysql database (i.e. so I can consult when the button was pressed after I return home from a holiday);
c) and finally sends a http post to a linux apache server to send an email to a couple of accounts or SMS.
2) Server Device is the linux apache server with mysql.
3) Third Device that is a portable speaker with an esp8266 that plays a mp3 when it receives the signal and blinks a LED for a fixed time, say 20 secs;
I would probably want to go for Option A as its the simplest to start with but I'm not sure I know where to start. Questions are:
a) Has anyone come across projects that implement similar functionalities, even if only some of them (I do not want to post anything on external IoT servers, nothing must leave my LAN other than the emails/SMS)
b) Would be using one of the digital pins on the ESP to hook the button up to that would be shorted with GND pin?
c) WIth OPTION A, I suspect I would get apache to play a mp3 when it gets the message from the doorbell and send the emails? Anyone know where I can get some php code to o this?
Thanks in advance for tips/helps
I'm trying to build a simple doorbell but I'm not finding something close enough to what I need on the internet. The closest I got to this on this forum is this: viewtopic.php?f=160&t=17672&p=76165&hilit=doorbell#p76165
I'm considering two options, depending of which is simpler.
OPTION A:
1) Client Device is a esp8266 with a push button hanging on the door that when pressed
a) makes a LED go on (to signal to the guest that the message has been received);
b) sends a http post to a linux apache server that will log the event in a mysql database (i.e. so I can consult when the button was pressed after I return home from a holiday);
c) sends a http post to a linux apache server to play a mp3 on the server;
d) and finally sends a http post to a linux apache server to send an email to a couple of accounts. or SMS
2) Server Device is the linux apache server with mysql.
OPTION B
1) Client Device is a esp8266 with a push button hanging on the door that when pressed
a) makes a LED go on (to signal to the guest that the message has been received);
b) sends a http post to a linux apache server that will log the event in a mysql database (i.e. so I can consult when the button was pressed after I return home from a holiday);
c) and finally sends a http post to a linux apache server to send an email to a couple of accounts or SMS.
2) Server Device is the linux apache server with mysql.
3) Third Device that is a portable speaker with an esp8266 that plays a mp3 when it receives the signal and blinks a LED for a fixed time, say 20 secs;
I would probably want to go for Option A as its the simplest to start with but I'm not sure I know where to start. Questions are:
a) Has anyone come across projects that implement similar functionalities, even if only some of them (I do not want to post anything on external IoT servers, nothing must leave my LAN other than the emails/SMS)
b) Would be using one of the digital pins on the ESP to hook the button up to that would be shorted with GND pin?
c) WIth OPTION A, I suspect I would get apache to play a mp3 when it gets the message from the doorbell and send the emails? Anyone know where I can get some php code to o this?
Thanks in advance for tips/helps