@sdetweil I have now also decided to do it differently, unfortunately it does not work :D
I have a python script:
import requests
import keyboard
keyboard.add_hotkey("shift+t", lambda: requests.get('http://127.0.0.1:9000/some/endpoint'))
keyboard.wait()
Then magicmirror is started via nohup…
However, the script does not work