Hello,
I’m trying to make openHAB show the openHAB log, via MultiTail (the colorful one that shows both the events.log and openhab.log) on the screen of the server/machine running openHAB.
I have successfully made a shell script as well as an xfce desktop launcher file that both successfully open a new terminal window and show the MultiTail log. My script to accomplish this is:
#!/bin/bash
xdotool key Escape && sleep 1 && xfce4-terminal --maximize && sleep 1 && xdotool type 'openhablog' && sleep .5 && xdotool key 'Return' && sleep .5 && xdotool key ctrl+minus
The above script wakes up the screen, opens a maximized new terminal window, runs the “openhablog” command to launch MultiTail and then zooms out once so I can properly see the text on my screen.
I have set the proper permissions, etc. to make the Exec Binding properly run the script, and it does.
However, I receive an error, I’m guessing because the Exec Binding doesn’t allow for GUI/X-session or whatever it’s called applications to run (hoping this isn’t the case).
Here is my error:
[INFO ] [e.smarthome.model.script.openHAB log] - Error: Can’t open display: (null)
Failed creating new xdo instance
I have used a third-party tool (TriggerCMD) in the past, but I don’t like using it and would like to accomplish my task directly using openHAB and the Exec Binding.
How can I make this work? Thank you!!