my openHAB is running smoothly. But at the moment i am wasting my time on another project.
Project: Beamer, which projects animated board-game-maps on a table, so a big group can play on a big board-game, like monopoly.
The projecting files are either .gif or .mp4
I want to realize this with a raspberry, connected to the beamer. And i want a button in my HABPanel that says “Monopoly” and when i press it a rule should get triggered and the monopoly.gif/.mp4 should be shown in the display output (beamer)
I do know how to set up the rules. But i have no clue, which system, which addon, etc. i should use to tell the other raspberry to show/output the monopoly file.
Does anyone of you can tell me, how to remotely show a video/gif on another pi using openHAB?
This does sound like a good idea. Is there maybe an easier way?
I am looking forward to have more than one game to play on that table. And as far as i understand, i need to make a webpage where i insert the .mp4/.gif.
You do not necessarily need to create a full html page. Locally stored files are also displayed in a web browser when you enter their location in the URL bar like:
To open it on the remote desktop you would have to ssh into the remote desktop with the user that owns the desktop ( X apps from other users can be displayed if the owner allows that ).
To allow other users to open X apps this can be done either by using a X-cookie. To let all open X apps the owner needs to run
xhost +
From OH you would have to run a command sequence like:
ssh ownerofdesktop@kioskhost "export DISPLAY :0.0; firefox file:///home/youruser/yourdirectory/yourpicture.gif &"
The above would have to be executed via ExecuteCommandLine.
This is not explicitly tested; should work but might require fine tuning.
I would advice that you first do trials on the command line before adding a/the command(s) to a rule.
You’ll need to install a VNC server on the Pi connected to the beamer and then use a VNC client on the Pi running openHAB to connect to it. Once connected, you should be able to see the other Pi’s screen and display the Monopoly game just as you would on the Pi itself.
For tabletop gaming enthusiasts, displaying video output on another Raspberry Pi can greatly enhance the gaming experience, providing a larger and more immersive display. By connecting two Raspberry Pis, you can project game visuals to a different screen, allowing players to have a clearer view of the game board and making gameplay more interactive. Whether you’re hosting a game night or just improving your setup, this method brings a fresh dynamic to tabletop games. Also, while you enhance your gaming experience, you can explore other exciting platforms like Parimatch casino for entertainment in between your game sessions.