Show HN: Blink my keyboard lights when you visit this page
lelandbatey.com
Show HN: Blink my keyboard lights when you visit this page
1–10 of 23 posts
Re: Show HN: Blink my keyboard lights when you visit this page
#2 go install github.com/lelandbatey/watchserver/...
sudo watchclient --host lelandbatey.com
You have to run sudo for that binary to function correctly, since the syscall to light up keyboard buttons requires root.Re: Show HN: Blink my keyboard lights when you visit this page
#3There's a command-line tool to turn the LEDs on or off (I forget what it's called), so I integrated that into a test script we used that measures timer latency with various background loads. (We had our own high-resolution timer implementation based on the APIC.)
Re: Show HN: Blink my keyboard lights when you visit this page
#4Re: Show HN: Blink my keyboard lights when you visit this page
#5Cool, so does it blink for all http requests including js/css?
Re: Show HN: Blink my keyboard lights when you visit this page
#6Re: Show HN: Blink my keyboard lights when you visit this page
#7I created an Erlang script that allows you to send messages by morse code to the keyboard like this:
./remote_morse "HI,IAMSAM."
(Spaces don't appear to be used in morse code?)The messages won't be differentiable while the site is under HN-level traffic, but in a few months, you should be able to send arbitrary messages to @lelandbatey using this.
The code is available here: https://gist.github.com/samcamwilliams/19339ea2d8431f27728ec...
Re: Show HN: Blink my keyboard lights when you visit this page
#8The idea of having a light go off when your network sees certain packets sounds like it could be an art project for a Raspberry Pi :-)
Re: Show HN: Blink my keyboard lights when you visit this page
#9Btw, if you want your keyboard lights to blink whenever my server receives an HTTP request, you can do that like so: go install github.com/lelandbatey/watchserver/... sudo watchclient --host lelandbatey.com You have to run sudo for that binary to function correctly, since the syscall to light up keyboard buttons requires root.
Re: Show HN: Blink my keyboard lights when you visit this page
#10This is very neat! I created an Erlang script that allows you to send messages by morse code to the keyboard like this: ./remote_morse "HI,IAMSAM." (Spaces don't appear to be used in morse code?) The messages won't be differentiable while the site is under HN-level traffic, but in a few months, you should be able to send arbitrary messages to @lelandbatey using this. The code is available here: https://gist.github.co…