Low activity during summer… I have started using a wireless numeric keyboard as an extra remote for controlling the lamps in my living room. I use the xbindkeys-tool in Linux to catch the key presses and with that I use the NetCat-program (nc) to send commands to an UDPCommandPort in the NetHomeServer. The shell command to toggle the reading lamp at my sofa becomes:

echo "call,SofaRead,toggle" | nc -u 8005

I use UDP to avoid the overhead of setting up a TCP-connection first.

No comments:

Post a Comment