Jump to content

Welcome, Guest!

Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for?
   Sign In    Sign Up

Become a RedCarpet Club Member Today!

Lorem ipsum dolor sit amet, sea eu causae aperiri periculis, iusto affert soleat an sea, soluta petentium inciderint nec no. Dolorum reprimique ullamcorper sed ad. Ei quo malorum singulis, tota mundi feugait ut pro. Choro utamur inimicus ex sea. Tota dicit te usu. Sea ad erant possim reformidans. An modus detraxit postulant vel. Per no habeo ludus qualisque. Vix legere singulis legendos et, an cum eius soluta accumsan. Facer discere no nec.
   Join Now

Download the Kodi Add-on Today!

Lorem ipsum dolor sit amet, sea eu causae aperiri periculis, iusto affert soleat an sea, soluta petentium inciderint nec no. Dolorum reprimique ullamcorper sed ad. Ei quo malorum singulis, tota mundi feugait ut pro. Choro utamur inimicus ex sea. Tota dicit te usu. Sea ad erant possim reformidans. An modus detraxit postulant vel. Per no habeo ludus qualisque. Vix legere singulis legendos et, an cum eius soluta accumsan. Facer discere no nec.
  • 0
th0r4z1n3

Control Raspberry Pi/Send SSH Commands (Where To Start)?

Question

This is my digital poster display: 

http://www.plastiquefreak.com/digital-movie-poster-display-part-3-a-taste-of-pi/

I'm using a Raspberry Pi unit to control each of them. I'm looking for a way to send a command to them to dim, or turn off, the poster display during movie playback... but I honestly have no idea where to start. Lol & face palm at the same time.

Is it possible to send an ssh command using CV? Sorting through all the non-relevant information is getting a bit time consuming, and am hoping someone can at least point me to a good starting point.

Edited by th0r4z1n3

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0
5 hours ago, th0r4z1n3 said:

This is my digital poster display: 

http://www.plastiquefreak.com/digital-movie-poster-display-part-3-a-taste-of-pi/

I'm using a Raspberry Pi unit to control each of them. I'm looking for a way to send a command to them to dim, or turn off, the poster display during movie playback... but I honestly have no idea where to start. Lol & face palm at the same time.

Is it possible to send an ssh command using CV? Sorting through all the non-relevant information is getting a bit time consuming, and am hoping someone can at least point me to a good starting point.

You absolutely can send SSH. I'd use the Python module pxssh to do it. You can also run any command line from an Action File if that's easier. Check out our guides for examples. Now, all that said, I'm not sure how you'd be able to manipulate your displays to dim/turn off on command. If it were me, I'd use either MoviePoster (Windows) or PseudoCinema Poster (Kodi Add-on) to create the posters. It looks like the setup you have for the Pi just plays random posters you feed it, where both of the mentioned applications actually connect to your Kodi install and play posters for movies in your library, and even show now playing information. We also have a direct line to both of those developers, so we might be able to get them to add the dim/turn off functionality if it doesn't already exist in the applications.

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
7 minutes ago, Ragnarok said:

You absolutely can send SSH. I'd use the Python module pxssh to do it. You can also run any command line from an Action File if that's easier. Check out our guides for examples. Now, all that said, I'm not sure how you'd be able to manipulate your displays to dim/turn off on command. If it were me, I'd use either MoviePoster (Windows) or PseudoCinema Poster (Kodi Add-on) to create the posters. It looks like the setup you have for the Pi just plays random posters you feed it, where both of the mentioned applications actually connect to your Kodi install and play posters for movies in your library, and even show now playing information. We also have a direct line to both of those developers, so we might be able to get them to add the dim/turn off functionality if it doesn't already exist in the applications.

I looked through the guide, but to be honest I was pretty clueless where to start. I looked under the RPi section but there wasn't anything there lol. Thanks for the starting point, either of these should be a great place to start. I only need to send a single command to turn them off "/opt/vc/bin/tvservice -o" (-p to turn on), so as long as I can muddle my way through setting that up it should work splendidly. Thanks for the help, all the search results for "ssh raspberry pi kodi" just seemed to return results for controlling Kodi when it's installed on a Pi... cool but not what I needed and a LOT to sort through lol.

