to psherman, the "please elaborate…" not for you but for the original question post @ liklev
Me too i want to understand goal behind. But if I stick to his original question which ends with "kind a doorbell project" then solution exist already but will need custom script to his needs.
overlooking the needs; here one among the tons of various possibilities to proceed with a watchdog script:
time, get actual time, get syslog lines for the past watchdog interval, compare, see if ip exist, if exist run script to trigger sound for 3 minutes or customize to his choosing, if no ip exist do nothing.
wow, what a stir in the force. the goal is a doorbell/intercom system with the elimination of the street piece. (ok, the street piece would be the visitors own phone). i can provide the apk myself or direct the visitor to the official store to install from there a trusted application (if trust is in question).
to jeff/case 2: i don't wanna post my phone number on the street. let stay in wifi range/protocol.
suppose we are students living in a hired house with few condos.
@liklev - In my personal opinion, requiring the user to install an app and such to ring your virtual doorbell is extremely un-user friendly and doesn't make a lot of sense. Why are you trying to eliminate the street-facing 'button'? Is there a specific reason that providing the instructions about how to contact you is actually better than just making a direct method for them to do so (i.e. a button at the entrance -- as I mentioned before it could be a commercial product or a hacked Amazon Dash or other such button)?
Alternatively, I understand that you don't want to list your phone number at the street entrance, but have you considered an alternative method such as a Google Voice phone number (if available in your area), setting up a new e-mail address only used for this 'doorbell' feature, or an account with a standard messaging app that most users will already have available on their devices?
I don't mean to derail the conversation from OpenWRT solutions, but I just don't understand the reasons for your constraints nor do I understand why you think that this OpenWRT 'doorbell' project will benefit you and/or your guests.
EDIT: I see that your concern is vandalism of any buttons or whatever that you have out there, and it sounds like your traditional doorbell wire is bad. With that in mind, there are vandal-resistant doorbells and intercom systems (obviously not vandal-proof, but used in urban and industrial settings) -- you could always get a wireless unit that is 'hardened' or get a similar enclosure and hack around a bit with a button or intercom. Or just get cheap wireless buttons like the Dash I mentioned (it is around $5 USD) and if they get vandalized, you can replace easily.
no offend but
so funny to see people offering to buy ready made equipment (with even less possibility to customize it to my needs and lot of them cost nice).
may be i'm on the wrong forum. why don't people just buy a router and plug it.
why to mess with replace the ready OS (which do the job for them).
i guess the philosophy behind openwrt got raped.
As much as I love OpenWRT and as much as I am supportive of creativity, DIY, hacking, etc. that makes the OpenWRT and other software environments so great, I am also a proponent of using the right tool for the job and not over complicating things -- at least I always try/recommend not making it complicated for other people/guests (sometimes I'm fine with the extra complication if I'm the only one affected).
I am not bashing you or your desired to find some creative solutions, I just think that these are the wrong tools and will make it so much harder for your guests to contact you. If I were a guest arriving at the entrance and I was told to install an app in order to reach you, I'd be annoyed -- it takes extra time and effort compared to pretty much every other method.
Hi, i would like to hear a warning sound (play an mp3 file) when somebody connects to my wifi. my router tp-link archer c7 v4 has 2 USB connector. it is more or less clear how to install a usb soundstick and components to play a song. what is not clear how to watch for new clients and trigger the songplay on newly connected clients. (kind a doorbell project)
1= Hi, i would like to hear a warning sound (speaker/buzzer + saintsmart/raspberry/arduino + crelay)
thanx everybody the efforts and time taken. to filter out false rings i would stick to captive portal without apk downloading, just a button for requesting entry i guess to check this interaction and trigger the ring is less headache. i pull back my intestines to stack exchange + web + somewhere else.
there's no use of wifi here, a bare ATmega328P IC with the required components should do, and a buzzer to play a tone.
Although, if the ESP-01 (ESP8266) is to be used, it's possible to add additional functionalities such as uploading logs to a database or pushing notifications to a mobile application, or even configuring to cycle the power supply, or a small OLED display for router statistics.
this can be done by taping into the LED's anode to read the voltage level through an optocoupler(optional).
SSH is too heavy on resources for the ESP, the other options are TCP, UDP, HTTP.
What would you suggest on sending the trigger to the micro-controller?
HTTP GET is one option...
Yes, of course, and it is a viable solution if you are happy with it; or perhaps you could use one of the available GPIOs in your device, if you are lucky. I would rather not open the device and put a tap inside: using a USB soundcard, or an external wireless device seems more elegant to me. But I guess it is a matter of tastes
Do you need SSH to send a message between two devices inside your network...?
There are a ton of projects to control the ESPs output using HTTP with Arduino code.
i have to admit, after these messages i turned my attention toward smart-home diy stuff.
now my routers act as common routers (setup as WDS) for esp8266 devices.
i succeeded to build my own battery driven wifi push buttons with months of stand-by time.
for esp boards i ended up with espeasy/mega firmware.
this firmware provides fair instruction set to my purposes.
for e.g. it has "sendtohttp" command.
kinda scripts (called rules) can be programmed from browsers because the firmware provides a nice web-gui.