I have an ultrasonic sensor on top of my monitor to tell the computer when I'm in front of it or not. If music is playing when I walk away from my computer, it pauses the music player. When I return, it starts playing again. It will also wake the monitors from power saving mode when I return, too.
If you're in a cube I wonder if you'd be better suited to an IR-beam break? If you have to walk through an "entrance" you could detect that happening pretty easily - although you'd want to avoid flaps to handle the case of somebody leaving too.
Which gives me this idea to train my loud music playing neighbor to behave. A sensor listens for his music to go beyond a certain level and triggers my Pi to play loud music back to him. Then stop and check if he has lowered his volume, else rinse and repeat. I know its evil, but apartments in Montreal are so bad.
Wrote a simple app that emails people automatically asking them if they want to hangout. It reads my calendar and randomly decides whether or not we should hang out. The probability that it'll decide to ask gets higher and higher the longer we don't hangout, which it determines by reading my calendar.
Just an email. It was born from a project that died years back as one of my first YC submissions. Sounds like I need to resurrect it and add IM and SMS as a new MVP.
I "automated" (trained?) my kid to make her own breakfast at the weekends so I can sleep longer.
Started when she was around 4, it's easier now she's 7. Lots of parallels with hacking code:
* Specific rules (if there are more than 2 stars showing on your clock, it's too early to get up)
* Trial and error (put cereal in a jar and loosen the lid slightly, put milk in a tiny jug at the bottom of the fridge)
* Optimisation (if you don't want cereal, don't wake me up, but have a yogurt instead)
* Enhancement (feed the cat, so it doesn't wake me up either)
Now I think about it, we started when she was about 2, leaving a marmite rice cake in a bowl outside her door, with a bottle of water (with a sports cap), that was just enough to delay her slightly.
As she got older, I'd put some greek yoghurt in a bowl with cling film over the top in the fridge, and a plastic cup of water with tin foil over the top and cutlery on the table. Now I just say "no cartoons before 7", and she sorts her own water out, makes some bread and butter (don't trust her with the toaster yet) and helps herself to yoghurt. She woke me up at 9 this morning, happy with that!
LOL, I found this hilarious because my 5 y/o kid wakes me up when it's time for food. Definitely gonna "fork" your source here and try it out myself :)
I have four kids now, and I learned this automation trick way too late. We helped our older kids with "activities of daily living" longer than we realized we needed to. Now or younger two are doing things on their own years earlier than their older siblings.
We've just generally found that our kids have been ready to do things earlier than we imagined. Each time we've made a transition, we look back and think "why didn't we do that sooner?"
1. IFTTT turns off all of my Hue lights at sunrise (task: turn off forgotten lights)
2. At one point last year, I felt that my mornings were getting slower and slower (causing me to leave later), so I set up a Dash button where I hang my keys. When I left for work, I'd press the button, and the script would log the time to a Sparkfun data feed. After a month, I reviewed it to see just how bad it was (pretty bad). (task: life tracking I didn't have the brainpower for in the morning) 3. The worst part about D&D is keeping track of all the little variables and math, and none of the character sheets are any good (or if they are, they have 1 or 2 glaring problems, like only allowing 3 classes), so I wrote my own. Uses KnockoutJS to update all the little formulas that change every time you level up or gain skill points, etc. Here it is, though it's not exactly polished for public consumption: https://github.com/imnotpete/character-builder (task: fiddly math when I'm trying to have fun) 4. More IFTTT -- if my Roost fire alarm battery detects an alarm, I should receive an email and all my Hue lights will turn on. Unfortunately, the whole Roost process is slow enough that I just get confused when all my lights turn on 5 minutes after I burn the pizza. (task: turn on the lights so I can see to put out a midnight fire or escape my burning house)
You could do number 2 completely automated with just the IFTTT mobile app. I used to track the time when I arrived and left the office on a gApps spreadsheet but later disabled the task due to battery draining (old iPhone 5).
The Hue Bridge can do #1 on its own, but I don't think it's exposed with the stock app. You can set up a sunrise/sunset trigger based on your geographical location - I use this to turn my outside lights on and off.
I did it manually, using the debug web page[0] on the bridge to set up the "light sensor"[1], which is really a calculation of sunrise and sunset based on your location.
Have you tried Roll20 for D&D? We used it for our group here at work as it allowed a remote team member to play. Even if you don't use all of it, the character sheet tools and info are pretty solid (albeit missing some things like certain spells).
Here's how it works: 1. Figure out the dash button's mac address by network sniffing 2. Set up the dash partially, so it tries to make an order (but don't specify in your account exactly what to order, so it never completes) 3. Sniff the network for that mac address, and run an arbitrary script when you see it (this is the actual action, like my data logging) 4. For good measure, block outgoing requests from that address in your firewall It's not 100% reliable, but it's still pretty useful.
Comments (704) 186 threads
Earlier commentshttps://www.michevan.id.au/content/are-you-there/
https://news.ycombinator.com/item?id=14151439
If you're in a cube I wonder if you'd be better suited to an IR-beam break? If you have to walk through an "entrance" you could detect that happening pretty easily - although you'd want to avoid flaps to handle the case of somebody leaving too.
https://github.com/skx/esp8266/tree/master/d1-distance
What do you ask them to hang out with? A calendar invite? Or SMS?
Started when she was around 4, it's easier now she's 7.
I'm not lazy, sleep is important :)Lots of parallels with hacking code:
[edited formatting]
As she got older, I'd put some greek yoghurt in a bowl with cling film over the top in the fridge, and a plastic cup of water with tin foil over the top and cutlery on the table.
Now I just say "no cartoons before 7", and she sorts her own water out, makes some bread and butter (don't trust her with the toaster yet) and helps herself to yoghurt.
She woke me up at 9 this morning, happy with that!
We've just generally found that our kids have been ready to do things earlier than we imagined. Each time we've made a transition, we look back and think "why didn't we do that sooner?"
2. At one point last year, I felt that my mornings were getting slower and slower (causing me to leave later), so I set up a Dash button where I hang my keys. When I left for work, I'd press the button, and the script would log the time to a Sparkfun data feed. After a month, I reviewed it to see just how bad it was (pretty bad). (task: life tracking I didn't have the brainpower for in the morning)
3. The worst part about D&D is keeping track of all the little variables and math, and none of the character sheets are any good (or if they are, they have 1 or 2 glaring problems, like only allowing 3 classes), so I wrote my own. Uses KnockoutJS to update all the little formulas that change every time you level up or gain skill points, etc. Here it is, though it's not exactly polished for public consumption: https://github.com/imnotpete/character-builder (task: fiddly math when I'm trying to have fun)
4. More IFTTT -- if my Roost fire alarm battery detects an alarm, I should receive an email and all my Hue lights will turn on. Unfortunately, the whole Roost process is slow enough that I just get confused when all my lights turn on 5 minutes after I burn the pizza. (task: turn on the lights so I can see to put out a midnight fire or escape my burning house)
Simply having them turn on at sunset is awesome. Such a small but great convenience.
It takes a few hoops to get the bridge to generate a username and craft the appropriate JSON to set everything up, but Philips has really good documentation on this.
[0] https://developers.meethue.com/documentation/getting-started
[1] https://stackoverflow.com/questions/26782957/how-to-use-suns...
Here's how it works:
1. Figure out the dash button's mac address by network sniffing
2. Set up the dash partially, so it tries to make an order (but don't specify in your account exactly what to order, so it never completes)
3. Sniff the network for that mac address, and run an arbitrary script when you see it (this is the actual action, like my data logging)
4. For good measure, block outgoing requests from that address in your firewall
It's not 100% reliable, but it's still pretty useful.
All comments shown.
Couldn't load more comments. Check your connection and try again.