nikize wrote:Axel-b2 wrote:In a nutshell, it should be possible to point git (in the screenly directory on your raspberry) to an additional remote repository, and then tell it to fetch content from there, and then tell it to change the git-controlled files in the screenly directory to those from another branch.
I have found this set of commands working for changing a existing git-clone:
Code: Select all
git remote add -f -t player-browser-fader axel-b https://github.com/axel-b/screenly-ose.git
git checkout player-browser-fader
Thanks. that works for me too. I hope it helps those who want to try out the player-browser-fader branch.
You need to install two additional packages:
Code: Select all
sudo apt-get install python-pexpect xwit
I use python-pexpect to 'talk' to the uzbl browser, and I use the xwit program to hide/show browser instances. (To get black background for videos I use the xsetroot command, of package x11-xserver-utils, but I think it is installed already by default.) I hope i did not forget to mention any other packages...
nikize wrote:
And instructions for checking out fresh is further up in the thread if my memory serves me right.
A recompile of shutter might be needed, but probably not? I have not tried to use this, so can't say for sure. (Only tested the git part) However, I always recommend not to run unknown binary blobs, and compile yourself from source. Of course if it is a RPi without anything important it might not be worth the hassle.
Good point about recompiling from source (it tends to remind me of
Ken Thompson's Reflections on Trusting Trust (<- clickable link)).
To recompile the shutter program (assuming you are in folder ~/screenly):
Code: Select all
cd shutter
rm -f shutter.bin
make
cd ..
(I now wonder whether it is better to just remove shutter/shutter.bin from the repository, and just force people to compile it for themselves.)
After checkout of the player-browser-fader branch, installing the additional packages, and recompiling the shutter program, you should now be able to use it. If you have already run screenly from the (wireload) master branch, and have created a playlist, your existing playlist will be used.
Either start the viewer, or if one is still running, kill that viewer program and let the xloader.sh script start a new viewer instance.
There are several things that you might want to tweak:
- timing, by changing the sleep times in function start of BrowserAsset and PlayerAsset --- I tried to keep these as short as possible, but occasionally, when watching my screen, I get the feeling some timers might need to be slightly longer[/list]
- colors, currently best done by changing the fade_color function in BrowserAsset and PlayerAsset
To fetch updates, I do:
Code: Select all
git checkout player-browser-fader
git pull
(The first of those git commands is only to make sure that I am on the right branch.)
I hope this helps (given that nikize already mentioned the most important things, above).