I looked at the MoviePoster app before I went with the Pi set up. I liked the way it looked but it didn't quite fit the bill for what I was doing. IIRC I had to run a cable from my Kodi box all the way around the room to the other displays, and I don't think I had the ability to run two different poster displays (however that could have been a limitation of the number of video out options I had on my pc, it's been a while).

I've never heard of PseudoCinema Poster, I'll have to take a look at that, but I'm fairly happy with my current setup... minus not being able to dim them lol. I like seeing posters for movies that I don't currently own, as well as ones I do, as they often remind me about movies I haven't  gotten around to buying yet.

Once I get a bit more time I think I'm going to look into a way to have the RPi's automatically add something like "now playin" to the top of the images to see if I can get away from having to stretch them so much to fit the screens, but that's a discussion for another day, and probably a Pi forum.

Thanks again Man! :D

Share this post


Link to post
Share on other sites
  • 0

No problem boss. Check out the guide for Actions. It should have most of the information you need. We don't have Pi guides yet. Want to be the first to make one?

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Ragnarok said:

No problem boss. Check out the guide for Actions. It should have most of the information you need. We don't have Pi guides yet. Want to be the first to make one? emoji3.png

If I can figure out how to do something, I'm more than happy to contribute. :)

Share this post


Link to post
Share on other sites
  • 0

Hey th0r4z1n3,

The latest version of the MoviePoster App for Windows actually can now just be run on a machine and left running.  You can then just load a browser on your Pis to play your posters.  It now has a built in WebServer.  It works great.  I use it currently.  The app automatically I believe has the options for dimming and the like within it.  The app you just put in where your Kodi box is on your network and monitors the connection for now playing and the like.  I did a demo video showing this app here.   Sorry for the shaky video :).  The application also has options for custom posters as well.  

If you do continue and create your own I"d be more then happy to help!  I have some pis so I can test and what not. 

Share this post


Link to post
Share on other sites
  • 0

Bumping an old thread, sorry. Between various other things in life I haven't really had time to delve into working on integrating my Pi setup the way I wanted to, and I decided to redo my quaint little theater setup, so I decided to give the MoviePosterApp a try. @DexDeadly Do you have any info on how you got it to run on a Raspberry Pi?

I was just going to install Windows on a Pi, and install the MoviePoster app on it. I'm assuming that would work, but figured I'd ask someone who has it actually running on one.

Share this post


Link to post
Share on other sites
  • 0

Hey @th0r4z1n3 so I never installed MoviePosterApp onto a pi.  They came out with the newer version where I was able to run it on my windows server and then I used the pi to run in a kiosk mode and display the posters.  Works well.  The only issue i did run into was when it tried to do cinemagraphs within the Pi OS it skipped and stuttered badly.  I don't believe I tested this on a Pi 3 though and maybe just my original B.  When I used an old laptop I had laying around for testing purposes with windows 7 I was able to run cinemagraphs over the webserver no problem.  

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

@DexDeadly very good, I had a couple of issues with my initial test but those turned out to be some pretty simple self-inflicted issues lol. I initially tested it at work using my phone as a hotspot to connect my Pi to my laptop, and apparently my phone didn't have the bandwidth to do it, so it left me with some questions that weren't really relevant to project. Once I got home and connected everything to my home network everything went fine using an old B+ and the browser that came on Raspbian, but I couldn't find any info on how to run that in full screen/kiosk mode. 

Most of the tutorials I could find all relied on using Chromium in kiosk mode, but the old B+'s aren't powerful enough to run Chromium, so I could only get it to work intermittently. It would work but would randomly freeze on reboots, so I ordered a couple of 3 B+'s, they should be here in the next day or so. I don't foresee any problems once those arrive... hopefully lol.

You said you were able to run the webview on an old B? I am a bit curious on how you went about that, I could think of a couple of other uses for the 3 B's once they arrive if I could get it working on one of the old models. Do you remember what browser you used? I'm looking at maybe Matchbox (I think that's the name IIRC) or Uzbl as they're both supposed to be pretty light weight and customizable. 

Right now it looks like I'm going to use the FullPageOS distro, which boots directly into Chromium(?) in Kiosk mode if I remember correctly. I've read a LOT of different documentation over the last few days so I might be mixing up the browser. 

Share this post


Link to post
Share on other sites
  • 0

Hey @th0r4z1n3 self inflicted are always fun.  You just do a nice face palm, laugh and keep going.  I'll see if I can find what I used to walk through but I was using the epiphany web browser.  As mentioned in my video this is what I used on an original pi3.  I have yet to try the newer pi3s with a browser in kiosk mode to see if this resolves the issue with the stuttering on cinegraphs.  I haven't tried anything else and its been a while since I have gotten back to playing more with this project.  

Share this post


Link to post
Share on other sites
  • 0

I got everything up and running pretty easily, I like how well it interfaces with Kodi, but my only issue is that the webview doesn't dim when playing a movie... so now I'm back to my original question again lol. I can SSH into my Pi's to send a command to put the TVs on/off via CEC on the screens, but I need to find a way to automatically send this command from my Windows/Kodi box to the Raspberry Pi's. I'm assuming the process would go something like this: Kodi to PuTTy, PuTTy via SSH to Pi, Pi to CEC on the TV... but I have no idea how to string these events together at this point lol.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

CinemaVision began in 2014 as a collaboration to create content for use with your home theater, offering movie trivia slides and video bumpers. It has since grown to be THE PREMIER WAY to create and customize your preshow experience. Download the CinemaVision add-on for Kodi today from the official Kodi repository, and easily create a sequence of trivia, videos, trailers, home automation triggers and more that will bring the experience of a movie theater straight to your screen!

×

Important Information

By using this site, you agree to our Guidelines and Terms of Use.