# Keyboard (HID) Keystroke Input emulation

**URL:** <https://discourse.nodered.org/t/keyboard-hid-keystroke-input-emulation/83482>\
**Category:** General\
**Created:** [6 December 2023 23:19 UTC](https://discourse.nodered.org/t/keyboard-hid-keystroke-input-emulation/83482 "2023-12-06T23:19:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)\
**Post date:** [6 December 2023 23:19 UTC](https://discourse.nodered.org/t/keyboard-hid-keystroke-input-emulation/83482/1 "2023-12-06T23:19:24Z")

</div>

Hi!

I am trying to set up a remote Pi with Chromium in Kiosk mode. So far, so good. Now I need to get the option to reload the Chromium Page by user input, which will be a couple of meters away, but on a different device which will cause a MQTT message to be sent to the Pi.

As far as Chromium needs a plain "Ctrl + R" input, I need a bridge from Node-RED (which is connected - of course - to the MQTT broker) to the HID Input of the Pi.  
I tried a couple of different solutions that I found and think, I would be happy with "xdotool", but I don't get the config running as secure as I like:

1. If I let chromium login with user "root", I can trigger the input \> yeah! But the Pi is logged in as root, which is not very good...

2. If I run chromium as "dietpi" (the distribution), I get this message

> Authorization required, but no authorization protocol specified

Is anybody experienced with these kind of issues?  
It must be a simple trick, but I don't get it running...

As usual: thanks for your help!  
Florian

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 February 2024 23:19 UTC](https://discourse.nodered.org/t/keyboard-hid-keystroke-input-emulation/83482/2 "2024-02-04T23:19:28Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
