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.
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.
control multiple instances of softwares?
control multiple instances of softwares?
Hello!
I've recently come across EventGhost (still need to configure it, currently just experimenting how I will do it), but was thinking of using it as the heart of a multi room system. My idea would be to use 2 audio outputs on a PC, for room 1 and room 2 (with more soundcards, even more is possible).
EventGhost could then be used for the (centralized) control of the softwares that are playing back the audio to room 1 and the audio to room 2. Ideally, both rooms would use the same software, which means running two instances of the same software. For this, I was thinking of using portable versions of the playback software, installed to different locations on the disk in order to be able to have different configurations: play back different things at the same time, to different soundcards. For internet radio both "RadioSure" and "Screamer Radio" allow a portable installation, the setting of an audio output device, multiple instances and have an EventGhost plugin.
But can EventGhost distinguish multiple instances of the same software (to send events to them individually)?
But if EventGhost cannot distinguish, I will have to change my plans (ie use one software for room 1, use a different software for room 2, or some other workaround).
Thanks!
J├Ârg
I've recently come across EventGhost (still need to configure it, currently just experimenting how I will do it), but was thinking of using it as the heart of a multi room system. My idea would be to use 2 audio outputs on a PC, for room 1 and room 2 (with more soundcards, even more is possible).
EventGhost could then be used for the (centralized) control of the softwares that are playing back the audio to room 1 and the audio to room 2. Ideally, both rooms would use the same software, which means running two instances of the same software. For this, I was thinking of using portable versions of the playback software, installed to different locations on the disk in order to be able to have different configurations: play back different things at the same time, to different soundcards. For internet radio both "RadioSure" and "Screamer Radio" allow a portable installation, the setting of an audio output device, multiple instances and have an EventGhost plugin.
But can EventGhost distinguish multiple instances of the same software (to send events to them individually)?
But if EventGhost cannot distinguish, I will have to change my plans (ie use one software for room 1, use a different software for room 2, or some other workaround).
Thanks!
J├Ârg
Re: control multiple instances of softwares?
I have no experience with the specific programs and plugins, but I know EventGhost can control several instances if the plugin/programs support it. My XBMC2 plugin uses the network to communicate with XBMC and as a result can control many XBMCs with different ports (Just need to add the plugin several times with different configs).V_J wrote:But can EventGhost distinguish multiple instances of the same software (to send events to them individually)?
jonib
Re: control multiple instances of softwares?
But are you using controlling xbmc via the network interface? Because then yes, you can assign different ports... Thanks! Multiple xbmc instances might indeed be a solution: one XBMC instance per room... 
I just have not yet come across an internet radio plugin for it that has the stations I like...
I just have not yet come across an internet radio plugin for it that has the stations I like...
Re: control multiple instances of softwares?
Perhaps I phrased it wrong... How does your plugin tell xmbc what to do? I assume either via the webserver or using the JSON-RPC API to control xmbc.
But I guess most programs are controlled either via hotkeys or via commandline commands, which might make distinguishing them more difficult (I would have to check how it works then if you have two instances and call a commandline command).
I already read up a bit more in XBMC, and discovered that I can add live stream sources, so even if there is no addin for the online radio stations I like, there is an option for adding them. So XBMC looks like a good option still. I just hope the PC - a low power atom - can handle running two XBMC instances (but as long as it is not for video, it might be ok).
But I guess most programs are controlled either via hotkeys or via commandline commands, which might make distinguishing them more difficult (I would have to check how it works then if you have two instances and call a commandline command).
I already read up a bit more in XBMC, and discovered that I can add live stream sources, so even if there is no addin for the online radio stations I like, there is an option for adding them. So XBMC looks like a good option still. I just hope the PC - a low power atom - can handle running two XBMC instances (but as long as it is not for video, it might be ok).
Re: control multiple instances of softwares?
OK, the normal buttons and actions are sent via the EventServer API over the network.V_J wrote:Perhaps I phrased it wrong... How does your plugin tell xmbc what to do?
For more advanced commands you can use JSON-RPC.I assume either via the webserver or using the JSON-RPC API to control xmbc.
Many programs have APIs to control them, you just need to check what the plugins uses.But I guess most programs are controlled either via hotkeys or via commandline commands, which might make distinguishing them more difficult (I would have to check how it works then if you have two instances and call a commandline command).
Haven't used multiple instances on the same PC so don't know how feasible it would be.So XBMC looks like a good option still. I just hope the PC - a low power atom - can handle running two XBMC instances (but as long as it is not for video, it might be ok).
jonib
Re: control multiple instances of softwares?
I overlooked that one...jonib wrote:OK, the normal buttons and actions are sent via the EventServer API over the network.
Yes, but if the program has no options to set some addressing, two instances might not be distinguisable after they are launched and no identifier is kept.Many programs have APIs to control them, you just need to check what the plugins uses.
No problem!Haven't used multiple instances on the same PC so don't know how feasible it would be.
You've already been a great help. Using xbmc might a good option, particularly as I plan to use XBMC in room 1 also for video. Using one program for all media, would really unify things. I've already learned it has a portable option and multiple instances are possible, so I can just use a portable XMBC installation for the other rooms. It is also a common software, so likely to have good support, development and documentation (e.g. Screamer Radio has not been updated in several years now).
Ok, at least now I know my idea is feasible.
I guess I can get started with experiments...
Thanks!!
Re: control multiple instances of softwares?
Re: control multiple instances of softwares?
...It may be a bit off-topic, but you could use one XBMC instance on the PC with EvenGhost and another one (in room 2) on a Raspberry Pi, than you wouldn't even need two sound cards or audio wire - just (wireless) network.
Re: control multiple instances of softwares?
J├Ârg,
I know Winamp allows this. See this post:
http://www.eventghost.org/forum/viewtop ... f=2&t=2083
kalia
I know Winamp allows this. See this post:
http://www.eventghost.org/forum/viewtop ... f=2&t=2083
kalia
Re: control multiple instances of softwares?
True... I have been looking into that raspberry pi, but it feels too much hassle (enclosure, software, ...). It shouldn't be that difficult, but I need additional hardware and things. My first idea was actually to use a cheap tablet instead of a raspberry pi, and put xbmc for android on it.Sem;colon wrote:...It may be a bit off-topic, but you could use one XBMC instance on the PC with EvenGhost and another one (in room 2) on a Raspberry Pi, than you wouldn't even need two sound cards or audio wire - just (wireless) network.
My HTPC is connected via HDMI to an amplifier, and via its analog audio port to a second input on the amplifier. The amplifier supports multi room, so I can direct the analog input to the second zone. I realized I also have (lying around) wireless speakers, which I can just connect to the zone2 output of the amplifier. And the amplifier is controllable from EventGhost via serial port. So basically I don't need extra hardware to achieve it this way. The wireless speakers are not the best, but good enough to put in e.g. a kitchen.
Using xbmc as a second instance still does not prevent to move it to another computer (e.g. raspberry) later: it would not require that much change to the config (just the target to which the events are sent).
Great! The more options, the better.kalia wrote:I know Winamp allows this.
-
barnabas1969
- Experienced User
- Posts: 133
- Joined: Sat Feb 04, 2012 1:42 am
Re: control multiple instances of softwares?
You could run the software in two different sessions on your PC. If you setup two user accounts on the PC, you could run EG in both sessions (using different configuration files) and each session would run its own instance of the playback software.
You'd have to login to both sessions though. Login to User1, use the "switch user" feature in Windows, and then login to User2. Each could have startup items that start EG and whatever else you need to run. User1 could play audio to room1, and User2 could play audio to room2.
You'd have to login to both sessions though. Login to User1, use the "switch user" feature in Windows, and then login to User2. Each could have startup items that start EG and whatever else you need to run. User1 could play audio to room1, and User2 could play audio to room2.
Re: control multiple instances of softwares?
I was hesitating at first too, but it's really as easy as it could be:V_J wrote:I have been looking into that raspberry pi, but it feels too much hassle (enclosure, software, ...).
1. you copy some files (noops) to an SD card
2. stick that card into your raspberry as well as an generic usb keyboard (and mouse if you want) and a screen via HDMI and start it.
3. you will get a selection of operating systems you can install - just select openELEC or Raspbmc.
4. wait
5. done, your raspberry Pi will directly boot into XBMC.
I was really surprised HOW easy it is... It took me about 15min from knowing nothing about it to a working XBMC on the Raspberry Pi.
Re: control multiple instances of softwares?
Hey... nice out-of-the box thinking! That indeed would allow any program to run in multiple instances.barnabas1969 wrote:You could run the software in two different sessions on your PC. If you setup two user accounts on the PC, you could run EG in both sessions (using different configuration files) and each session would run its own instance of the playback software.
You'd have to login to both sessions though. Login to User1, use the "switch user" feature in Windows, and then login to User2. Each could have startup items that start EG and whatever else you need to run. User1 could play audio to room1, and User2 could play audio to room2.
Ok, that is good to know... I've been pondering about it for some time: I won't have time to configure it, it will require too much configuration, ... But at the same time it has this attraction.Sem;colon wrote: I was really surprised HOW easy it is... It took me about 15min from knowing nothing about it to a working XBMC on the Raspberry Pi.
Re: control multiple instances of softwares?
I started testing... Apparently, while xbmc has a "portable" mode, it does not allow multiple instances out of the box...
So this means either Winamp (which does support multiple instances, and with Kalia's link Eventghost can indeed distinguish), running under multiple users (suggested by Barnabas1969), or a raspberrypi (as Sem;colun suggested).
Winamp would probably the easiest solution. But I kinda like the xbmc per room configuration as a concept: there are many options to control it with a nice Android or ios interface. It may be overkill now, but it offers more functionality towards expansion. The computer already has Virtualbox installed, I could do Sem;colon suggestion but with virtualbox rather than a raspberry. It should make the transition to a raspberry later very easy. Virtualboxes have commandline controls to start or wake up devices, so Eventghost should be able to wake them up. The computer is an Atom, but It should manage music playback. Room one could be a non-virtualbox xbmc, room two a virtual one.
Is OpenElec compabible with EventGhost, or should I go for Xbmcbuntu to have best compatibility?
So this means either Winamp (which does support multiple instances, and with Kalia's link Eventghost can indeed distinguish), running under multiple users (suggested by Barnabas1969), or a raspberrypi (as Sem;colun suggested).
Winamp would probably the easiest solution. But I kinda like the xbmc per room configuration as a concept: there are many options to control it with a nice Android or ios interface. It may be overkill now, but it offers more functionality towards expansion. The computer already has Virtualbox installed, I could do Sem;colon suggestion but with virtualbox rather than a raspberry. It should make the transition to a raspberry later very easy. Virtualboxes have commandline controls to start or wake up devices, so Eventghost should be able to wake them up. The computer is an Atom, but It should manage music playback. Room one could be a non-virtualbox xbmc, room two a virtual one.
Is OpenElec compabible with EventGhost, or should I go for Xbmcbuntu to have best compatibility?

