Can OpenWrt send an email for every WiFi connect/disconnect, so I can keep track of who's on WiFi?

My current network is a UniFi CloudKey and AP. It send me an email every time a device connects to the WiFi network or disconnects. Can OpenWrt do the same thing? I just bought the OpenWrt One wireless router and it will be here Friday and I use the the emails for making sure IOT devices stay connected to the network. Are there any software I can install in OpenWrt to create this functionality?

You can use something like this

I'd rather have a OpenWrt package that provides the functionality than rely on scripts that may or may not work on future versions and third party services that I don't trust. I'll go without the functionality if necessary.

The general idea of using hostapd-utils combined with your own script using the mstp package to send the emails

https://www.itix.fr/blog/send-mails-openwrt-msmtp-gmail/#:~:text=On%20your%20OpenWRT%20device%2C%20install%20the%20msmtp%20package.&text=Create%20the%20MSMTP%20configuration%20file%20%2Fetc%2Fmsmtprc.&text=Create%20the%20%2Fetc%2Faliases%20file,order%20no%20to%20lose%20emails.

These instructions look interesting. You'll need to put these two ideas together. Once you've got something working, you could post it here and help other people who want something similar in the future.

I'm not really an advanced user. I was hoping for an LUCI GUI package. Scripts and CLI are beyond me. But I thank you for your replies. Perhaps your replies will help users more advance than me.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.