News for hackers. Stuff that matters.
Re:Ask HN: What do you do with your Raspberry Pi? by DrAwdeOccarim on Monday June 24, 2019 @06:19PM (#20269115)
I have an old Raspberry Pi 1 that runs headless raspbian with a set of cheap speakers plugged into it and an old usb wifi adaptor. It has only one purpose: to play a wav file of a telephone ringing for one minute. My spouse does not ever have the ringer on her cell phone. So when I am out and I need her to look at her phone, I VPN in to my home network, ssh into the pi using Terminus on my iphone, and 'aplay' the wav file.

The real reason we ever wanted to get a landline was because of this issue, so instead of wasting money I just used spare parts to make an alert system I can activate remotely. I can also use the 'say' command for text-to-speech, but that's not really effective. The old school phone ringer wav is perfect.

Re:Ask HN: What do you do with your Raspberry Pi? by m0nty on Tuesday June 25, 2019 @03:00AM (#20271763)
> I VPN in to my home network, ssh into the pi using Terminus on my iphone, and 'aplay' the wav file

Once, when I was working away from home, someone unplugged the phone at home so I couldn't phone in. After becoming very frustrated, I SSH'd into my home server, and from there into the Mac Mini we used as a media station. Then:

- checked they were watching something using `ps`.

- killed that process so I had their attention.

- `say 'this is dad, I'm inside the computer.'`

- `say 'I want to phone you but you have unplugged the phone.'`

- `say 'plug it back in'`

Worked :)

Re:Ask HN: What do you do with your Raspberry Pi? by c22 on Tuesday June 25, 2019 @03:47AM (#20271962)
When I was younger I worked at a retail store and I remember being thrilled to discover I could telnet into a cash register and echo text directly to the attached receipt printer.[0] I became a small time hero at one point when I used this power to alert our sister store that their phones weren't accepting calls during the middle of the holiday season.

[0] Also interesting is the time I discovered that sending a special escape code to the printer caused the cash drawer to open, but that's a tale for another thread.

Re:Ask HN: What do you do with your Raspberry Pi? by INTPenis on Tuesday June 25, 2019 @04:37AM (#20272185)
Haha this reminded me of the time I lost my phone. I suspected it was left at work so I ssh'd into my Mac at work, started recording audio, dialed up my phone and voilá. It was there and I had peace of mind until tomorrow.
Re:Ask HN: What do you do with your Raspberry Pi? by lostlogin on Tuesday June 25, 2019 @02:48PM (#20277517)
Turning on FaceTime remotely to see what’s in front of the computer has saved me a few times, and made me wish that my screen was angled differently many more.
Re:Ask HN: What do you do with your Raspberry Pi? by INTPenis on Wednesday June 26, 2019 @04:58AM (#20283106)
Mine is always in clamshell mode with external monitor. Feels more ergonomic that way.
Re:Ask HN: What do you do with your Raspberry Pi? by linsomniac on Tuesday June 25, 2019 @12:47PM (#20276105)
A few weeks ago I realized on my phone I can, from anywhere, say "Ok google, broadcast" and then say a message. That message gets played back on the Google Home devices.

My kids weren't replying to text messages about being ready to go to an appointment that we were pressed for time on, and I was on the way home, so I did that to tell them to get ready. A few seconds later I get a text from my wife: "How'd you do that?!?"

Re:Ask HN: What do you do with your Raspberry Pi? by skykooler on Tuesday June 25, 2019 @11:32AM (#20275253)
Reminds me of https://www.xkcd.com/530 .
Re:Ask HN: What do you do with your Raspberry Pi? by chrsstrm on Monday June 24, 2019 @07:19PM (#20269539)
You could automate this even more with a Twilio number, ngrok running on the Pi and a small webserver to trigger the audio playback. Then instead of having to ssh in you can just send a text.
Re:Ask HN: What do you do with your Raspberry Pi? by kalleboo on Tuesday June 25, 2019 @01:02AM (#20271330)
If you're running a web server, why not just put up a page with a "ring" button and bookmark that on your phone?
Re:Ask HN: What do you do with your Raspberry Pi? by syntheticnature on Tuesday June 25, 2019 @11:41AM (#20275338)
Just make sure it isn't a GET, per a discussion the other week...
Re:Ask HN: What do you do with your Raspberry Pi? by HoppyHaus on Monday June 24, 2019 @07:48PM (#20269733)
Or if you wanted to get even cheaper, depending on the carrier, you could text a personal E-Mail server.
Re:Ask HN: What do you do with your Raspberry Pi? by pfundstein on Monday June 24, 2019 @07:50PM (#20269743)
Is ngrok the new dnat?
Re:Ask HN: What do you do with your Raspberry Pi? by benwaffle on Tuesday June 25, 2019 @12:48AM (#20271274)
Re:Ask HN: What do you do with your Raspberry Pi? by chrsstrm on Monday June 24, 2019 @08:25PM (#20269998)
Expose your server endpoint to the public web however you like. There are lots of options and many have been discussed here recently. I just happen to be a fan of ngrok and use it daily for all sorts of cases, including on some of my Pi’s.
Re:Ask HN: What do you do with your Raspberry Pi? by CameronBanga on Monday June 24, 2019 @09:58PM (#20270520)
Does it work well over extended periods of time like that? I’ve just thought of using it temporarily for testing.
Re:Ask HN: What do you do with your Raspberry Pi? by chrsstrm on Monday June 24, 2019 @10:54PM (#20270786)
I have a tunnel that’s been running for over a month now with no issues. Basic free tunnels do have an expiration (24 hours IIRC) but the paid accounts will let you keep a tunnel open as long as you want.
Re:Ask HN: What do you do with your Raspberry Pi? by JustSomeNobody on Monday June 24, 2019 @10:47PM (#20270753)
If they have an iPhone, you can go into contacts and turn on emergency bypass just for you and that way their phone will ring when you call but not anyone else.
Re:Ask HN: What do you do with your Raspberry Pi? by lucb1e on Tuesday June 25, 2019 @12:40PM (#20276019)
Or, if you have an aPhone, you can ssh directly into it (ssh server apps don't require root), or make it do an additional action (such as turning off silent mode, or playing something) when you call (I'm sure automation apps can do this without root), or a million other creative ideas as root user.
Re:Ask HN: What do you do with your Raspberry Pi? by idonotknowwhy on Monday June 24, 2019 @10:16PM (#20270600)
Similar issue, but I worked around it by setting up one of those find-your-phone apps and whitelisted my number. Now I can just text her the secret code and it makes her phone ring loudly even when it's on silent.
Re:Ask HN: What do you do with your Raspberry Pi? by TeMPOraL on Tuesday June 25, 2019 @01:49AM (#20271504)
I have something similar set with Tasker to locate _my_ phone. That is, a particular word texted to my phone number will make the phone max out the volume, turn on the camera flashlight, and start making noises in the loop. I can also trigger this from my smartwatch[0].

I also have a "haptic test" function: press the button, the phone vibrates briefly. I originally created that check the delay on the Pebble-Tasker connection, but ended up using it almost every day to find my phone among the clutter in the house.

Tasker is amazing, if you have Android, I recommend checking it out.

--

[0] - misplacing a phone while having it still in Bluetooth range actually happened to me once long ago with a feature-phone. I looked and looked and couldn't find it. It was set on silent, so calling it didn't help. Then I noticed it's still connected via Bluetooth to my PC's phone management app, so I manually turned the ringer on, and discovered it deep within the mechanism of my bed. Finding it there without this trick would probably take me hours.

Re:Ask HN: What do you do with your Raspberry Pi? by hunter2_ on Monday June 24, 2019 @11:42PM (#20271004)
This would be really bad if she happened to be at a performance, restaurant, active shooter situation, etc.

Better off forcing a ring in the home than where you can't foresee the consequences.

Re:Ask HN: What do you do with your Raspberry Pi? by coolspot on Monday June 24, 2019 @11:54PM (#20271048)
Ah yes, daily active shooter situation...

In the same sentence as performance and a restaurant, not less.

Re:Ask HN: What do you do with your Raspberry Pi? by darkpuma on Tuesday June 25, 2019 @12:37PM (#20275986)
That absurd association was the only way he could make a phone going off at a restaurant seem like an offensively irresponsible event.
Re:Ask HN: What do you do with your Raspberry Pi? by hunter2_ on Tuesday June 25, 2019 @04:06PM (#20278323)
If you consider the situations that would lead to the husband needing the wife so badly so as to need to override the wife's choice to not have the ringer already on, the subset of such situations which are life-threatening for the husband are probably situations in which the wife either can't assist in time or isn't the only person who can assist, so overriding the silence isn't required for life.

In contrast (and yes, my intention was contrast), if the wife was hiding from a shooter then her ability to maintain silence is required for life. Airplane mode isn't great, because she should be texting/tweeting/etc.

Thus, best to not let your silence be overridden.

For non-life-safety reasons that the husband might be trying to reach the wife, that could be solved via agreement ("keep your ringer on except in emergencies") instead of brute force.

Re:Ask HN: What do you do with your Raspberry Pi? by loco5niner on Tuesday June 25, 2019 @05:03PM (#20278921)
I guess the key is "know your wife".

For instance, my wife has her phone ALWAYS set to silent. I like all the suggestions here.

I think the "active shooter" situation is a bit of a stretch, to be honest.

Re:Ask HN: What do you do with your Raspberry Pi? by dgacmu on Tuesday June 25, 2019 @09:58PM (#20281221)
You must not have kids. They drastically increase the frequency with which one must contact a partner at random unexpected times. People mess up ringer settings all the time.

"the kid is vomiting and school needs us to come get them asap, which one of us is more available?" is not a life-threatening emergency, but it's a family emergency and needs attention. It also happens a lot. An awful lot more than your "unlikely to happen to most people in their lifetime" contrived scenario.

Re:Ask HN: What do you do with your Raspberry Pi? by bjoli on Wednesday June 26, 2019 @05:45PM (#20289534)
Oh yes. My wife is the worst offender. The amount of times I have had to cancel important things to get a taxi to our kindergarten because she had our car (and thus the agreed upon responsibility to pick up the phone) can't be counted on 2 hands, and he has only been 2 years in kindergarten.
Re:Ask HN: What do you do with your Raspberry Pi? by hunter2_ on Wednesday June 26, 2019 @12:32PM (#20286554)
True, it's a risk worth taking in that scenario.
Re:Ask HN: What do you do with your Raspberry Pi? by hunter2_ on Tuesday June 25, 2019 @12:36AM (#20271221)
I recently had a training course on it. Makes you think differently. Point is, being in control of your silence is extremely important.
Re:Ask HN: What do you do with your Raspberry Pi? by lostlogin on Tuesday June 25, 2019 @02:51PM (#20277539)
This is a thing? It seems to be solving the wrong problem. I think my sheltered world is quite nice.
Re:Ask HN: What do you do with your Raspberry Pi? by hunter2_ on Tuesday June 25, 2019 @03:59PM (#20278231)
The right problem isn't solvable so immediately as what is achieved with tactical self defense.
Re:Ask HN: What do you do with your Raspberry Pi? by drcross on Monday June 24, 2019 @07:21PM (#20269559)
I would have presumed you can have custom notification levels for specific phones calls baked into modern phones OSs.
Re:Ask HN: What do you do with your Raspberry Pi? by vnchr on Monday June 24, 2019 @08:20PM (#20269956)
iOS has a bypass list for “Do Not Disturb” mode, but sound is disabled via a hardware switch next to the volume buttons.

As a workaround, I’ll use the “Find my iPhone” chime which is the one way to bypass the hardware switch if I need to get my wife’s attention while the phone is set to silent.

Re:Ask HN: What do you do with your Raspberry Pi? by JustSomeNobody on Monday June 24, 2019 @10:48PM (#20270759)
Emergency bypass in iOS should also bypass the hardware silent switch.
Re:Ask HN: What do you do with your Raspberry Pi? by Double_a_92 on Tuesday June 25, 2019 @08:27AM (#20273496)
Then it wouldn't be a hardware switch anymore, just a sensor. Meaning software could mess something up and "embarrass" you in public, completely voiding the point of the mute switch.
Re:Ask HN: What do you do with your Raspberry Pi? by JustSomeNobody on Thursday June 27, 2019 @11:17AM (#20295164)
But this is exactly how it works. On my 8, I have emergency bypass turned on for my wife. When the hardware switch is turned to the "silent" position, I still get a ring when she calls and a tone when she texts. Everyone else I hear nothing.
Re:Ask HN: What do you do with your Raspberry Pi? by sambe on Tuesday June 25, 2019 @10:54AM (#20274807)
It seems likely that the side switch is anyway connected to software - on iPad its purpose is configurable and I think it was for a short period on iPhone. I always assumed the point of the switch was for quick and convenient access, not for certainty. Besides, the hardware button also fails embarrassingly when full of lint.
Re:Ask HN: What do you do with your Raspberry Pi? by moonbas3 on Tuesday June 25, 2019 @03:27AM (#20271888)
That's what he said.
Re:Ask HN: What do you do with your Raspberry Pi? by daedalus_j on Monday June 24, 2019 @06:46PM (#20269337)
This is brilliant. I have the same problem, and an extra gen1 pi hanging around, and I'm quite excited about this solution. Thanks for posting. :-)
Re:Ask HN: What do you do with your Raspberry Pi? by saltcod on Friday June 28, 2019 @08:50AM (#20303719)
OMG Please tell me more about this! This is precisely what I need!
Re:Ask HN: What do you do with your Raspberry Pi? by stevenhubertron on Tuesday June 25, 2019 @10:19PM (#20281325)
I do something similar but using the Twilio API I send texts to the Pi that do various things including making a ringing sound.