One thing I'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'm on Android but happy to hear how iOS folks do this too.
Some of the options I've considered:
- IFTTT - solid for notifications, can't easily do responses though, and a little too much non-code configuration for my liking
- Email - works well but not distinct enough, emails could get drowned out
- Text messages - same as email, basically
- Discord bot - good, can process replies, though I personally use Discord for other things so it'd also be not very distinct
- 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
I'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!
You can also use Telegram plus telegram IRC to use IRC bots for notification.
This might help
$35/year is a pittance for the flexibility you get with a second number, the extra functionality is an added benefit.
Both have an easy to use bot API and both support adding action buttons to messages that you can connect to your app's webhooks.
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't have to deal with GMail assigning random categories to your emails, and the UI is faster.
#!/usr/bin/python
from email.MIMEText import MIMEText
from subprocess import Popen, PIPE
to_txt='5551231111@mms.att.net'
fr_txt='me@example.com'
m = MIMEText("hello world")
m['To'] = to_txt
m['From'] = fr_txt
p = Popen(["/usr/sbin/sendmail", "-t", "-oi", "-f",fr_txt], stdin=PIPE)
p.communicate(m.as_string())
when I send a text this way, the text messages get grouped on my phone by the sender me@example.com