I'm trying to run a Node.js script that connects to a HID device (HTC Vive tracker) and sends feature reports to it, to run from boot.
I've tried using
rc.local, a systemd file but none of it works if I power on the Raspberry Pi, however running it from
rc.local works if I manually reboot the Raspberry Pi.
The script uses Node-hid to initialise the connection and is invoked by simply using