Hacker Newsnew | past | comments | ask | show | jobs | submit | memoriasit's commentslogin

What an amazing post, loved it. I feel inspired to start my own now


How do you send toast messages to the tv? :P



I really thought you get notifications on your TV when your toast is done toasting.


That’s actually not hard. Connect the toaster to a smart plug with monitoring, make an automation to send a notification when the power draw drops after X seconds of power draw. It’s essentially the same way people make their washing machines smart.


I get notifications on my TV once my kettle is done heating.


Haha. Now you got me thinking.


Could you share that script?


Hopefully I get this right with the formatting.

    #!/bin/sh
    ZOOM=$(xdotool search --limit 1 --name "Zoom Meeting")
    ZOOM_WEBINAR=$(xdotool search --limit 1 --name "Zoom Webinar")
    
    if [ -z "${ZOOM}" ]; then
        xdotool windowactivate --sync "${ZOOM_WEBINAR}"
    elif [ -z "${ZOOM_WEBINAR}" ]; then
        xdotool windowactivate --sync "${ZOOM}"
    fi
    
    sleep 0.1
    xdotool key --clearmodifiers "alt+a"


Would it work for Mac?


It relies on xdotool, which I don't think works on Mac?

If I was still on mac, I'd probably try and use hammerspoon somehow. I used that for a few bits of automation, and I know it had ways to choose applications.


Interesting, what do you produce? And how difficult is it? I heard even Chem students can produce some mainstream drugs sometimes with easy to get products.


What's your 'server' setup? I like hacky solutions


Nothing fancy, just an i5 4790k


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: