Page 2 of 6

Re: Pi Presents: Beta of a major upgrade now available

Posted: Tue Aug 20, 2013 9:16 pm
by DonWright
Keypad development was discontinued due to press of other business. I will likely try that after I recover from the big show next week - there's always another use case coming up. Will definitely send you coverage when I can. (Shh, spoilers!)

As for the latest -next,I may try a second SD card with it but I need to be in four places at once for next few days so cannot experiment at length, nor do I want to risk "fixing" something that mostly works. From the expanded manual I imagine good things, but right now I'm a bear of very little brain.

Sorry the timing didn't work out this month. --Don

Re: Pi Presents: Beta of a major upgrade now available

Posted: Wed Aug 21, 2013 7:21 pm
by lannyca
KenT

I am having trouble getting the samples to work with the new beta. This is my first try at using the beta release. I keeping getting "The command Line options specify a profile that does not exist". However the debug lines seem to indicate that the profile was found. But in pp_home in my pi directory (where the instructions said to place the examples pp_home directory), the profiles are postpended with "_1p2" as in pp_mediashow_1p2 and in the pp_home in my pipresents directory (which was created with the initial next install) the profiles start with "ppt".

Help.

Debug output:
pi@raspberrypi ~ $ python pipresents/pipresents.py -o /home/pi/ -p pp_home/pp_profiles/pp_mediashow -d
0.35 PiPresents Pi Presents is starting
0.36 PiPresents OS and separator:posix /
0.36 PiPresents sys.path[0] - location of code: /home/pi/pipresents
0.36 PiPresents pp_home directory is: /home/pi//pp_home
0.36 PiPresents Trying pp_home at: /home/pi//pp_home (1)
0.36 PiPresents Using pp_home at: /home/pi//pp_home
0.37 PiPresents pp_profile directory is: /home/pi/pipresents/pp_home/pp_profiles/pp_profile
0.41 ResourceReader resources.cfg read from /home/pi/pipresents/pp_home/resources.cfg
1.68 ControlsManager controls.cfg read from /home/pi/pipresents/pp_home/controls.cfg
1.70 KbdDriver keys.cfg read from /home/pi/pipresents/pp_home/keys.cfg
1.72 ScreenDriver screen.cfg read from /home/pi/pipresents/pp_home/screen.cfg
1.72 ShowManager start -1: Starting show mymediashow 0
1.72 MediaShow mymediashow 0: Starting show
1.74 MediaShow mymediashow 0: Waiting for trigger: start
2.07 MediaShow mymediashow 0: Track type is: message
7.88 PiPresents input received: pp-exit
7.88 PiPresents kill received from user
7.88 PiPresents kill sent to shows
7.89 PiPresents Sent terminate to show mymediashow
7.89 MediaShow mymediashow 0: Returned from player with message: kill or error
7.89 MediaShow mymediashow 0: Ending Mediashow
7.89 ShowManager start -1: Returned from show with message: kill or error
7.90 PiPresents All shows ended, so terminate Pi Presents
7.90 PiPresents Pi Presents ending with message: normal All shows ended
7.90 TimeOfDay clear time of day list None
7.90 PiPresents no error - exiting normally


I keep trying different paths and names for the profile, but get the same results. I must be doing something silly.

Lanny

Re: Pi Presents: Beta of a major upgrade now available

Posted: Wed Aug 21, 2013 8:42 pm
by KenT
lannyca wrote:KenT

I am having trouble getting the samples to work with the new beta. This is my first try at using the beta release. I keeping getting "The command Line options specify a profile that does not exist". However the debug lines seem to indicate that the profile was found. But in pp_home in my pi directory (where the instructions said to place the examples pp_home directory), the profiles are postpended with "_1p2" as in pp_mediashow_1p2 and in the pp_home in my pipresents directory (which was created with the initial next install) the profiles start with "ppt".

Help.

Lanny
The debug output is a little confusing, what it found was the profile that Pi Presents falls back to when it cannot find the one the command line specified. This is a profile /pipresents/pp_home/pp_profiles/pp_profile which has one message track to display the message you see.

The command you want is:

python /home/pi/pipresents/pipresents.py -o /home/pi -p pp_mediashow_1p2 -d

not

$ python pipresents/pipresents.py -o /home/pi/ -p pp_home/pp_profiles/pp_mediashow -d

the various prefixes and suffixes should not affect operation, they are there just to stop clashes between things.

pp_ indicates a profile which the author made. Its best not to use pp_ for your own profiles
..._1p2 - used to differentiate the [pipresents-next-examples] from the [pipresents-examples] profiles
ppt_ indicates a template profile which are kept in /pipresents/pp_home/pp_profiles
also
pp- used for symbolic names and a few pipresents internal names, best not to use pp- for your own symbolic names.

