Page 2 of 2

Re: Radio?Sure!

Posted: Sun Jun 19, 2011 10:43 am
by piert
That is working very nicely, thanks Pako!

Now...... I use your Random station selection a lot and I would like it if the website would show the next playing station's name instead of the only the currently playing song.
Is it possible to show only the station's name (retreived from the radio station's feed or from the Preset list in RadioSure)?

What variable names should I be using?

Re: Radio?Sure!

Posted: Sun Jun 19, 2011 11:30 am
by Pako
Currently it is a problem.
If you select Always show station name in the window title, you always get the name of the station, but never the name of the song.
If you do not select this option, you get the title of the station only for those stations that do not broadcast the titles of songs.
I will try to create a new action "Get title stations." But it's a bit of a problem.
The only viable option is to used periodically repeated short menu display "Favorites".
I do not know if it's not causing too distracting.

Pako

Re: Radio?Sure!

Posted: Sun Jun 19, 2011 7:15 pm
by piert
Pako wrote:The only viable option is to used periodically repeated short menu display "Favorites".
When using only preset favorite radiostations to choose from, we do not need to get the station name from the URL stream, I think?
I would be perfectly happy when I would be able to retrieve from your plugin the chosen preset after using the option "choose random favorite".
It would then be a matter of setting another variable and adding that to the webserver's page, am I right?
If you agree, then what variable could be used to find the randomly chosen favorite?

Another issue I am having is that I prefer to use the option, 'use only single instance' of RadioSure. This makes it easier to control from Eventghost, without actually being able to see the computer screen. I also am testing to use the scheduler to record several radio shows during the week.
This creates a problem when I try to start RadioSure during a scheduled recording, because only one instance is allowed. Since I use my PC 'headless', I do not see the warning message: "you are currently recording - do you want to stop recording?".
I do not have a solution in mind, but maybe it would be possible that during a (scheduled) recording, the option 'use only one instance of RadioSure' would be UNticked and then would be automatically ticked again after the recording was finished?

Anyway, these are all only minor 'issues': the plugin is working very nicely and I am enjoying internet radio more than ever!

Re: Radio?Sure!

Posted: Thu Jun 23, 2011 2:47 pm
by zu-mich
Hi Pako,
I'm using this plugin already for a long time ... Great work !!!

Now I thought it might be time for an update. So I changed RadioSure from 2.1.969 to 2.2.1022 and EventGhost from 0.3.7.r1462 to 0.4.1.r1527. After that I had to remove the plugin from my settings because of the incompatible structure of the menu. However, after reinstallation of the plugin, new configuration and implemantation of my extended settings to select favorite 1-30 by key into the according .xml it worked again.
Only thing what is strange : On every initial start of EventGhost the program RadioSure will start too, and even more strange its "audio mute". I didn't find any parameter to avoid this behavior. Any clue?

Re: Radio?Sure!

Posted: Fri Jun 24, 2011 8:11 am
by Pako
Yes, I know about it. You can see it here.
The reason why RS is running clear to me. When you start the plugin, it should find some actual information about RS.
Well it has to work so that if when you started plugin the RS is running, it does nothing visible.
Otherwise, the RS for a short time to run (minimalized and muted) and if it is found necessary information, in turn closes.
I'll work on it.

Pako

Re: Radio?Sure!

Posted: Fri Jun 24, 2011 1:34 pm
by zu-mich
Thanks for the quick reply.
Another thing what popup while playing around. Running "Show Menu" will also open the menu like "right click" into RS-window at current position of mouse. Did I configure something wrong?

Re: Radio?Sure!

Posted: Fri Jun 24, 2011 4:05 pm
by Pako
zu-mich wrote:Running "Show Menu" will also open the menu like "right click" into RS-window at current position of mouse. Did I configure something wrong?
Yes, unfortunately it is so.
But on my PC, this menu appears on such a short period of time, it is almost invisible.
I not discovered any other way to retrieve the items of RS menu.
I asked the author RS program (March 2010) about any better interface for remote control,
but he never responded my request.
If you know of any better way, I'll be happy.
Otherwise it will remain so.
If it bothers you, so you do not use this action.

Pako

Re: Radio?Sure!

Posted: Mon Jun 27, 2011 3:30 pm
by Pako
zu-mich wrote:Only thing what is strange : On every initial start of EventGhost the program RadioSure will start too, and even more strange its "audio mute". I didn't find any parameter to avoid this behavior. Any clue?
Fixed.
The cause was incorrectly set timeout.
Corrected plugin is part of the installer file since version r1534.

Pako

Re: Radio?Sure!

Posted: Tue Jun 28, 2011 8:29 am
by Pako
piert wrote:When using only preset favorite radiostations to choose from, we do not need to get the station name from the URL stream, I think?
I would be perfectly happy when I would be able to retrieve from your plugin the chosen preset after using the option "choose random favorite".
It would then be a matter of setting another variable and adding that to the webserver's page, am I right?
If you agree, then what variable could be used to find the randomly chosen favorite?
In the new version is an improved action Start observation of titlebar. Is now called Start periodical observation and that's because it is also possible to monitor change (name) station.
Yet it has one annoying feature: Changing the station is displayed with a delay of about 15 seconds. This is because the station name is obtained from the file RadioSure.xml. Also entry into the RadiSure.xml is delayed and can therefore shorten it only the author of Radio? Sure!.
However, if you change the station only using EventGhost, you do not need to use this feature (in the attached picture the appropriate macro is disabled).
RadioSure-Webserver2.gif
Webpage:

Code: Select all

<html>
  <head>
    <link rel="shortcut icon" href="favicon.ico">
    <title>Radio?Sure! - Currently playing track/station</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="refresh" content="5"> 
  </head>
  <body>
    <p>
       Currently playing station:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b><font color="green"><span style="font-size: 200%">{{station}}</span></b></font>
    </p>
    <p>
       Currently playing track (station): <b><font color="red"><span style="font-size: 150%">{{titlebar}}</span></b></font>
    </p>
  </body>
</html>
Pako

Re: Radio?Sure!

Posted: Tue Jun 28, 2011 11:23 pm
by piert
Pako, this is great news. Thank you very much for taking care of this request.

I am sorry I have no time until the weekend before I can give it a good test.
I will let you know how it goes.

Regards.
Perry

Re: Radio?Sure!

Posted: Sat Jul 02, 2011 2:14 pm
by piert
Pako,

First results are encouraging: good work again!
It is nice to be able to choose a random station from the webserver and then have the website show the currently playing song as well as the station.

Minor glitch is the fact that the "Get random station" info shows a number that starts from 0 instead of 1. This means favorite numbering is off by one number.
I have 'repaired' it myself by adding +1 to the parsed result.

One other thing I have changed myself is I have modified the "random favorite list" to start at number 5 and then go up.
This is because on the first few numbers I have the radiostations that only air one or two programs that I find interesting (mainly talk programs); the rest of the day the music that these stations play just irritates me. I have done this by changing the .py file as follows:

class RandomFav(eg.ActionBase):

def __call__(self):
hwnd = HandleRS()
if hwnd:
self.plugin.RefreshVariables()
ix = self.plugin.GetMenuItem(hwnd[0], 7)[0]
lng = len(self.plugin.Favorites)
if lng > 4:
newIx = randrange(5, lng, 1)
while newIx == ix:
newIx = randrange(5, lng, 1)
SendMessage(hwnd[0], WM_COMMAND, 4102+newIx, 0)
return (str(newIx+1)+": "+self.plugin.Favorites[newIx][1])

Also it would be easier for me if all newly added favorite stations would be added 'to the bottom of the favorite list' instead of at the top (which is how it is currently done). In the current situation I have to re-order the favorite list frequently, as I want to maintain a constant order at least for the first 10-15 stations.
It is not a big deal, as you made re-ordering quite easy within your plugin, but it would be a 'nice to have'.

Thanks again Pako!
Best regards,
Perry

Re: Radio?Sure!

Posted: Thu Feb 04, 2016 12:54 am
by loveleejohn
Thanks a million for this plugin Pako! It looks like a lot of hard work! We appreciate it very much! :)

Re: Radio?Sure!

Posted: Thu Mar 30, 2017 11:09 pm
by loveleejohn
Is this plugin still active? It suddenly stopped working on my computer today with some errors that I do not understand. I am running the most recent stable version of Eventghost on a WIndows 10 machine. I have attached a picture of the error that I am seeing.
Capture.PNG

Re: Radio?Sure!

Posted: Fri Mar 31, 2017 1:38 am
by loveleejohn
I deleted/uninstalled Radiosure from it's path in my user folder and reinstalled the program in the normal Program Files folder and then deleted the plugin and reinstalled it and it is working fine again. I wonder what went wrong...