Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Carlos E. R." Newsgroups: comp.os.linux.misc Subject: Re: sending a "beep" from computer to mobile phone? Date: Tue, 28 Mar 2023 18:01:50 +0200 Lines: 61 Message-ID: References: <165e333641e556217ab4c0135ed9de7e@msgid.frell.theremailer.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net ycoq7lKpYhyhkcgjTlf8eQqE2gNJf/l+dv/HI5iDppkwtx4NZL Cancel-Lock: sha1:T0sWDDT9r3PTfVY4ETnEesP8VCY= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US In-Reply-To: <165e333641e556217ab4c0135ed9de7e@msgid.frell.theremailer.net> Xref: csiph.com comp.os.linux.misc:37683 On 2023-03-28 03:26, Fritz Wuehler wrote: > Carlos E.R. [CE]: > CE> Do you know of an app, to be installed on an Android phone, that > CE> can receive some kind of notification or ping from a Linux computer, > CE> in the same LAN, from a script? > > > If the phone is jail-broken and you can run shell scripts on it, > a quick one-liner > while :; do wget ... && beep; sleep 5; done > should be all you need. Nope, not the case. And I fear it would waste the battery. > If it's not, there are several options depending on whether the > phone can talk to the net or not. > > > No internet? Use any regular SMTP client: > > - Run a minimal SMTP server on another LAN box > > - Configure the phone e-mail client to check for new messages on > the LAN SMTP server every N minutes I have that, but not disimilar from using gmail. Another client wastes battery (K9 did, which is why I don't have it checking for email except on demand). > > - Send messages to the phone using the LAN SMTP server > > > If the phone is connected to the internet already, skip the > LAN SMTP server. > > If the phone is connected to the internet and no SMTP client is > installed, install a chat application which has a public API > (e.g. https://chatwork.com) and send (encrypted) messages from > the linux box to the phone using the API. That could be. > > > > > Or, if you want to go full hard-core, check out the X10 home automation > apps, after installing some compatible hub server on a LAN box. Mmm. I'm inclined to test , which seems very simple. -- Cheers, Carlos E.R.