DogRadio and YRadio

Browsers, email, chat, etc.
Message
Author
User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

DogRadio and YRadio

#1 Post by fredx181 »

*** DogRadio (updated to v 0.0.9) ***
===========================================================
EDIT 2019-01-04 Updated to v 0.0.9, download links below replaced, see for changes here:
http://murga-linux.com/puppy/viewtopic. ... 12#1014512
===========================================================
See for YRadio, similar radio program, but with list-view only From Here On
Update 2019-01-03, see here:
http://murga-linux.com/puppy/viewtopic. ... 12#1014512

DogRadio was earlier hosted here (version 0.0.6 and later 0.0.7):
http://www.murga-linux.com/puppy/viewtopic.php?t=105384
I guess I was a bit shy at that time to start a thread about it myself :wink:
Anyway, thanks Stemsee :)

See important info for when upgrading from earlier version at second post

Started DogRadio already a few years ago, info at that time:
http://www.murga-linux.com/puppy/viewto ... 507#854507

Requirements, depends on installed:
- mplayer
- yad (preferably compiled with gtk2, if compiled with gtk3, the theme settings won't work, e.g. for dark theme)
- conky (probably can be installed from PPM)
- streamripper (optional, if not installed, stream recording won't work)
- gtk2-engines-murrine (optional, for much better looking theme)
EDIT: Also required is package "coreutils" More info: Here EDIT: Not anymore for v0.0.9-1

Changes in v 0.0.8
- Now choice for search by 'Name' or 'Name and Description' (dropdown box).
- Now search is done only from main database file: playlist.RadioSure (previously search was done from all category playlists, which might not be all fully updated)
- Updated launchers on main GUI that (previously) failed to connect.
- Updated all included category playlists, e.g. Rock, Latin, Jazz, etc...
- Fixed bug when 'Save' search results and then adding item(s) to main GUI (previously weird thing happened, a "0" item and category-name (e.g. Rock) item was added (not intended) to main GUI)
- Database updated (playlist.RadioSure).
- Some other small changes.

Downloads: (updated 2019-01-04, doesn't require "coreutils")
Pet package:
https://dl.dropboxusercontent.com/s/dju ... l.pet?dl=1
Deb package:
https://fredx181.github.io/StretchDog/i ... 1_i386.deb

Enjoy !

Fred
Attachments
dogradio_maximized.jpg
Maximized, conky ticker right-bottom
(42.95 KiB) Downloaded 1856 times
Last edited by fredx181 on Fri 04 Jan 2019, 11:25, edited 11 times in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#2 Post by fredx181 »

Important note for when upgrading from earlier version:

A window will appear at first run v0.0.8, see below pic.
When much editing has been done at the main GUI launchers:
Backup first the (custom made) *.desktop files in ~/.dogradio/data.
Then apply the updates (click 'Yes')
After that you can replace the *.desktop launchers in ~/.dogradio/data with your custom made from the backup.
And restart DogRadio

When not applying the updates (clicking 'No') you MUST update the index (playlist.RadioSure)
That's because it should be (re)generated in a different way to work properly with new search options (with the choice to search for 'Name and Description').
Or copy /usr/local/.dogradio/playlist/playlist.RadioSure to ~/.dogradio/playlist/ (replace)

Code: Select all

cp -af /usr/local/.dogradio/playlist/playlist.RadioSure ~/.dogradio/playlist/
Fred
Attachments
first-time-run-0.0.8.png
Upgrade from earlier version
(37.74 KiB) Downloaded 1909 times

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#3 Post by fredx181 »

Similar radio player, but with list-view only (and less complicated/advanced), here:
EDIT: BUG fixed see EDIT:
http://murga-linux.com/puppy/viewtopic. ... 319#985319

Fred

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#4 Post by fredx181 »

*** YRadio v0.0.3 ***

See general info (first version) here:
http://murga-linux.com/puppy/viewtopic. ... 319#985319

Depends on yad (v 0.35 or higher) and mplayer
EDIT: I tested on some Puppies and found that package "coreutils" is also required.
Install from PPM (even when it says "Already Installed", just re-install then)
To test if it's required do in terminal (if it shows that it's a symlink to busybox it depends on it)):

Code: Select all

ls -l /usr/bin/tr
Changes and improvements:
- Ability to remove from Favorites now (besides adding)
- "Now Playing" info is part of the main GUI now
- Ability to rip the stream (requires "streamripper" installed)
- Stop/Resume button (will resume last played radio stream, if stopped)

Compared to DogRadio, this program is much more simple (list-view only) but easier to use IMHO.

Fred
Attachments
yradio_0.0.3.tar.gz
Extract somewhere and run "yradio" inside folder "yradio_0.0.3"
(253.34 KiB) Downloaded 428 times
yradio.png
(140.7 KiB) Downloaded 1702 times
Last edited by fredx181 on Thu 03 Jan 2019, 16:28, edited 1 time in total.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#5 Post by fredx181 »

*** YRadio v0.0.4 ***

Changes (nothing major):
- Bottom buttons have icon only now (and added "Stop" button), looks nicer IMHO :-)
(therefore there's "icons" directory included now)
- Last station played is remembered after closing YRadio, so can be resumed with the "Pause or play" button
(when running YRadio again)

EDIT: Also on github now, will do further updates (if there come any) there:
https://github.com/fredx181/yradio
Just: Download ZIP
Extract and run 'yradio' from yradio-master directory.

Fred
Attachments
yradio_0.0.4.tar.gz
Extract somewhere and run "yradio" inside folder "yradio_0.0.4"
(235.26 KiB) Downloaded 395 times
yradio_0.0.4.png
Yradio 0.0.4
(160.54 KiB) Downloaded 1579 times

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#6 Post by fredx181 »

Added volume control in new version 0.0.5, thanks misko_2083 !
https://github.com/fredx181/yradio/archive/master.zip
EDIT: Recommended to have xdotool installed (for correct positioning of volume control popup)

Image

Fred

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#7 Post by Geoffrey »

Fred, can't getcurpos be used instead of xdotool.

Code: Select all

getcurpos | tr " " "+"
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

wiak
Posts: 2040
Joined: Tue 11 Dec 2007, 05:12
Location: not Bulgaria

#8 Post by wiak »

Geoffrey wrote:Fred, can't getcurpos be used instead of xdotool.

Code: Select all

getcurpos | tr " " "+"
I've never heard of that tool before (sorry for my ignorance). There doesn't seem to be a Debian package for it. Only thing I could find when checking about it, was a reference on bbs.archlinux.comArch but to a dead link. Also foundl C code here:

http://bashscripts.org/forum/viewtopic. ... 3be3#p5361

and here:

https://github.com/Conservatory/quark/b ... etcurpos.c

Or is there a more well-known getcurpos program?

xdotool can do a lot of things though, so is often useful anyway.

EDIT: I see now that getcurpos is indeed a small C program that has been discussed and used here before and in all Pups since 4.3 (I don't remember a Puppy 4.3...! EDIT2: sorry again, my brain is currently 'dead' been doing too much C-related compiling work for Lua IUP - I used Pup 4.3.1 for years...sigh):

http://www.murga-linux.com/puppy/viewto ... 497#928352

http://www.murga-linux.com/puppy/viewto ... 195#327431

wiak

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#9 Post by Geoffrey »

wiak, I'm pretty sure that getcurpos is in most modern pups by default, or at lest in the PPM.
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#10 Post by fredx181 »

Thanks Geoffrey, I'll keep that in mind, didn't know about existence of getcurpos.

Fred

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#11 Post by fredx181 »

*** YRadio v0.0.6 ***, added notification icon, shows pupup on song title change and has right-click menu (controls, e.g. Stop, Pause, Stream info))
https://github.com/fredx181/yradio

Download:
https://github.com/fredx181/yradio/archive/master.zip
EDIT 2018-04-13, made small change to the yradio script, previously when exiting from tray there was a yad process ID still active, fixed now.

Image

Fred

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#12 Post by darry19662018 »

Added a Puppy Linux wikka page here:
http://puppylinux.org/wikka/Dogradio

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#13 Post by fredx181 »

darry19662018 wrote:Added a Puppy Linux wikka page here:
http://puppylinux.org/wikka/Dogradio
Thanks darry !
One thing, conky is also a dependency besides mplayer and yad.
Wrote also in the tazpup thread about it (and about radiosure index):
Note that conky is a dependency of v0.0.8, without it, dogradio doesn't run.
(should show a message about conky required before exiting by xmessage, but xmessage isn't installed in tazpup, so it exits silently).
Also, the radiosure server is currently down (hopefully temporarily), so "Update Index" won't work (to get the database required for the search option).
Fred

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#14 Post by darry19662018 »

Ok thanks Fred been playing with Yradio as well I'll add xmessage as well to my Tazpup.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#15 Post by fredx181 »

Here are database index files for dogradio and yradio, to be able to use the search option it's required.
(not really updated (from last month or so), but for the time being, while the radiosure server is down (as is at this date), it's probably better than nothing)

For Dogradio (v0.0.8 only) (extract in ~/.dogradio/playlist/ )
https://dl.dropboxusercontent.com/s/7ws ... ar.gz?dl=1
For Yradio (extract in ~/.yradio/playlist/ )
https://dl.dropboxusercontent.com/s/008 ... ar.gz?dl=1

EDIT 2018-05-29 The radiosure server is online again, so "Update Index" works as before.
(just in case radiosure goes down again, I kept the links above)

Fred
Last edited by fredx181 on Tue 29 May 2018, 12:21, edited 1 time in total.

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#16 Post by darry19662018 »

Thanks Fred by the way Tazpup has gxmessage in its package manager repo not installed by default

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#17 Post by fredx181 »

For Info: The radiosure server is online again, so "Update Index" works as it did before.

Fred

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#18 Post by darry19662018 »

Hi Fred,

I have found in the latest Tazpups namely Alpha12 that I can't connect to radio stations including NZ Concert so I have conkey, mplayer and yad installed is there something missing? I have gxmessage.

User avatar
fredx181
Posts: 4448
Joined: Wed 11 Dec 2013, 12:37
Location: holland

#19 Post by fredx181 »

darry19662018 wrote:Hi Fred,

I have found in the latest Tazpups namely Alpha12 that I can't connect to radio stations including NZ Concert so I have conkey, mplayer and yad installed is there something missing? I have gxmessage.
Hi Darry, conky,mplayer and yad are indeed the dependencies for dogradio, does mplayer work on itself when you play for example a video ?
Btw, about xmessage, it's not really a dependency, it only for giving error message if one of the above mentioned deps is not installed.

Fred

darry19662018
Posts: 721
Joined: Sat 31 Mar 2018, 08:01
Location: Rakaia
Contact:

#20 Post by darry19662018 »

Thanks for the info Fred - yes mplayer works in its own right in Tazpup it is when mplayer has to play the streams from yradio and dogradio that I get the stream error message. I know that this wasn't happening in Alpha10 but I also know that from version 11 things like coreutils etc were taken from slitaz instead of Puppy so this problem started in the Alpha 11 release.of Tazpup.

Post Reply