Article 5T14Y How best to signal a URL when I press a mouse (or other) button?

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?latest?d=yIl2AUoC8zA latest?i=mMcLtMufRFw:M9_rh5c_omU:F7zBnMy latest?i=mMcLtMufRFw:M9_rh5c_omU:V_sGLiP latest?d=qj6IDK7rITs latest?i=mMcLtMufRFw:M9_rh5c_omU:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments