TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you send custom notifications to your phone?

30 pointsby rococodeover 4 years ago
Recently, I&#x27;ve been putting together some home automation software for myself (to manage security cameras, todo lists, etc.).<p>One thing I&#x27;d like to do is send notifications to my phone. There seem to be many possibilities here, none of which are perfect. It would also be nice if the same system could be used to send commands back to the server, and ideally it would be distinct from other things I use frequently so that it stands out more. I&#x27;m on Android but happy to hear how iOS folks do this too.<p>Some of the options I&#x27;ve considered:<p>- IFTTT - solid for notifications, can&#x27;t easily do responses though, and a little too much non-code configuration for my liking<p>- Email - works well but not distinct enough, emails could get drowned out<p>- Text messages - same as email, basically<p>- Discord bot - good, can process replies, though I personally use Discord for other things so it&#x27;d also be not very distinct<p>- LINE bot - quite nice - can add a shortcut to the specific chat on Android - and handles replies but apparently has some sending limits and more info on pricing beyond that is hard to find<p>I&#x27;m sure other people have done similar setups before where they can write a line of code to send some info to their phone. Would love to hear about other ways of doing this!

18 comments

cactus2093over 4 years ago
Home Assistant is a great way to do it. It has its own automation framework but I’m sure you can easily hook in your own scripts, or write them as your own plugins for HA. You can send push notifications to the mobile apps, it even supports actions on notifications I believe, and then you can obviously send events back to the server with it as well.
avarover 4 years ago
Just use email, the problem you cite with it is configurable by simply using another client for these notification emails.<p>You can also use Telegram plus telegram IRC to use IRC bots for notification.
mraza007over 4 years ago
I wrote this module long time ago <a href="https:&#x2F;&#x2F;github.com&#x2F;mraza007&#x2F;terminal-text" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mraza007&#x2F;terminal-text</a><p>This might help
评论 #25403602 未加载
modinfoover 4 years ago
I use Pushover (pushover.net)
评论 #25403589 未加载
评论 #25402902 未加载
评论 #25406636 未加载
cliffwardenover 4 years ago
<a href="https:&#x2F;&#x2F;docs.pushbullet.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.pushbullet.com&#x2F;</a>
评论 #25404519 未加载
simon_accaover 4 years ago
Telegram: <a href="https:&#x2F;&#x2F;github.com&#x2F;simonacca&#x2F;TellTg" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;simonacca&#x2F;TellTg</a>
评论 #25406320 未加载
csteubsover 4 years ago
I have a second phone number through the Burner app that supports incoming and outgoing webhooks and integrates with Slack, Dropbox, Google, etc.<p>$35&#x2F;year is a pittance for the flexibility you get with a second number, the extra functionality is an added benefit.
评论 #25410383 未加载
latteover 4 years ago
Telegram is fine for a single-user setup or for a small team. If you need better multi-user and multi-channel support, you can use Slack.<p>Both have an easy to use bot API and both support adding action buttons to messages that you can connect to your app&#x27;s webhooks.<p>Using a messenger, in my experience, feels more convenient than using an email client when dealing with automations. You can view messages by channel, you don&#x27;t have to deal with GMail assigning random categories to your emails, and the UI is faster.
stonecharioteerover 4 years ago
I started using discord for this. I maintain a private server which just has me and a bot. The bot does everything for me. I&#x27;m constantly adding features.
tn1over 4 years ago
Automate is an android app with many automation features, including notifications (which can open dialogs of various kinds if desired). There is a &quot;cloud send&quot; with an API allowing you to send arbitrary data to your phone. Not affiliated, just a happy user.<p><a href="https:&#x2F;&#x2F;llamalab.com&#x2F;automate&#x2F;" rel="nofollow">https:&#x2F;&#x2F;llamalab.com&#x2F;automate&#x2F;</a>
sethammonsover 4 years ago
Disclaimer, I work for Twilio. You can use sms, voice, or email to get notifications and you can reply back and have those responses programmatically handled. The APIs are pretty decent in my opinion. I wrote a text adventure game over sms for fun when getting familiar with that part of the API. Oh, we also have IOT stuff, I’m just unfamiliar with it.
depthfirstover 4 years ago
i use slack for this; different channels for different programs; and I can also mute certain channels if there are too many notifications
评论 #25404331 未加载
dpeckover 4 years ago
I’m not sure if it still works with current iOS but I used this to do that a lot several years ago <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;prowl-easy-push-notifications&#x2F;id320876271" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;prowl-easy-push-notifications&#x2F;...</a>
m463over 4 years ago
super compatible even old python:<p><pre><code> #!&#x2F;usr&#x2F;bin&#x2F;python from email.MIMEText import MIMEText from subprocess import Popen, PIPE to_txt=&#x27;5551231111@mms.att.net&#x27; fr_txt=&#x27;me@example.com&#x27; m = MIMEText(&quot;hello world&quot;) m[&#x27;To&#x27;] = to_txt m[&#x27;From&#x27;] = fr_txt p = Popen([&quot;&#x2F;usr&#x2F;sbin&#x2F;sendmail&quot;, &quot;-t&quot;, &quot;-oi&quot;, &quot;-f&quot;,fr_txt], stdin=PIPE) p.communicate(m.as_string()) </code></pre> when I send a text this way, the text messages get grouped on my phone by the sender me@example.com
lytedevover 4 years ago
I have a home assistant setup that works great for me. Pretty easy to send push notifications that way.
commotionfeverover 4 years ago
<a href="https:&#x2F;&#x2F;gotify.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gotify.net&#x2F;</a>
评论 #25409596 未加载
ioliover 4 years ago
Firebase cloud messaging is also a good option :)
4wQcKBHMover 4 years ago
telegram