Go to advanced search

by elParaguayo
Sat Oct 08, 2016 11:08 pm
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

I suspect the pairing will be the hardest - lots of research to be done on that. Bluetooth pairing using the D-Bus Agent1 interface is not difficult at all. There's code in my original BluePlayer post (https://github.com/Douglas6/blueplayer) that was just a stripped-down version of the BlueZ simple...
by elParaguayo
Sat Oct 08, 2016 9:23 am
Forum: Python
Topic: motion triggered video problem
Replies: 2
Views: 798

Re: motion triggered video problem

Dougie is right, please use code tags.

From the look of that line, you are missing a colon at the end of the if statement.
by elParaguayo
Sat Oct 08, 2016 8:30 am
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

Work permitting, I should have Airplay metadata working tomorrow. I've got it working in a standalone script so I just need to drop it into the radio code. <START OF METADATA STREAM> The Race For Space Public Service Broadcasting Go! <END OF STREAM> Here we go: http://i66.tinypic.com/k4ytz6.jpg Cod...
by elParaguayo
Fri Oct 07, 2016 11:34 pm
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

Part of my research was going to be looking through your code!

I may well have some questions for you later.
by elParaguayo
Fri Oct 07, 2016 11:07 pm
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

Work permitting, I should have Airplay metadata working tomorrow.

I've got it working in a standalone script so I just need to drop it into the radio code.

Code: Select all

<START OF METADATA STREAM>
The Race For Space
Public Service Broadcasting
Go!
<END OF STREAM>
by elParaguayo
Fri Oct 07, 2016 11:02 am
Forum: Graphics, sound and multimedia
Topic: "Bakelite" Pi Music Player with Touch Screen
Replies: 2
Views: 2661

Re: "Bakelite" Pi Music Player with Touch Screen

Very nice. That is very impressive.
by elParaguayo
Fri Oct 07, 2016 9:26 am
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

If it can be done via command line calls then that should be ok - I'm fairly comfortable handling those in python. However, my experience of bluetoothctl is that it starts an interactive session (which is still doable) so that may make it harder. However, if the correct way is to do it via dbus inte...
by elParaguayo
Fri Oct 07, 2016 8:46 am
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

I'm more interested in getting the Bluetooth pairing working.

Sounds like my To Do list is:
  1. Airplay (text) metadata
  2. Bluetooth pairing
  3. Airplay artwork
  4. Bluetooth artwork
I suspect the pairing will be the hardest - lots of research to be done on that.

I'm excited, I love challenges like this!
by elParaguayo
Fri Oct 07, 2016 8:35 am
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

Hoping to have a crack at the Airplay metadata this weekend. I've got a pretty good idea as to how to do it. That would be great - it looks a very complex subject. Also, although not relevant for the 20 x 4 display, album art would also be useful, and for Bluetooth......I'll duck now :lol: Texy It ...
by elParaguayo
Fri Oct 07, 2016 7:44 am
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

Hoping to have a crack at the Airplay metadata this weekend. I've got a pretty good idea as to how to do it.
by elParaguayo
Fri Oct 07, 2016 7:43 am
Forum: Graphics, sound and multimedia
Topic: MPC hangs after selecting the same station
Replies: 15
Views: 2531

Re: MPC hangs after selecting the same station

Yes. Can try that tonight for you.
by elParaguayo
Fri Oct 07, 2016 7:39 am
Forum: Other projects
Topic: RPi Information Screen for Official Raspberry Pi Display
Replies: 165
Views: 81772

Re: RPi Information Screen for Official Raspberry Pi Display

It depends on the resolution of your screen but, assuming it's smaller than the official display, this code wont work without some modifications. You'd need to edit the layout of each screen. Alternatively, you could use my older code which was designed for smaller displays but it's not as slick. Ju...
by elParaguayo
Thu Oct 06, 2016 9:40 pm
Forum: Graphics, sound and multimedia
Topic: MPC hangs after selecting the same station
Replies: 15
Views: 2531

Re: MPC hangs after selecting the same station

No, I said I changed it to use ALSA rather than pulseaudio.

The reason I thought you may have a different issue is because I didn't get that error message.
by elParaguayo
Thu Oct 06, 2016 5:21 pm
Forum: Graphics, sound and multimedia
Topic: MPC hangs after selecting the same station
Replies: 15
Views: 2531

