Azizar
Posts: 31
Joined: Sat Jan 19, 2013 12:02 pm

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

Thu Jan 23, 2014 4:21 pm

Dear Ken,

I already increased the memory to 128 (sorry i didn't mention this). I will look into the script as soon as i am able.

Many thanks

Az

pluess
Posts: 1
Joined: Tue Jan 28, 2014 3:55 pm

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

Tue Jan 28, 2014 4:05 pm

l can't get the links with gpio running. the presentation doesn't start if i use sudo. and without sudo i can't access the gpio. i tried the example profiles.

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

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

Tue Jan 28, 2014 6:07 pm

pluess wrote:l can't get the links with gpio running. the presentation doesn't start if i use sudo. and without sudo i can't access the gpio. i tried the example profiles.

If you are running pipresents from anywhere other than its directory, including using sudo, you have to state the full name of the data home directory

e.g

sudo python /home/pi/pipresents/pipresents.py -o /home/pi/pp_home -p pp_liveshow -bf
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

Bonsema
Posts: 2
Joined: Wed May 14, 2014 2:12 pm

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

Thu May 22, 2014 1:32 pm

Hi,
my first steps with raspberry Pi and Pi presents , but I don't know how to solve my issue even after reading the manual.

autostart, full schreen, GPIO is working fine, mediashow also but I tried to create a liveshow as follow:

I have a directory with slides to show, I have internet page to show
https://iris.nocd.db.de/wbt/js/index.ht ... &disruot=0
at 16.50 stop the live show and start three message text pages, until the GPIO button was pressed for shutdown.

the other show is a mediashow.
Part one:
Mediashow: intro screen and video play until GPIO button 1 or 2 or 3 or 4 is pressed
1 = mediashot DE starts; 2 mediashow ENG starts; 3 mediashow NL starts; 4 mediashow FR starts.
After finishing the Language show Intro Starts again.

the other shows starts but the into show still visuable between the other slides.

can someone help me

tonyrh
Posts: 2
Joined: Wed Aug 06, 2014 12:57 pm

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

Wed Aug 06, 2014 1:09 pm

Hi, I'm trying to achieve this:

1 Video start triggered by gpio in (hc-sr04 sensor)
2 When video starts a gpio out is sent to turn on lights
3 When video ends a gpio out is sent to turn off lights

1 and 2 work fine, 3 does not work.
I'm pretty sure pins configuration is ok (tested with output_test.py), so maybe omxplayer is not triggering the end animation for some reason? Does anyone have successfully implemented something like this?

Edit: I tried to attach some configuration files and a log file but .txt, .cfg and .log extensions are not allowed by this awful forum software.

gpio.cfg

Code: Select all

[P1-18]
direction = in
rising-name =
falling-name = pp-play
one-name = 
zero-name = 
repeat = 
threshold = 2
pull-up-down = up

[P1-22]
direction = out
name = lights
media.json

Code: Select all

{
 "issue": "1.2", 
 "tracks": [
  {
   "animate-begin": "lights on", 
   "animate-clear": "no", 
   "animate-end": "lights off", 
   "background-colour": "", 
   "background-image": "", 
   "display-show-background": "yes", 
   "display-show-text": "yes", 
   "links": "", 
   "location": "+/media/suits-short.mkv", 
   "omx-audio": "", 
   "omx-volume": "", 
   "omx-window": "", 
   "plugin": "", 
   "show-control-begin": "", 
   "show-control-end": "", 
   "thumbnail": "", 
   "title": "New Video", 
   "track-ref": "", 
   "track-text": "", 
   "track-text-colour": "", 
   "track-text-font": "", 
   "track-text-x": "0", 
   "track-text-y": "0", 
   "type": "video"
  }
 ]
}
pp-showlist.json

Code: Select all

{
 "issue": "1.2", 
 "shows": [
  {
   "show-ref": "start", 
   "start-show": "mymediashow", 
   "title": "Start", 
   "type": "start"
  }, 
  {
   "audio-speaker": "stereo", 
   "background-colour": "", 
   "background-image": "", 
   "controls": "", 
   "disable-controls": "no", 
   "duration": "5", 
   "has-child": "no", 
   "hint-colour": "", 
   "hint-font": "", 
   "hint-text": "", 
   "hint-x": "200", 
   "hint-y": "", 
   "image-window": "original", 
   "medialist": "media.json", 
   "mplayer-audio": "hdmi", 
   "mplayer-other-options": "", 
   "mplayer-volume": "0", 
   "next-input": "", 
   "omx-audio": "hdmi", 
   "omx-other-options": "", 
   "omx-volume": "0", 
   "omx-window": "original", 
   "progress": "auto", 
   "repeat": "oneshot", 
   "repeat-interval": "", 
   "sequence": "ordered", 
   "show-canvas": "", 
   "show-ref": "mymediashow", 
   "show-text": "", 
   "show-text-colour": "", 
   "show-text-font": "", 
   "show-text-x": "0", 
   "show-text-y": "0", 
   "title": "Mediashow", 
   "transition": "cut", 
   "trigger": "input", 
   "trigger-end": "none", 
   "trigger-end-time": "", 
   "trigger-input": "", 
   "trigger-next": "continue", 
   "type": "mediashow", 
   "web-window": "warp"
  }
 ]
}
pp_log.log

Code: Select all

0.500057935715 PiPresents: 

*****************
Pi Presents is starting, Version:1.2.3d
0.50115609169 PiPresents: Version: 1.2.3d
0.502069950104 PiPresents:  OS and separator:posix  /
0.502958059311 PiPresents: sys.path[0] -  location of code: /home/pi/pipresents
0.503890991211 PiPresents: pp_home directory is: /home/pi/pp_home
0.504837036133 PiPresents: Trying pp_home at: /home/pi/pp_home (1)
0.506149053574 PiPresents: Found Requested Home Directory, using pp_home at: /home/pi/pp_home
0.510880947113 PiPresents: Found Requested profile - pp_profile directory is: /home/pi/pp_home/pp_profiles/castello-bug
0.554719924927 ResourceReader: resources.cfg read from /home/pi/pp_home/resources.cfg
1.59612894058 ControlsManager: controls.cfg read from /home/pi/pp_home/controls.cfg
1.60766911507 KbdDriver: keys.cfg read from /home/pi/pp_home/keys.cfg
1.61870312691 ScreenDriver: screen.cfg read from /home/pi/pp_home/screen.cfg
1.67827701569 PPIO: gpio.cfg read from /home/pi/pp_home/pp_profiles/castello-bug/gpio.cfg
1.70325493813 PPIO: no pin definition for P1-03
1.70577096939 PPIO: no pin definition for P1-05
1.70829296112 PPIO: no pin definition for P1-07
1.71891593933 PPIO: no pin definition for P1-08
1.72414898872 PPIO: no pin definition for P1-10
1.72642207146 PPIO: no pin definition for P1-11
1.72906398773 PPIO: no pin definition for P1-12
1.73174905777 PPIO: no pin definition for P1-13
1.7340939045 PPIO: no pin definition for P1-15
1.7487039566 PPIO: no pin definition for P1-16
1.76222896576 PPIO: no pin definition for P1-19
1.76489901543 PPIO: no pin definition for P1-21
1.76939797401 PPIO: no pin definition for P1-23
1.78203392029 PPIO: no pin definition for P1-24
1.78468990326 PPIO: no pin definition for P1-26
1.79155397415 ShowManager: start -1: Starting show mymediashow 0
1.79758691788 MediaShow: mymediashow 0: Starting show
1.81789207458 MediaShow: mymediashow 0: Waiting for trigger: input
10.6039121151 PiPresents: GPIO Pressed: pp-play
10.6049890518 PiPresents: input received: pp-play
10.606194973 MediaShow: mymediashow 0: received input: pp-play
10.6088409424 MediaShow: mymediashow 0: Track type is: video
10.6100320816 MediaShow: mymediashow 0: Track to play is: /home/pi/pp_home/media/suits-short.mkv
10.6642360687 VideoPlayer: >play track received
10.6655569077 OMXDriver: Send command to omxplayer: /usr/bin/omxplayer -s -o hdmi --vol 0     '/home/pi/pp_home/media/suits-short.mkv'
10.7186870575 VideoPlayer: Playing track from show Id: 0
10.7796421051 VideoPlayer:       State machine: omx_starting
10.7807209492 VideoPlayer:             <start play signal received from omx
10.781815052 VideoPlayer:       State machine: omx_playing started
11.5213711262 PPIO: pin P1-22 set  True required: 1407347175 actual: 1407347175
46.308216095 VideoPlayer:             <end play signal received
46.3093841076 VideoPlayer:             <end detected at: 33293376.0
46.5118749142 VideoPlayer:       State machine: omx_ending
46.5207679272 VideoPlayer:       State machine : is omx process running? -  False
46.5303030014 VideoPlayer:             <omx process is dead
46.5340359211 MediaShow: mymediashow 0: Returned from player with message: track has terminated or quit
46.5357489586 MediaShow: mymediashow 0: Waiting for trigger: input
47.5211000443 PPIO: pin P1-22 set  True required: 1407347211 actual: 1407347211
58.9978399277 PiPresents: input received: pp-exit
58.9990401268 PiPresents: kill received from user
59.0000870228 PiPresents: kill sent to shows
59.0013520718 PiPresents: Sent terminate to show mymediashow
59.0033209324 MediaShow: mymediashow 0: Ending Mediashow
59.0045580864 ShowManager: start -1: Returned from show with message: kill or error
59.0056600571 PiPresents: All shows ended, so terminate Pi Presents
59.0065860748 PiPresents: Pi Presents ending with message: normal All shows ended
59.0186469555 PPIO: clear events list 
59.0193309784 PPIO: reset outputs
59.0208289623 TimeOfDay: clear time of day list None
59.0213649273 PiPresents: no error - exiting normally
As you can see from this line in the log:

Code: Select all

...
47.5211000443 PPIO: pin P1-22 set  True required: 1407347211 actual: 1407347211
...
when the track has terminated the signal sent to pin P1-22 is True, while it should be False as specified in media.json:

Code: Select all

...
"animate-end": "lights off", 
...
Any hints on what I'm doing wrong?

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

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

Sat Aug 09, 2014 1:18 pm

Hi Tony

There is a bug in pp_videoplayer.py In line 368 change animate_begin_text to animate_end_text

I'll update github tomorrow

Ken
tonyrh wrote:Hi, I'm trying to achieve this:

1 Video start triggered by gpio in (hc-sr04 sensor)
2 When video starts a gpio out is sent to turn on lights
3 When video ends a gpio out is sent to turn off lights

1 and 2 work fine, 3 does not work.
I'm pretty sure pins configuration is ok (tested with output_test.py), so maybe omxplayer is not triggering the end animation for some reason? Does anyone have successfully implemented something like this?

Edit: I tried to attach some configuration files and a log file but .txt, .cfg and .log extensions are not allowed by this awful forum software.

gpio.cfg

Code: Select all

[P1-18]
direction = in
rising-name =
falling-name = pp-play
one-name = 
zero-name = 
repeat = 
threshold = 2
pull-up-down = up

[P1-22]
direction = out
name = lights
media.json

Code: Select all

{
 "issue": "1.2", 
 "tracks": [
  {
   "animate-begin": "lights on", 
   "animate-clear": "no", 
   "animate-end": "lights off", 
   "background-colour": "", 
   "background-image": "", 
   "display-show-background": "yes", 
   "display-show-text": "yes", 
   "links": "", 
   "location": "+/media/suits-short.mkv", 
   "omx-audio": "", 
   "omx-volume": "", 
   "omx-window": "", 
   "plugin": "", 
   "show-control-begin": "", 
   "show-control-end": "", 
   "thumbnail": "", 
   "title": "New Video", 
   "track-ref": "", 
   "track-text": "", 
   "track-text-colour": "", 
   "track-text-font": "", 
   "track-text-x": "0", 
   "track-text-y": "0", 
   "type": "video"
  }
 ]
}
pp-showlist.json

Code: Select all

{
 "issue": "1.2", 
 "shows": [
  {
   "show-ref": "start", 
   "start-show": "mymediashow", 
   "title": "Start", 
   "type": "start"
  }, 
  {
   "audio-speaker": "stereo", 
   "background-colour": "", 
   "background-image": "", 
   "controls": "", 
   "disable-controls": "no", 
   "duration": "5", 
   "has-child": "no", 
   "hint-colour": "", 
   "hint-font": "", 
   "hint-text": "", 
   "hint-x": "200", 
   "hint-y": "", 
   "image-window": "original", 
   "medialist": "media.json", 
   "mplayer-audio": "hdmi", 
   "mplayer-other-options": "", 
   "mplayer-volume": "0", 
   "next-input": "", 
   "omx-audio": "hdmi", 
   "omx-other-options": "", 
   "omx-volume": "0", 
   "omx-window": "original", 
   "progress": "auto", 
   "repeat": "oneshot", 
   "repeat-interval": "", 
   "sequence": "ordered", 
   "show-canvas": "", 
   "show-ref": "mymediashow", 
   "show-text": "", 
   "show-text-colour": "", 
   "show-text-font": "", 
   "show-text-x": "0", 
   "show-text-y": "0", 
   "title": "Mediashow", 
   "transition": "cut", 
   "trigger": "input", 
   "trigger-end": "none", 
   "trigger-end-time": "", 
   "trigger-input": "", 
   "trigger-next": "continue", 
   "type": "mediashow", 
   "web-window": "warp"
  }
 ]
}
pp_log.log

Code: Select all

0.500057935715 PiPresents: 

*****************
Pi Presents is starting, Version:1.2.3d
0.50115609169 PiPresents: Version: 1.2.3d
0.502069950104 PiPresents:  OS and separator:posix  /
0.502958059311 PiPresents: sys.path[0] -  location of code: /home/pi/pipresents
0.503890991211 PiPresents: pp_home directory is: /home/pi/pp_home
0.504837036133 PiPresents: Trying pp_home at: /home/pi/pp_home (1)
0.506149053574 PiPresents: Found Requested Home Directory, using pp_home at: /home/pi/pp_home
0.510880947113 PiPresents: Found Requested profile - pp_profile directory is: /home/pi/pp_home/pp_profiles/castello-bug
0.554719924927 ResourceReader: resources.cfg read from /home/pi/pp_home/resources.cfg
1.59612894058 ControlsManager: controls.cfg read from /home/pi/pp_home/controls.cfg
1.60766911507 KbdDriver: keys.cfg read from /home/pi/pp_home/keys.cfg
1.61870312691 ScreenDriver: screen.cfg read from /home/pi/pp_home/screen.cfg
1.67827701569 PPIO: gpio.cfg read from /home/pi/pp_home/pp_profiles/castello-bug/gpio.cfg
1.70325493813 PPIO: no pin definition for P1-03
1.70577096939 PPIO: no pin definition for P1-05
1.70829296112 PPIO: no pin definition for P1-07
1.71891593933 PPIO: no pin definition for P1-08
1.72414898872 PPIO: no pin definition for P1-10
1.72642207146 PPIO: no pin definition for P1-11
1.72906398773 PPIO: no pin definition for P1-12
1.73174905777 PPIO: no pin definition for P1-13
1.7340939045 PPIO: no pin definition for P1-15
1.7487039566 PPIO: no pin definition for P1-16
1.76222896576 PPIO: no pin definition for P1-19
1.76489901543 PPIO: no pin definition for P1-21
1.76939797401 PPIO: no pin definition for P1-23
1.78203392029 PPIO: no pin definition for P1-24
1.78468990326 PPIO: no pin definition for P1-26
1.79155397415 ShowManager: start -1: Starting show mymediashow 0
1.79758691788 MediaShow: mymediashow 0: Starting show
1.81789207458 MediaShow: mymediashow 0: Waiting for trigger: input
10.6039121151 PiPresents: GPIO Pressed: pp-play
10.6049890518 PiPresents: input received: pp-play
10.606194973 MediaShow: mymediashow 0: received input: pp-play
10.6088409424 MediaShow: mymediashow 0: Track type is: video
10.6100320816 MediaShow: mymediashow 0: Track to play is: /home/pi/pp_home/media/suits-short.mkv
10.6642360687 VideoPlayer: >play track received
10.6655569077 OMXDriver: Send command to omxplayer: /usr/bin/omxplayer -s -o hdmi --vol 0     '/home/pi/pp_home/media/suits-short.mkv'
10.7186870575 VideoPlayer: Playing track from show Id: 0
10.7796421051 VideoPlayer:       State machine: omx_starting
10.7807209492 VideoPlayer:             <start play signal received from omx
10.781815052 VideoPlayer:       State machine: omx_playing started
11.5213711262 PPIO: pin P1-22 set  True required: 1407347175 actual: 1407347175
46.308216095 VideoPlayer:             <end play signal received
46.3093841076 VideoPlayer:             <end detected at: 33293376.0
46.5118749142 VideoPlayer:       State machine: omx_ending
46.5207679272 VideoPlayer:       State machine : is omx process running? -  False
46.5303030014 VideoPlayer:             <omx process is dead
46.5340359211 MediaShow: mymediashow 0: Returned from player with message: track has terminated or quit
46.5357489586 MediaShow: mymediashow 0: Waiting for trigger: input
47.5211000443 PPIO: pin P1-22 set  True required: 1407347211 actual: 1407347211
58.9978399277 PiPresents: input received: pp-exit
58.9990401268 PiPresents: kill received from user
59.0000870228 PiPresents: kill sent to shows
59.0013520718 PiPresents: Sent terminate to show mymediashow
59.0033209324 MediaShow: mymediashow 0: Ending Mediashow
59.0045580864 ShowManager: start -1: Returned from show with message: kill or error
59.0056600571 PiPresents: All shows ended, so terminate Pi Presents
59.0065860748 PiPresents: Pi Presents ending with message: normal All shows ended
59.0186469555 PPIO: clear events list 
59.0193309784 PPIO: reset outputs
59.0208289623 TimeOfDay: clear time of day list None
59.0213649273 PiPresents: no error - exiting normally
As you can see from this line in the log:

Code: Select all

...
47.5211000443 PPIO: pin P1-22 set  True required: 1407347211 actual: 1407347211
...
when the track has terminated the signal sent to pin P1-22 is True, while it should be False as specified in media.json:

Code: Select all

...
"animate-end": "lights off", 
...
Any hints on what I'm doing wrong?
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com


KE5AFU
Posts: 2
Joined: Tue Sep 23, 2014 6:28 pm

GPIO Issues

Tue Sep 23, 2014 6:34 pm

Hey Ken,

Thank you very much for PiPresents, I've had quite a learning experience making it all work.
I've got a show set up with 4 buttons, each corresponding to a movie with a splash screen (menu) that pops up after a video has played. I can make this work perfectly with the 1-4 keys on a keyboard, but the GPIO does not seem to be working.

I've got the first video mapped to pin 18 with a pullup resistor enabled and a N/O button to ground completing the circuit.
From what I can see the GPIO is not enabling the pullup as when I measure voltage on pin 18 it is floating.
When I run a manual script to enable that pin and detect button presses everything works fine so i don't think it's hardware related.

Any suggestions?

Thanks,

- Matt

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

Re: GPIO Issues

Tue Sep 23, 2014 8:16 pm

KE5AFU wrote:Hey Ken,

Thank you very much for PiPresents, I've had quite a learning experience making it all work.
I've got a show set up with 4 buttons, each corresponding to a movie with a splash screen (menu) that pops up after a video has played. I can make this work perfectly with the 1-4 keys on a keyboard, but the GPIO does not seem to be working.

I've got the first video mapped to pin 18 with a pullup resistor enabled and a N/O button to ground completing the circuit.
From what I can see the GPIO is not enabling the pullup as when I measure voltage on pin 18 it is floating.
When I run a manual script to enable that pin and detect button presses everything works fine so i don't think it's hardware related.

Any suggestions?

Thanks,

- Matt
Sounds like you have the correct electrical circuit.
Sounds like you know to do sudo python pipresents.py to use gpio
have you used the -g option in the command line. (i'll take bets onthis one ;-)
If you use sudo then the -o option needs to have the complete file path.
Have you edited gpio.cfg correctly
Are you picking up the correct gpio.cfg. use the -d option to check
Does the pp_radiobuttonshow_1p2 example work.
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

KE5AFU
Posts: 2
Joined: Tue Sep 23, 2014 6:28 pm

Re: GPIO Issues

Tue Sep 23, 2014 10:06 pm

KenT wrote: Sounds like you have the correct electrical circuit.
Sounds like you know to do sudo python pipresents.py to use gpio
have you used the -g option in the command line. (i'll take bets onthis one ;-)
If you use sudo then the -o option needs to have the complete file path.
Have you edited gpio.cfg correctly
Are you picking up the correct gpio.cfg. use the -d option to check
Does the pp_radiobuttonshow_1p2 example work.
I feel a little sheepish now. First off, yes the -h stopped my floating pins, but imagine my surprise when the button didn't play the video, and holding it down shut off the pi! I was interfacing through a cobbler from adafruit and it's labeled for BCM instead of board GPIO. Switching to the correct pinout makes everything work quite well now.

Thank you for your quick response, this has been my first foray into the Pi and I'm quite excited to learn more.

- Matt

lagelat
Posts: 2
Joined: Wed Sep 24, 2014 11:19 am

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

Wed Sep 24, 2014 11:31 am

Hello.
I can read directly movies with omxplayer but not with pipresents.
When i open pp_mediashow_1p2, nothing appear when the video cue arrives and progression in the media list is stopped.
Nothing about an error in omxlogfile or in the lxterminal window, i need to break to stop process.
Every other media (picture, url...) works.
I could read vidéo with 1.1.2.

lagelat
Posts: 2
Joined: Wed Sep 24, 2014 11:19 am

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

Thu Sep 25, 2014 6:18 am

It's ok, the version of omx player was too old.
I try to play a video in loop mode and when i push a button, i want to play another video and when it's finished, return to the first loop,
Do i have to use childshow or a simple mediashow is ok (it seems that it's not possible to trig manually only one track of a media show)

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

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

Thu Sep 25, 2014 8:12 am

lagelat wrote:It's ok, the version of omx player was too old.
I try to play a video in loop mode and when i push a button, i want to play another video and when it's finished, return to the first loop,
Do i have to use childshow or a simple mediashow is ok (it seems that it's not possible to trig manually only one track of a media show)
You can use a child show of a mediashow. Better still use a radiobuttonshow. This was designed to do exactly what you want and can easily be extended to more then one button. Look at the pp_radiobuttonshow_1p2 example.
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

Yvad
Posts: 2
Joined: Wed Nov 12, 2014 11:36 am

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

Wed Nov 12, 2014 3:55 pm

I really like your software! I use it to show pictures at a party and give people the possibility to upload their photo's to my website. The uploaded photo's will sync via FTP with the pi and will show up in the liveshow.

I have 2 questions:
- I would like to shuffle the liveshow. I saw this:
KenT wrote: SHUFFLE
Tracks in mediashow and liveshow can now be shuffled
But I can't find it anywhere in the software or manual. Is this possible? And maybe the 'just-added' photo's will show up first?

- I would like to add the feature that people can add a short text that will appear on the screen. Is there a way to show dynamic text (from a database or something like that) on the screen? And then again, show the recent texts first, and then shuffle trough the rest

Thanks in advance!

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

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

Thu Nov 13, 2014 8:13 am

Good spot. The changelog say that shuffle is available for liveshow but it has not been implemented in the code. If you know about Python programming you could implement it yourself in ppliveshow.py; look at the code in next() in pp_medialist.py to get you going.

Adding text - there are two possibilities:

a. Use a web track. This runs the uzbl browser getting data from a url specified in the profile which will be your web server. You can automatically refresh the page giving dynamics.
b. Use track plugins. These are small python programs you write yourself to modify the image displayed using PIL or writie direct to the screen using Tkinter. The plugin is then executed by adding a .fg file to the profile.

Hope this helps
Ken

Yvad wrote:I really like your software! I use it to show pictures at a party and give people the possibility to upload their photo's to my website. The uploaded photo's will sync via FTP with the pi and will show up in the liveshow.

I have 2 questions:
- I would like to shuffle the liveshow. I saw this:
KenT wrote: SHUFFLE
Tracks in mediashow and liveshow can now be shuffled
But I can't find it anywhere in the software or manual. Is this possible? And maybe the 'just-added' photo's will show up first?

- I would like to add the feature that people can add a short text that will appear on the screen. Is there a way to show dynamic text (from a database or something like that) on the screen? And then again, show the recent texts first, and then shuffle trough the rest

Thanks in advance!
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

Schwaa
Posts: 7
Joined: Sun Jan 11, 2015 10:56 pm

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

Mon Jan 12, 2015 5:03 pm

Hi Ken

You suggested your software to me in the beginners forum this morning. I haven't had a chance to try it yet but I've had a good read of the manual and I have a couple of queries:

1 Is it possible to create a radiobuttonshow purely for triggering audio samples BUT assigning them to multiple different outputs using, for example, a usb 7.1 sound card?

2 Is it possible to output the audio of a video file via HDMI while SIMULTANEOUSLY outputting two separate, looped tracks to left and right analog output? If so would it technically be possible to simultaneously control 4 independent audio tracks using HDMI L and R and analog L and R?

Many thanks
Josh

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

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

Mon Jan 12, 2015 7:57 pm

Schwaa wrote:Hi Ken


1 Is it possible to create a radiobuttonshow purely for triggering audio samples BUT assigning them to multiple different outputs using, for example, a usb 7.1 sound card?
In principle yes. With PP out of the box you can direct stereo audio tracks to left right or both on a per track basis to . PP just uses mplayer and sends it suitable commands so I don't see why it shouldn't be able to use USB audio. It might be necessary to modify PP a little to send the additional commads to mplayer or alsa.
2 Is it possible to output the audio of a video file via HDMI while SIMULTANEOUSLY outputting two separate, looped tracks to left and right analog output? If so would it technically be possible to simultaneously control 4 independent audio tracks using HDMI L and R and analog L and R?

Yes, I just tried this and it works. If i remember correctly it did not work a year ago but I think Raspbian has been fixed since. You can't direct HDMI to Left of Right so you would need recordings using the left and right channels only.

There may be an issue with processor loading. I think you need to try it out. I would be interested to know how you get on

Many thanks
Josh
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

haaron67
Posts: 3
Joined: Sun Mar 22, 2015 9:32 pm

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

Mon Mar 23, 2015 1:51 am

Hello
I have tried to run the Examples as listed on Git Hub but get the following:
Traceback (most recent call last):
File "/home/pi/pipresents/pipresents.py", line 24, in <module>
from pp_showmanager import ShowManager
File "/home/pi/pipresents/pp_showmanager.py", line 249, in <module>
from pp_menushow import MenuShow
File "/home/pi/pipresents/pp_menushow.py", line 7, in <module>
import PIL.ImageTk
ImportError: No module named ImageTk

Is there something I'm missing?
Thanks
Heather
In way over my head

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

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

Mon Mar 23, 2015 7:27 am

Hi
You missed the following during the installation

Code: Select all

sudo apt-get install python-imaging-tk
haaron67 wrote:Hello
I have tried to run the Examples as listed on Git Hub but get the following:
Traceback (most recent call last):
File "/home/pi/pipresents/pipresents.py", line 24, in <module>
from pp_showmanager import ShowManager
File "/home/pi/pipresents/pp_showmanager.py", line 249, in <module>
from pp_menushow import MenuShow
File "/home/pi/pipresents/pp_menushow.py", line 7, in <module>
import PIL.ImageTk
ImportError: No module named ImageTk

Is there something I'm missing?
Thanks
Heather
In way over my head
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

Casey Scalf
Posts: 19
Joined: Wed Apr 15, 2015 5:31 pm

Issue Installing with -O

Sat Apr 18, 2015 7:02 pm

I am having trouble getting Pi Presents to install correctly. I get everything right and then am hung up on this line:

wget https://github.com/KenT2/pipresents-next/tarball/master -O - | tar xz
the -O does not want to run. I get this error:

wget invalid option -- 'O'
gzip: stdin: not in gzip format
tar: child returned status 1
tar: error is not recoverable: exiting now

What's going on? How do I get around this? I am new to the terminal but have some skills. I have obviously tried a zero, a lower case, etc. Any suggestions?

I tried it without the -O and I got this error at the bottom:

gzip: stdin: not in gzip format
tar: child returned status 1
tar: error is not recoverable: exiting now

User avatar
rpdom
Posts: 12669
Joined: Sun May 06, 2012 5:17 am
Location: Ankh-Morpork

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

Sat Apr 18, 2015 7:21 pm

That option is correct. Just to check, you are using a capital letter "o" (O), not a numerical 0 (zero)?

Casey Scalf
Posts: 19
Joined: Wed Apr 15, 2015 5:31 pm

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

Sat Apr 18, 2015 7:23 pm

Yes, capitol letter 'O'

I confirmed this by bringing it into the text editor.

I spelled it correctly a few times to be sure. Another thing that hung me up was not being able to copy and past into the Pi's terminal to be sure it was spelled correctly.

Any thoughts?

I frankly just downloaded the zip from GitHub and am running it now. Not sure if that messes up anything but it sure was a lot more straightforward since that's a very common way to download and run software.

Casey Scalf
Posts: 19
Joined: Wed Apr 15, 2015 5:31 pm

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

Sat Apr 18, 2015 7:39 pm

I feel like just downloading it and unzipping it does not work. None of the examples will load.

Still trying to figure it out...

brimms
Posts: 2
Joined: Sun Apr 26, 2015 2:56 pm

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

Sun Apr 26, 2015 4:08 pm

Hi Ken, I just got my Pi 2 up and running yesterday and installed pipresents-next today. It's all working fine, thanks for all your good work. I made a test show but I'm having trouble getting my head around "shows" and "tracks".
I too support a small museum, I wrote this web-site when we all had dial-up modems, now I'm trying to create an off-line display in the museum itself.
http://www.longhopelifeboat.org.uk/museum/index.htm

I had thought of just using a server but it really needs modernising and some fresh ideas. Could you suggest a way of approaching this task? My initial idea was to have radio buttons and a mouse. Users could choose various slide-shows, videos or the off-line web-site. This may not be optimal, I could do with a flow-chart :)
I'm sorry to be so demanding in my first post but there's no-one around here who could help me :(

For an off-line web-page on a USB stick how should the links start? Is it something like file:///media/mnt/museum/index.htm ?

P.S. If I right click your link and select "Save link as" the pdf is corrupted. The version in the tar file works OK.
https://github.com/KenT2/pipresents-nex ... manual.pdf

P.P.S. I don't get paid for any of this. I'm a volunteer at the museum and also in the current lifeboat crew.

Thanks for reading, any ideas are most welcome.

KenT
Posts: 758
Joined: Tue Jan 24, 2012 9:30 am
Location: Hertfordshire, UK
Contact: Website

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

Thu Apr 30, 2015 12:20 pm

brimms wrote:Hi Ken, I just got my Pi 2 up and running yesterday and installed pipresents-next today. It's all working fine, thanks for all your good work. I made a test show but I'm having trouble getting my head around "shows" and "tracks".
A show plays tracks. The different types of show give different control, navigation and layout.
I had thought of just using a server but it really needs modernising and some fresh ideas. Could you suggest a way of approaching this task? My initial idea was to have radio buttons and a mouse. Users could choose various slide-shows, videos or the off-line web-site. This may not be optimal, I could do with a flow-chart :)
A radiobuttonshow with each track being a mediashow would be good. Alternatively use a menu. radiobuttonshow needs a button for each selection whereas a menu just needs three Up, Down and Play. If you can avoid the browser then so much the better. PP works best with images and videos directly obtained from the filesystem and shown by video and image tracks.

Pi Presents is not a web based system except that one of the track types is a web browser that will play html from a server or just an ordinary filesystem. Integration of the browser into Pi Presents is poor. if your main aim is to use a web server then another digital signage system such as Minimal Kiosk Browser or Screenly OSE might suit better.
For an off-line web-page on a USB stick how should the links start? Is it something like file:///media/mnt/museum/index.htm ?
No I think just the plain file path something like /media/USBSTICK/myfile.htm

P.S. If I right click your link and select "Save link as" the pdf is corrupted. The version in the tar file works OK.
https://github.com/KenT2/pipresents-nex ... manual.pdf
Must be a GITHUB funny. Does it for me as also
Pi Presents - A toolkit to produce multi-media interactive display applications for museums, visitor centres, and more
Download from http://pipresents.wordpress.com

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 8 guests