Re: Pi Presents: Beta of a major upgrade now available

Posted: Thu Aug 22, 2013 3:52 pm
by mohog
I have updated to the newer beta.

Couple of issues I am having. I can not get it to run in window mode (non fullscreen) except in a very tall skinny window.

second is there an easy way to make a fullscreen presentation stop? is there a built in kill command or can I easily add one? very hard to test full screen and not be able to stop it except by pulling the power cord.

third I am trying to get images to fit on a screen. Many of the images we created were made to fit a 1920x1080 screen. The test screen I have only does 1024x768. I tried to put the size in the show settings using 1 1 1024 768 but images do not scale to the screen they still run off the screen.

Re: Pi Presents: Beta of a major upgrade now available

Posted: Thu Aug 22, 2013 5:24 pm
by lannyca
Ken,

Thanks, that took care of things.

Lanny

Re: Pi Presents: Beta of a major upgrade now available

Posted: Thu Aug 22, 2013 7:02 pm
by KenT
Hi mohog

>>I have updated to the newer beta.

That's good.

>>>Couple of issues I am having. I can not get it to run in window mode (non fullscreen) except in a very tall skinny window.

Good point I have it set up for my HD monitor, and rather thin on that for software development :oops: . I need to make a command line option to set the window size. In the meantime edit pipresents.py lines 39 and 40

self.window_width_shrink =800
self.window_height_shrink=200

and change the amount the non-fullscreen window shrinks. If you want to change the x,y of the top left corner of the window then edit lines 182 and 183 to change self.window_x and self.window_y

self.window_width=self.screen_width-self.window_width_shrink
self.window_height=self.screen_height-self.window_height_shrink
self.window_x=150
self.window_y=50
self.root.geometry("%dx%d%+d%+d" % (self.window_width,self.window_height,self.window_x,self.window_y))

>>> second is there an easy way to make a fullscreen presentation stop? is there a built in kill command or can I easily add one? very hard to test full screen and not be able to stop it except by pulling the power cord.

Use CTRL-BREAK, however some keyboards do not have a Break key. You can add or change the exit key by editing /pipresents/pp_home/keys.cfg. Copy the file to pp_home first. There is an example on the last line, just remove the # to uncomment it or read effbot to choose another key.

Would anybody like to suggest a key combination that appears on all keyboards that is not used for much else and would be suitable for closing PP. I will then add it as a default.

>>>third I am trying to get images to fit on a screen. Many of the images we created were made to fit a 1920x1080 screen. The test screen I have only does 1024x768. I tried to put the size in the show settings using 1 1 1024 768 but images do not scale to the screen they still run off the screen.

I suspect you need 0 0 1023 767 . It might work, if not try 1 1 1022 766 . It will fit in the whole picture but there will be some black lines because of the different aspect ratios. There is a limitation with Pi Presents, you really need a monitor of the same resolution as the target monitor when laying out screens.

Re: Pi Presents: Beta of a major upgrade now available

Posted: Fri Aug 23, 2013 1:42 am
by mohog
How do these numbers on line 39 & 40 impact the size? is that like make the width 800% smaller? I know I could guess and try but would rather not guess and hope.


so what would be some suggested numbers to change these to and the other lines if I was looking for the following:

standard 1920x1080 resolution and I want to have it half the full size when in windowed mode.

Can you/I set the break to be like the break command for a terminal activity? I am able to hit control-c in the terminal to end activities, I think everyone has a "c" key.

Thanks

Re: Pi Presents: Beta of a major upgrade now available

Posted: Fri Aug 23, 2013 2:11 am
by mohog
see below

Re: Pi Presents: Beta of a major upgrade now available

Posted: Fri Aug 23, 2013 5:44 pm
by mohog
two solutions for my own questions:

1. I was able to exit out of full screen mode, while testing (running from terminal), by hitting option-tab to switch back to the terminal then use control-c to end the script.

2. I understand how the size works in the show editor. I now know that the first two numbers represent the upper left corner of the display space and the last two represent lower right. It was documented but I did not understand it.

Thanks

Re: Pi Presents: Beta of a major upgrade now available

Posted: Tue Sep 17, 2013 5:11 pm
by KenT
Hi

I have just uploaded an update to [pipresents-next]. Hopefully it fixes the problem people were having with using Pi Presents non-fullscreen having a small window. I cannot test it as I do not have a low resolution monitor.

The editor has also been enhanced and validation has caught up with the last set of profile format changes.

Enjoy
Ken

Re: Pi Presents: Beta of a major upgrade now available

Posted: Thu Sep 19, 2013 3:46 pm
by Azizar
Dear Ken