Re: MPC hangs after selecting the same station

I'm not convinced this is the same issue. What are you trying to play? For what it's worth, here's my mpd.conf: # An example configuration file for MPD. # Read the user manual for documentation: http://www.musicpd.org/doc/user/ # or /usr/share/doc/mpd/user-manual.html # Files and directories #######...
by elParaguayo
Thu Oct 06, 2016 1:46 pm
Forum: Graphics, sound and multimedia
Topic: MPC hangs after selecting the same station
Replies: 15
Views: 2531

Re: MPC hangs after selecting the same station

I edited /etc/mpd.conf and searched for the audio_output section and made sure the ALSA device was uncommented and the pulseaudio one was commented and then restarted mpd.
by elParaguayo
Thu Oct 06, 2016 11:20 am
Forum: Graphics, sound and multimedia
Topic: MPC hangs after selecting the same station
Replies: 15
Views: 2531

Re: MPC hangs after selecting the same station

Do you get an "error: timeout" message if you leave it long enough?

I've been having issues with mpc too. I've tried configuring mpd to use ALSA rather the pulseaudio and it seems better so far but I haven't done any extensive testing so I'm reluctant to say it's "fixed" for me.
by elParaguayo
Wed Oct 05, 2016 6:50 pm
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

Pretty sure it's not my code. From the command line I can jump around the playlist but it sometimes stops and gives me an "error: timeout" message and I'm the unable to send any further commands via mpc. Some googling to be done methinks... EDIT: Seems to be behaving better if I use ALSA as the audi...
by elParaguayo
Wed Oct 05, 2016 11:54 am
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

I certainly thought about having it go straight into the first mode, but I don't think I ever actually implemented it. As for the radio, mpc is giving a return code of 1 which is causing the crash - unhelpfully there doesn't seem to be any error message. I may be able to stop the crash by just igno...
by elParaguayo
Wed Oct 05, 2016 11:49 am
Forum: Python
Topic: Is it ok for an 11-year-old kid to ask questions here?
Replies: 39
Views: 6438

Re: Is it ok for an 11-year-old kid to ask questions here?

Nonsense, the young whippersnapper should respect his elders!

On a serious note, this forum is fantastic for helping people of all abilities with everyone treated equally.

As long as he's not asking for anyone to do his homework then he'll get lots of support and encouragement here.
by elParaguayo
Wed Oct 05, 2016 7:08 am
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

I never want to sing karaoke. Ever.
by elParaguayo
Wed Oct 05, 2016 6:17 am
Forum: Python
Topic: python script stops responding after a month or two
Replies: 10
Views: 3237

Re: python script stops responding after a month or two

The advantage of using with blocks is that the exit code runs even when there has been an error. This is useful if you always need to run some form of tidy-up code eg to close an open file or database connection. However, the script will still stop on the error so you'd still need a try... except......
by elParaguayo
Tue Oct 04, 2016 8:53 pm
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

I haven't tried USB audio but have been tempted as there is some static on the speaker. Don't know if that's the amp or the pi.

Also curious as to whether this would make any difference.
by elParaguayo
Tue Oct 04, 2016 7:58 pm
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

I certainly thought about having it go straight into the first mode, but I don't think I ever actually implemented it. As for the radio, mpc is giving a return code of 1 which is causing the crash - unhelpfully there doesn't seem to be any error message. I may be able to stop the crash by just ignor...
by elParaguayo
Tue Oct 04, 2016 6:54 pm
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

So you've found two of the issues that I've got! Airplay metadata - it is possible but I've not tried to implement it yet. The shairport service can send metadata to a pipe which the radio could read. There's some info here: https://github.com/mikebrady/shairport-sync-metadata-reader Radio - I've no...
by elParaguayo
Tue Oct 04, 2016 4:30 pm
Forum: Graphics, sound and multimedia
Topic: (Yet another) Vintage Pi-Radio
Replies: 109
Views: 22238

Re: (Yet another) Vintage Pi-Radio

Thank you for publishing the code. I found out that squeezelite is no longer found at googlecode. Could the binary be hosted at PiRadio? (I did find a file with the same name at https://github.com/Hypfer/squeezelite-downloads/blob/master/squeezelite-armv6hf ) That seems to be a clone of the google ...

Go to advanced search