Go to advanced search

by KenT
Tue Aug 06, 2013 7:10 pm
Forum: Beginners
Topic: Controlling OXMPlayer from Python Script
Replies: 17
Views: 3008

Re: Controlling OXMPlayer from Python Script

the only reason i hacked your script was because i was getting this: 79.23 PiPresents Button Pressed: shutdown Exception in Tkinter callback Traceback (most recent call last): it was like it was hearing the button but the shutdown command was failing? Trev Thanks for finding this, its a bug I will ...
by KenT
Sun Aug 04, 2013 4:18 pm
Forum: Beginners
Topic: Controlling OXMPlayer from Python Script
Replies: 17
Views: 3008

Re: Controlling OXMPlayer from Python Script

Hi Ken, Me again :) I was hoping to plug in a momentary switch to shutdown the pi. I've wired it all up and can see the button being detected in debug but the pi wasn't shutting down. Then I notice in the manual.pdf on page 38 it says "shutdown - not implemented" :( So that functionality is not ava...
by KenT
Sun Aug 04, 2013 4:09 pm
Forum: Beginners
Topic: Controlling OXMPlayer from Python Script
Replies: 17
Views: 3008

Re: Controlling OXMPlayer from Python Script

trevorjdaniel wrote:Hi Ken,

I've hacked pipresents.py and added call(['sudo', 'shutdown', '-h', '-P', '-t 5','now']) at line 327.

It appears to have the desired effect.

Is this ok?

Trev
Yes it will be OK if you want to short circuit the 5 second delay, probably best to call self.tidy_up() first but not essential.
by KenT
Sun Aug 04, 2013 12:08 pm
Forum: General discussion
Topic: rpi powering 8 relay
Replies: 17
Views: 6248

Re: rpi powering 8 relay

Many of these relay modules, even the opto isolated ones have the input referenced to Vcc e.g http://www.ebay.co.uk/itm/5V-2-Channel-Relay-Module-Board-Shield-optocoup-Arduino-PIC-MCU-Cheap-/251231183205?pt=LH_DefaultDomain_0&hash=item3a7e8ba165 I'm not an electronics expert but referencing to Vcc i...
by KenT
Sat Aug 03, 2013 10:27 pm
Forum: Python
Topic: Phyton Programs
Replies: 9
Views: 1734

Re: Phyton Programs

As previous poster said use the free Active State Python The only problem I had porting the Pi Presents editor was the /\ difference in file paths and care was required with some system call that returned users home directoryetc. pp_editor.py from Pi Presents which uses the Tkinter GUI works fine on...
by KenT
Thu Aug 01, 2013 8:04 am
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

Thanks for all the help so far Ken :-) I have a mixture of jpeg, mp3 and video in my medialist. The video displays nicely, right to the edges of the screen but when the mp3 plays, the tool bars at the bottom and top are visible (the file bar in the presentation window and the desktop toolbar at the...
by KenT
Thu Aug 01, 2013 7:18 am
Forum: Beginners
Topic: Controlling OXMPlayer from Python Script
Replies: 17
Views: 3008

Re: Controlling OXMPlayer from Python Script

Hi Ken, That has definitely improved things. Everything now happens as expected but there is a really long wait/latency for the software to react to motion. I have to wave my hands around for ages before i see the PIR being detected in debug. I have tested the PIR using a simple detection test scri...
by KenT
Wed Jul 31, 2013 8:17 pm
Forum: Beginners
Topic: Controlling OXMPlayer from Python Script
Replies: 17
Views: 3008

Re: Controlling OXMPlayer from Python Script

trevorjdaniel wrote:Hi Ken,

I am now running pipresents_next but have been unable to get it to what i want.
[snip]
Can you help at all?

Thanks
Trev
Add Motion to the 'Start Shows' field of the start show. Motion needs repeat to be singleshot, although interval might work.
by KenT
Wed Jul 31, 2013 6:07 am
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

>>>I've looked everywhere but I cant find the gpio.cfg file that comes with the tarball download. My mistake I was thinking of a later version of Pi Presents there isn't one in [pipresents] >>>>>>edit: I think I need to set the trigger to PIR don't I..... If that is what it says in the manual. Its d...
by KenT
Tue Jul 30, 2013 3:10 pm
Forum: Beginners
Topic: Controlling OXMPlayer from Python Script
Replies: 17
Views: 3008

Re: Controlling OXMPlayer from Python Script

Hi Ken, I was hoping I might be able to ask for a little bit of configuration help with pipresents if possible? I have spent all day trying to get pipresents to do what I want but just cannot seem to achieve it.. What I am trying to achieve.... I want to play video1.pm4 in a loop until the PIR dete...
by KenT
Tue Jul 30, 2013 6:53 am
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

First of all I'm really grateful for this excellent presentation software. Thanks for making it available to us to run on the pi :-) I got caught out by a couple of things between the manual and the files as downloaded/installed. First, the sample profiles, located in the PP_Home folder were all na...
by KenT
Tue Jul 30, 2013 6:30 am
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

Happily, i have Pipresents doing everything I want except for one thing. I'm attempting to use the pp_exhibit profile and the -g or --gpio function to kick off the presentation. here's my syntax, "sudo python /home/pi/pipresents/pipresents.py --home /home/pi --noblank --fullscreen bottom --profile ...
by KenT
Mon Jul 29, 2013 9:21 pm
Forum: Graphics, sound and multimedia
Topic: Push content to multiple Pi's
Replies: 3
Views: 883

Re: Push content to multiple Pi's

As Ghans suggests you could use the Liveshow in Pi Presents. There is a -l command line option to set the location of the directory containing the media and I see no reason why it should not be on a remote file server. I would be interested to know how you get on, I guess you will have to install so...
by KenT
Mon Jul 29, 2013 6:37 pm
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

Oh that the problem.I set the duration to 20 seconds. So if i set it to 0 ,how long will each picture last and is there a way to default secs but repeat itself(by editing the code)? :D If you set it to zero then the first slide will be displayed for ever. You set the duration in the liveshow profil...
by KenT
Sun Jul 28, 2013 8:21 pm
Forum: General discussion
Topic: Turned my mom's 10 year old CRT TV into a Smart TV
Replies: 5
Views: 2300

Re: Turned my mom's 10 year old CRT TV into a Smart TV

Do not open the back of a CRT TV unless you know precisely what you are doing. There are kilovolt voltages present which can kill you even when the tele is not switched on.
by KenT
Sun Jul 28, 2013 5:45 pm
Forum: Python
Topic: Strings, lists and tuples muddle!
Replies: 9
Views: 1694

Re: Strings, lists and tuples muddle!

.cfg files is another possibility. If the the flag names are unique each flag can become a section of the file which is basically a windows .ini file.

Use configparser to read/write it to//from a dictionary.

.cfg files are easier to edit by hand than .json but .json files preserve order of entries.
by KenT
Sun Jul 28, 2013 4:25 pm
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

Greetings, I love pipresents and have used the software in two different gallery installs (both are non for profit). I would like to thank you by way of donation and just want to make sure giving to the below museum is your preferred method of donation: https://www.facebook.com/MuseumOfTechnologyTh...
by KenT
Sun Jul 28, 2013 4:16 pm
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

Is it possible to run the liveshow on a loop? Currently everything works with image scaled correctly only left having to make the thing loop Not sure exactly what you mean but a liveshow will always loop around the tracks you have put in live_tracks. If not make sure that the duration field is not ...
by KenT
Fri Jul 26, 2013 5:27 pm
Forum: Beginners
Topic: Controlling OXMPlayer from Python Script
Replies: 17
Views: 3008

Re: Controlling OXMPlayer from Python Script

Yes you should be able to do all of this. Pi Presents (see sig) does something similar if you want a ready built solution written in Python. Otherwise some people including myself in pp_omxdriver use pyomxplayer to interface with omxplayer and send run time commands from python. https://github.com/j...
by KenT
Mon Jul 22, 2013 5:56 am
Forum: General discussion
Topic: Analog Audio Clicking
Replies: 3
Views: 910

Re: Analog Audio Clicking

This was fixed a few months ago. IIRC it was a firmware fix by Dom. I also think the firmware fix has now migrated (in Raspbian) from rpi-update to sudo apt-get upgrade.

there is still a click when the audio is started up but you should not get it between tracks.
by KenT
Thu Jul 18, 2013 5:43 am
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

I have a model B rev 2 Rpi running the standard wheezy install on a 4gb sd card. Followed the instructions in the readme.md file to install everything i was instructed to.. get to the part where I test the install of pipresents and i receive the following back: Traceback (most recent call last): Fi...
by KenT
Tue Jul 16, 2013 8:09 pm
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: fullscreen with black spaces

jipkai123 wrote:So i got everything working already,but the fullscreen.
It not the full screen not working but even after full screen it surrounded by black spaces.
It is because of the picture resolution i using is smaller than the monitor output resolution?
Yes very likely. Pi Presents does not scale the images.
by KenT
Sun Jul 14, 2013 4:40 pm
Forum: Graphics, sound and multimedia
Topic: Pi Presents: A display package for museums & visitor centres
Replies: 331
Views: 103653

Re: Pi Presents: A display package for museums & visitor cen

Is there any way to default my tracks(pictures) to have a duration of 20s instead? And about blackbox operations which medialist allow for instant start cause i using the default and it asking for start button change the duration field in the show change the trigger field to start. It sounds like y...
by KenT
Sat Jul 13, 2013 8:21 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [Solved] Increase GPIO cable length
Replies: 18
Views: 9571

Re: Increase GPIO cable length

Okay, so instead I do: GND -> long wire -> button -> long wire -> io 4 And the capacitor as a separate connection between the same two pins ? Of course I can use the resistors which are built into the pi. I will look up how to do that. Many thanks! Simplest possible solution. KenT, Is there any par...
by KenT
Sat Jul 13, 2013 3:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [Solved] Increase GPIO cable length
Replies: 18
Views: 9571

Re: Increase GPIO cable length

Also a 10 nF capacitor between the pin and the ground at the Pi end of the wire will reduce any RF noise. Now here you're speaking of ground again. Please clarify which pins need to be connected. So the next things I will do are: - get a long thin wire for the button - get a 10kOhm pull-up resistor...

Go to advanced search