It has been a while since i posted on this forum. I was curious how pi-presents was doing and discovered you released a new (beta) version.

I just installed the latest beta-next and discovered that when i play a (live)show full screen with pictures and video's, the pointer becomes visible when going from a video file to a picture. Unclutter seems to "fail" because of a new window. Can you look into it?

Many thanks from a pi-presents fan.

Az

Re: Pi Presents: Beta of a major upgrade now available

Posted: Fri Sep 27, 2013 11:22 am
by piinthesky12
HI,

Great software. I finally got the beta version to play videos. I had been messing with 1.1 then upgraded to 1.2.2 and videos would not play. I did a fresh install of the OS and started over with beta version and it is working great.

I am working on a system for the movie theatre that will show the screen ads before show time for a certain amount of time then kick off the trailers (previews) at a certain time. While I have figured out how using TOD triggers I would like to see a calendar function to run certain shows at certain times on different days. If showtimes remain the same across a week or weekend, programming the times for the day works, but if they vary it would have to be reprogrammed for those days.

thanks

Re: Pi Presents: Beta of a major upgrade now available

Posted: Mon Sep 30, 2013 10:49 pm
by gas1951
Hi Ken:

I have been looking through the version 1.2.2 manual before I decide whether to upgrade from 1.1.2 (which is working
flawlessly, thank you!). Section 10.2.4 refers to runtime controls for OMXPlayer and MPlayer. The links to the runtime controls
"which are specified here and here" appear to be broken. Do the runtime controls support fast forward and reverse for OMXPlayer?
If so, how do I locate the information about setting this feature up?


- Thanks, Glen

Re: Pi Presents: Beta of a major upgrade now available

Posted: Tue Oct 01, 2013 8:13 pm
by KenT
gas1951 wrote:Hi Ken:

I have been looking through the version 1.2.2 manual before I decide whether to upgrade from 1.1.2 (which is working
flawlessly, thank you!). Section 10.2.4 refers to runtime controls for OMXPlayer and MPlayer. The links to the runtime controls
"which are specified here and here" appear to be broken. Do the runtime controls support fast forward and reverse for OMXPlayer?
If so, how do I locate the information about setting this feature up?


- Thanks, Glen
Whoops, links do not convert to pdf:

https://github.com/popcornmix/omxplayer

http://www.mplayerhq.hu/DOCS/man/en/mpl ... %20CONTROL

Re: Pi Presents: Beta of a major upgrade now available

Posted: Tue Oct 01, 2013 8:45 pm
by KenT
piinthesky12 wrote:HI,

Great software. I finally got the beta version to play videos. I had been messing with 1.1 then upgraded to 1.2.2 and videos would not play. I did a fresh install of the OS and started over with beta version and it is working great.

I am working on a system for the movie theatre that will show the screen ads before show time for a certain amount of time then kick off the trailers (previews) at a certain time. While I have figured out how using TOD triggers I would like to see a calendar function to run certain shows at certain times on different days. If showtimes remain the same across a week or weekend, programming the times for the day works, but if they vary it would have to be reprogrammed for those days.

thanks
Suprised 1.2.2 did not work with an old operating system but at least it works now. I only test Pi Presents with the latest updated Raspbian.

Yes, day of the week sensitive time of day is already on the to do list, but it's not a high priority at the moment.

Re: Pi Presents: Beta of a major upgrade now available

Posted: Tue Oct 01, 2013 10:55 pm
by piinthesky12
KenT wrote:
Suprised 1.2.2 did not work with an old operating system but at least it works now. I only test Pi Presents with the latest updated Raspbian.

Yes, day of the week sensitive time of day is already on the to do list, but it's not a high priority at the moment.
I think I goofed the install when I tried to upgrade to "next' and so i just wiped and started over since it is easy today. BTW the movie theatre was impressed with the test.

Another question. since for right now a 'date" specific trigger is not available i tried using a keystroke trigger to start the videos While this works, when running concurrent shows is there a way to make the triggering of the videos stop the other show?

(running a slide show that will repeat until video show is triggered, works with time triggers but not with manual trigger)

Re: Pi Presents: Beta of a major upgrade now available

Posted: Wed Oct 02, 2013 7:10 am
by KenT
piinthesky12 wrote:
KenT wrote:
snip

Another question. since for right now a 'date" specific trigger is not available i tried using a keystroke trigger to start the videos While this works, when running concurrent shows is there a way to make the triggering of the videos stop the other show?

(running a slide show that will repeat until video show is triggered, works with time triggers but not with manual trigger)
Use Show Control - myslideshow stop - in the first track of the video show. Section 6.4.2 of the manual

alternatively make the video show a child show of the slide show

