Skip to content
This repository was archived by the owner on Feb 18, 2024. It is now read-only.
This repository was archived by the owner on Feb 18, 2024. It is now read-only.

Is golang-evdev a alternative to my use-case ? #24

@AlexMcGopher

Description

@AlexMcGopher

Hi, As github does not allow to send any message to gvalkov, I try a issue to state my question to him

Its a question, if golang-evdev can be used in my use-case...

Currently I am using a USB-Device https://www.usbbutton.com/ to toggle the state of a software.

As the device can only output a pre-defined textsequence, like "send-signal.sh(enter)"
I have to use the cli as a separate step to start a shellscript, that is
sending a signal to my app (sudo pkill -USR1 MyApp). Then the app reacts to the signal by toggling its state.

Press USB-Button -> USB Device pastes text sequence to cli "send-signal.sh(enter)" -> cli execute shellscript -> Shellscript sends signal to software -> Software toggles state

As this is a quite complicated way to toggle the software status, and I was wondering if golang-evdev
is able to do the trick also, even without using the cli.

Press USB-Button -> golang-evdev -> Software toggles state

As its a headless device, it would be great if I don't have to use cli in future as I do currently....

Thanks and best regards

Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions