Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Screamer Radio

Questions and comments specific to a particular plugin should go here.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Screamer Radio

Post by Pako »

This is a bug (non - ASCII filepath). Thank you for the report.
Please download the corrected version.
Pako
mcdanne82
Posts: 5
Joined: Sun Jul 18, 2010 4:50 pm

Re: Screamer Radio

Post by mcdanne82 »

Hi
It still seems that some thing is wrong.
I downloaded the new version but eventghost complained on the path to the langue file so I changed it in the XML to "C:\Screamer\Screamer Radio\languages\......." insted of only "languages\.." Now I can start screamer från EG but when I execute the command for play I get a new error

Code: Select all

      Fel i åtgärd: "Screamer Radio: Play"
      Traceback (most recent call last) (1462):
        File "C:\Program\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
        File "C:\Program\EventGhost\plugins\ScreamerRadio\__init__.py", line 484, in __call__
        File "C:\Program\EventGhost\eg\Classes\WindowMatcher.py", line 192, in FindMatch
        File "C:\Program\EventGhost\eg\Classes\WindowMatcher.py", line 167, in Find
      OverflowError: long int too large to convert to int
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Screamer Radio

Post by Pako »

That's odd.
Please try several times, including a new startup ScreamerRadio.
Error occurs every time you try?
Please attach your file "screamer.xml".
Pako
mcdanne82
Posts: 5
Joined: Sun Jul 18, 2010 4:50 pm

Re: Screamer Radio

Post by mcdanne82 »

I have tried this many times, with restarts of EG and screamer but I get the same error.
Have tried to install screamer to a new path but I get same error
Attachments
screamer.zip
(1.29 KiB) Downloaded 282 times
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Screamer Radio

Post by Pako »

So it will probably be difficult.
According to XML, it seems that you have ScreamerRadio installed in C:\Screamer\Screamer Radio.
I installed the SR into the same folder and I used your xml file.
Then I started SR and tested the plugin. It works without problems.
Only when I will able to induce your problem on my computer, then I'll hopefully be able to fix the "bug" (really just a plugin causing the problem?).
What is your operating system?
Do you have a chance to try it on another computer?
Have you tried the program Radio?Sure! ?
Pako
slikus
Posts: 1
Joined: Sat Mar 19, 2011 5:30 pm

Re: Screamer Radio

Post by slikus »

Hello, I would like to display an picture of the radio broadcasting, when changing favorite, I'd also change the picture, I tried but without success, can you retrieve the name of the radio in an event "eventghost " via Start_SR_Event? cordially
Juris
Posts: 4
Joined: Thu Sep 11, 2014 10:43 am

Re: Screamer Radio

Post by Juris »

Hello, I admit I am not very experienced here yet, can You please explain how exactly to do this:
" It is therefore very easy using the "Show OSD" to display the name of the song or station played. " ?
Thank You in advance!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Screamer Radio

Post by Pako »

Here is an example:
SRadio.png
SRadio.png (6.32 KiB) Viewed 4912 times
Juris
Posts: 4
Joined: Thu Sep 11, 2014 10:43 am

Re: Screamer Radio

Post by Juris »

Thanks for help (i must say, I already figured that out myself). I wonder is there some way to have OSD activated every time song changes on radio? Screamer is doing something that with taskbar pop-up baloon.
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Screamer Radio

Post by Pako »

Juris wrote:I wonder is there some way to have OSD activated every time song changes on radio?
It is possible, of course.
But it is necessary to use polling, because ScreamerRadio does not provide events.
Here's one possible solution:
SRadioPolling.png
SRadioPolling.png (6.6 KiB) Viewed 4902 times
Content Start polling script:

Code: Select all

period = 2
eg.globals.SRadioTitle = None
def polling():
    title = eg.plugins.ScreamerRadio.GetPlayingTitle()
    if title != eg.globals.SRadioTitle:
        eg.globals.SRadioTitle = title
        if title != 'Screamer Radio v0.4.4':
            eg.TriggerEvent("Title", prefix="ScreamerRadio", payload=title)
    eg.globals.SRadioPolling = eg.scheduler.AddTask(period, polling)
polling()
Content Stop polling script:

Code: Select all

if "SRadioPolling" in eg.globals.__dict__:
    try:
        eg.scheduler.CancelTask(eg.globals.SRadioPolling)
    except:
        pass
Start polling script you can start (for example) using the event Main.OnInit,
or together with the launch ScreamerRadio.

Pako
Juris
Posts: 4
Joined: Thu Sep 11, 2014 10:43 am

Re: Screamer Radio

Post by Juris »

Thank You, Pako, for very good informative answers! Much appreciated.
Post Reply