Go to advanced search

by Sue B
Sat Apr 26, 2014 11:20 am
Forum: Troubleshooting
Topic: ? conflict with BT HomeHub3
Replies: 4
Views: 997

Re: ? conflict with BT HomeHub3

If it is any help, I have had trouble with my BT Hub recently. Nothing to do with my Pi as far as I know, but constant Resets did not seem to sort it. In the end I did what I should have done first. Turned it off at the mains, left it for a few minutes and switched it back on. Hey presto! No problem...
by Sue B
Mon Apr 21, 2014 3:39 pm
Forum: Beginners
Topic: mpg321 in python3
Replies: 12
Views: 7626

Re: mpg321 in python3

Thanks to PaddyG this is what I ended up with: from subprocess import Popen, PIPE, STDOUT def speak_now(item,v): pplay = Popen(['mpg321', '-R', '-F', 'anyword'], stdout=PIPE, stdin=PIPE, stderr=STDOUT) filename = (folder + item + ".mp3") if (os.path.isfile(filename)): bfile = filename.enco...
by Sue B
Mon Apr 21, 2014 3:28 pm
Forum: Beginners
Topic: mpg321 in python3
Replies: 12
Views: 7626

Re: mpg321 in python3

Thanks Paddy, I have programmed before - albeit 40 years ago! Fortran and Cobol mostly. The concepts stay, but the details are hard. And it was very different in the days of punched cards and tape with holes in it... I am showing my age now. Hope you enjoyed the Landlord. Am going to post my final c...
by Sue B
Mon Apr 21, 2014 3:18 pm
Forum: Python
Topic: basic code for a noob
Replies: 5
Views: 2968

Re: basic code for a noob

"Hello World" is a great start, but you will need to follow some more tutorials if you are going to progress. The syntax of any programming language has to be exact to work, and you will be very slow if you try to do it by trial and error. I suggest you Google <Python Tutorial>, or search ...
by Sue B
Sat Apr 19, 2014 4:30 pm
Forum: Beginners
Topic: Out of my depth!
Replies: 27
Views: 3654

Re: Out of my depth!

I too have been a complete beginner - got my Pi a couple of months ago. You tube and Adafruit are your friends. Reading stuff is one thing, but watching a tutorial is much much easier I find. Watch the basic Adafruit tutorials and any others you can find. For each task, pick the one you find simples...
by Sue B
Sat Apr 19, 2014 4:20 pm
Forum: Beginners
Topic: mpg321 in python3
Replies: 12
Views: 7626

Re: mpg321 in python3

Paddyg You are a genius. This is where I had gone wrong... I had written a small program to test the concept of using popen. All it did was play three mp3s and then stop. If I ran it 4/5 times it then crashed out with the broken pipe. You said it sounded like mpg321 had stopped working , and then I ...
by Sue B
Sat Apr 19, 2014 12:33 am
Forum: Beginners
Topic: mpg321 in python3
Replies: 12
Views: 7626

Re: mpg321 in python3

Paddyg, Here is my update as promised - both good and bad... Good news...I managed to get it working, using the method you suggested, but I had to convert the mp3 file using a b' in front to get it to work, so the whole thing was in a byte array. Bad news.... it was not very robust, after a few runs...
by Sue B
Fri Apr 18, 2014 6:00 pm
Forum: Beginners
Topic: mpg321 in python3
Replies: 12
Views: 7626

Re: mpg321 in python3

Douglas6, Thanks for the suggestion - I will try MPD if I can't get MPG321 to work. But I find using Linux from the command line is the easy peasy bit - my problem seems to be getting them to work cleanly in Python :-( I am afraid the one button is the only way I can go - my sister has very limited ...
by Sue B
Fri Apr 18, 2014 5:50 pm
Forum: Beginners
Topic: mpg321 in python3
Replies: 12
Views: 7626

Re: mpg321 in python3

Paddyg, Thanks for that, I had looked at the thread you suggested, before posting, and that helped a lot, but had not completely solved the issue. I will try your suggestion tonight and see whether I can get it to work. I am presuming that the volume can be controlled using the code you posted on th...
by Sue B
Thu Apr 17, 2014 10:25 pm
Forum: Beginners
Topic: mpg321 in python3
Replies: 12
Views: 7626

Re: mpg321 in python3

Thanks for that - I did consider it, but given the limited number of phrases needed, a text to speech route was not necessary and we preferred more natural speech. We may yet have to go that way, but I am hoping to avoid it. Also, my sister likes to listen to podcasts and I hoping to add these to th...
by Sue B
Thu Apr 17, 2014 12:13 am
Forum: Beginners
Topic: mpg321 in python3
Replies: 12
Views: 7626

mpg321 in python3

Hello, and thank you for all the help and tips I have found so far by browsing the forum! (I have been through a very steep learning curve in the last 2 months) Now I have a bit of a sticking point, and I am struggling to make sense of the various threads and getting nowhere .... I am trying to play...
by Sue B
Mon Apr 07, 2014 1:17 pm
Forum: General discussion
Topic: HiPi
Replies: 2
Views: 687

Re: HiPi

Hi As a complete noob myself a few weeks ago I found these really helpful: - Adafruit tutorial 4 - The Adafruit series of tutorials are really good. https://learn.adafruit.com/category/learn-raspberry-pi - Raspberry Pi - GPIO & Python - Raspberry Pi for beginners (on youtube) https://www.youtube...
by Sue B
Fri Apr 04, 2014 5:23 pm
Forum: General discussion
Topic: One button to power them all
Replies: 15
Views: 2587

Re: One button to power them all

I used this excellent tutorial from Raspberry Pi Spy ...
http://www.raspberrypi-spy.co.uk/2013/0 ... sing-cron/

It worked really well.

Don't forget that you will need to have some way to shutdown - but that is a different question....

Sue
by Sue B
Sat Mar 22, 2014 12:48 am
Forum: General discussion
Topic: Docking Power Bank to use with Pi question.
Replies: 1
Views: 642

Re: Docking Power Bank to use with Pi question.

I spent a bit of time researching the options for a unit that will provide seamless power, and have ordered a UPiS from PiModules. I am hoping it will do exactly what you describe. So yes it is possible. Most standard battery units for charging mobiles etc will not recharge and provide power at the ...
by Sue B
Sat Mar 22, 2014 12:32 am
Forum: General discussion
Topic: Separate Hostnames for LAN and Wifi
Replies: 6
Views: 3374

Re: Separate Hostnames for LAN and Wifi

Not quite sure what you are trying to do here, but I use WiFi at home, but attach the Pi to a laptop via a network cable when away from home. I have set the Pi up with a script that checks whether it can find my WiFi when it boots up and if not it sets a fixed IP address so that I can easily use VNC...

Go to advanced search