Hardware details:
https://hackaday.io/project/194115-th...
Follow me on Twi... X: / gvy_dvpont
Instagram: / guy_dupont
"Mailblocks" name by Phil Corriveau
FAQ:
1. Are you actually going to use this?
1. No. Just an experiment.
2. Will it work with iPhones?
2. I think it could, but I dont think Apple lists domain names for their push notification service, they just provide a large range of IP addresses that might be used. (see https://support.apple.com/en-us/102266) So you could modify the software on the Pi to temporarily block traffic to those IP addresses, but you might end up blocking more than you mean to.
3. Why not just use do not disturb?
3. In theory, if I were actually going to use something like this - I am a person who takes a while to develop habits, so I like solutions that let me set something up once and forget about it - even if its more work up front. And the added friction of needing to physically get up - instead of just pressing a button on the phone - that's way more likely to actually stop me on days where my willpower is low.
4. What about cellular data?
4. This is definitely a hole in the design - I've discovered that, on Android deviecs at least, the phone will eventually make a separate connection to the push notification server over your mobile data if the attempts over wifi don't work. Not much I can do about that. I tried to create a dummy notification server that would make the phone think that it was connected over WiFi, but I just ran out of time. Honestly I tend to have mobile data turned off when I'm home anyways, and I also use a few devices around the house that don't use sim cards.