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.

Show HN: Pushback.io – Interactive push notifications with curl

9 pointsby amozossover 5 years ago

2 comments

onionjakeover 5 years ago
I&#x27;ve used this for awhile now as a quick way to control some things on my raspberry pis running in my home from my phone.<p>Sometimes you just want something quick and a little bash script is perfect. For example, I use getmail to periodically fetch my email from all of my email providers, gmail, hotmail, etc.. Whenever I needed to get email quicker (like if I was sent a security code or something) I had to SSH into the server and manually call getmail to fetch it before the scheduled time. With pushback I have a little simple script that gives me the ability to do it from the pushback app and it is a real time saver.<p>Here is my script I used in case anyone is interested:<p><pre><code> #!&#x2F;bin&#x2F;bash while true; do result=&quot;$(curl https:&#x2F;&#x2F;api.pushback.io&#x2F;v1&#x2F;send_sync \ -u &lt;my_token&gt;: \ -d &#x27;id=Channel_379&#x27; \ -d &#x27;title=Check Email?&#x27; \ -d &#x27;body=Choose from the actions&#x27; \ -d &#x27;action1=gmail&#x27; \ -d &#x27;action2=hotmail&#x27; \ -d &#x27;action3=personal&#x27;)&quot; if [[ &quot;$result&quot; == &quot;gmail&quot; ]]; then getmail -r gmail elif [[ &quot;$result&quot; == &quot;hotmail&quot; ]]; then getmail -r hotmail elif [[ &quot;$result&quot; == &quot;personal&quot; ]]; then getmail -r personal fi sleep 15 done </code></pre> I&#x27;ve used it to also notify me when long running commands finish, as a way to add manual review to an otherwise automated process, etc.
amozossover 5 years ago
Author here, Pushback has been a side project of mine for a few years. It has been a playground for me to learn web development and continue learning about mobile. The goal of Pushback is to make a simple API that can utilize all the features of push notifications. Right now it just has actionable notifications, but it&#x27;d be cool to add some other things such as location and custom notifications. I&#x27;ve recently started to use Pushback to communicate information to my friends, family, and co-workers. I had a cronjob that scraped classifieds for minivans and it would post a message to Pushback. My wife could then see the post and leave a comment if she liked it. We ended up getting a van for a pretty sweet deal. Another thing I use it for is to coordinate what time some of my co-workers are riding the public transit. We can just select which time we&#x27;re thinking of on the notification. I hope it can be a tool that helps you make prototypes quickly without much hassle.