Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want an Android notification when my doorbell rings. I've already got the bell rigged up to Linux but I need an app that will give me a notification on, say, a UDP packet. It could use SNMP, it could use a web request, it doesn't really matter so long as I can trigger it from the Linux command-line. Does such a thing exist?
Take a look at Pushover.net, ok, so it's a one-time $5 to use it on Android but it has a very easy to use API that can be triggered from the command line with a curl call.
Take a look at Pushover.net, ok, so it's a one-time $5 to use it on Android but it has a very easy to use API that can be triggered from the command line with a curl call.
I've been a user for years.
Thanks for the recommendation, but doesn't that work via some internet site? I wouldn't want my doorbell failing to work if the internet was down.
Thanks for the recommendation, but doesn't that work via some internet site? I wouldn't want my doorbell failing to work if the internet was down.
Yes, it does use an external site. However, with any of these things you have to take a pragmatic look at the various points of failure.
Given your use example, assuming your doorbell is wired directly to whatever you're running Linux on, your doorbell would "fail" if:
That box dies.
That box looses internal (WiFi) connectivity
Your WiFi Access Point / Router dies
Your phone isn't charged
You've muted your phone
You mention UDP, that's a stateless protocol so there's no guarantee it gets delivered
So you have to decide which of these failures you're happy with and mitigate accordingly.
If you want to go down the UDP route then look at something like this for your phone: https://play.google.com/store/apps/d...dreceive&hl=en no idea if it can do notifications on when a packet arrives but might send you in the right direction.
Alternatively pick up a (cheap?) usb GSM modem dongle and use a Pay-As-You-Go plan and send SMS to your phone when the door get pressed.
On a more serious note, does sounds like a fun project, let us know what you end up doing.
I've seen independent apps that will un-mute on specific notifications I was planning to use one of those in addition. But there will be a buzzer by the door as well, I'm not just relying on this.
Quote:
You mention UDP, that's a stateless protocol so there's no guarantee it gets delivered
As I said, I don't really care what protocol is used, but for UDP I tend to send several packets (may lead to several notifications but not really a big issue as we don't get many visitors).
Quote:
Alternatively pick up a (cheap?) usb GSM modem dongle and use a Pay-As-You-Go plan and send SMS to your phone when the door get pressed.
I don't think this can work, I've seen big delays in receiving SMS in the past, 30 seconds may be enough for the person ringing to give up.
Quote:
On a more serious note, does sounds like a fun project, let us know what you end up doing.
Absolutely! I may end up having to write the thing myself, not really looking forward to it but if it's the only way....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.