I have an arduino with an ethernet shield that is controlling a relay, which control the lights. I usually just use the phone to send a http get request from a widget in tasker, but I would like to be able to just type "light on" or "light_on" in the command line/terminal, and it would turn it on.
I found that I could use
wget to send the request
wget 192.168.1.177?s=1, but that is listening for an output afterwards. But the arduino doesn't output anything, it just listens for the get.
So in conclusion, I need to be able to make a custom command, and need a command to customize, to send an http GET request. Don't have to use
wget, just seemed easiest since it was already installed.
Oh, and my OS is Ubuntu 12. 04 LTS.