How best to signal a URL when I press a mouse (or other) button?
by rjlee from LinuxQuestions.org on (#5T14Y)
What I'd like to do is to POST to a URL when I press a physical button, using an embedded Linux system that doesn't have X. I have an old USB mouse that I could repurpose for this (rewiring the buttons).
I'm working on a home automation project. I have a networked single-board computer (QNAP TS-210) running Linux, with a USB port but no current peripherals, and I want to provide physical switches to send signals to my outbuilding.
The problem isn't the network access, it's with detecting the button press.
I could do this with coding: Without a physical terminal, I don't think a new gpm client would work. But I think I could probably hack the gpm server to call a script when it sees a mouse event, and get it to run on the raw console before login somehow.
I was wondering if there was an easier way to get a windowless mouse hotkey handler than writing code?
I'm working on a home automation project. I have a networked single-board computer (QNAP TS-210) running Linux, with a USB port but no current peripherals, and I want to provide physical switches to send signals to my outbuilding.
The problem isn't the network access, it's with detecting the button press.
I could do this with coding: Without a physical terminal, I don't think a new gpm client would work. But I think I could probably hack the gpm server to call a script when it sees a mouse event, and get it to run on the raw console before login somehow.
I was wondering if there was an easier way to get a windowless mouse hotkey handler than writing code?