Re: Pi Presents: Beta of a major upgrade now available

Posted: Thu Oct 03, 2013 3:12 am
by piinthesky12
That was it!

Re: Pi Presents: Beta of a major upgrade now available

Posted: Thu Oct 10, 2013 1:26 pm
by KenT
Azizar wrote:Dear Ken

It has been a while since i posted on this forum. I was curious how pi-presents was doing and discovered you released a new (beta) version.

I just installed the latest beta-next and discovered that when i play a (live)show full screen with pictures and video's, the pointer becomes visible when going from a video file to a picture. Unclutter seems to "fail" because of a new window. Can you look into it?

Many thanks from a pi-presents fan.

Az
Hi Az

Good to hear from you again. I sent you a private message on the Raspberry PI forum some time ago to see how you were getting on.

I have just tried [pipresents-next] with the latest Raspbian. Yes the cursor does appear on an image after playing a video but only for one second then it disapppears. I also tried [pipresents] on the same latest Raspbian with the same result so the effect may have been there for some time.

I think the problem is that the omxplayer and pipresents windows are actually two windows from two processes. I can't do anything about it in Pi Presents. You might be able to alter the configuration of unclutter which is in /etc/default/unclutter to improve the situation. Tell me if you succeed and I will add the option to pipresents.py. Google 'man unclutter' to see the options

Re: Pi Presents: Beta of a major upgrade now available

Posted: Tue Oct 29, 2013 8:14 pm
by Azizar
Dear Ken,

I edited /etc/default/unclutter, adding

Code: Select all

-grab
and

Code: Select all

-noevents

That seemed to do the trick.

Many thanks

Az

Re: Pi Presents: Beta of a major upgrade now available

Posted: Sun Nov 17, 2013 11:34 am
by KenT
I have just uploaded version 1.2.3a of Pi Presents to [pipresents-next]

https://github.com/KenT2/pipresents-next

This is a major revision responding to the many suggestions that you have made. It has a web browser, a much enhanced menushow, and ‘plugins’ which allow you to write Python code to implement dynamic displays.

My thanks to all who have provided ideas for improvement, keep them coming.

Comments, queries here please:

Enjoy
Ken

From changelog.txt:

new – browser player to play web tracks stored locally or on the internet
new – menushow has many new menu layouts with icons and bullets
new – much improved scaling of images in ImagePlayer
new – plugins (user provided python modules) allow dynamic content to modify images or to be written to the display, and lots more if you are brave!

enhancement – video window, image window and web window now use the same terminology
enhancement - menus can now have a background colour
enhancement – hint positioning in mediashow and liveshow now more flexible
enhancement – hint positioning in menu now more flexible
enhancement – liveshow can now include web tracks
enhancement – all track types now have the same set of ancillaries:
enhancement – ability to inhibit display of show text and show background in individual tracks

Re: Pi Presents: Beta of a major upgrade now available

Posted: Mon Nov 18, 2013 11:39 am
by Azizar
Dear Ken,

So it is possible to automatically scale images now in the liveshow? Sounds great!

Many thanks

Az

Re: Pi Presents: Beta of a major upgrade now available

Posted: Mon Nov 18, 2013 12:08 pm
by KenT
Azizar wrote:Dear Ken,

So it is possible to automatically scale images now in the liveshow? Sounds great!

Many thanks

Az
Yes just use image window in the Liveshow profile. It will then do the same scaling for all images. You can make them smaller or larger maintaining aspect ratio or not. You can also scale the videos and the web tracks.

Re: Pi Presents: Beta of a major upgrade now available

Posted: Fri Nov 22, 2013 10:49 pm
by marcoangeli
Hey Ken,
basic question here: I'd like to try pipresent-next (already installed pipresent 1.1.2).
I tried upgrading with:

Code: Select all

wget https://github.com/KenT2/pipresents-next/tarball/master -O - | tar xz
but then I'm unable to find "pp_editor.cfg"... I'm definitely doing something wrong.

Thanks!

Re: Pi Presents: Beta of a major upgrade now available

Posted: Sat Nov 23, 2013 1:25 pm
by KenT
marcoangeli wrote:Hey Ken,
basic question here: I'd like to try pipresent-next (already installed pipresent 1.1.2).
I tried upgrading with:

Code: Select all

wget https://github.com/KenT2/pipresents-next/tarball/master -O - | tar xz
but then I'm unable to find "pp_editor.cfg"... I'm definitely doing something wrong.

Thanks!
pp_editor.cfg should be in the pipresents directory for 1.1.2 just copy it across to your new directory. If you have never used the editor with 1.1.2 pp_editor.cfg will not exist. Don't worry one will be created when you run the editor in 1.2.3

Hope this helps