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.

sending info

If you have a question or need help, this is the place to be.
Post Reply
ntk1
Posts: 19
Joined: Sat Nov 24, 2012 6:25 am

sending info

Post by ntk1 »

hello

i want to send information received from my amp, when i send the command "DIF02" i received this event back

OnkyoISCP.IFA 'HDMI 1,PCM,48kHz,2.0ch,All Ch Stereo,7.2ch,'
OnkyoISCP.IFAHDMI 1,PCM,48kHz,2.0ch,All Ch Stereo,7.2ch,

now i want to send this line with network event sender but i have no idea how, so if someone can help me with this... :D I'm using onkyo ISCP plugin

thanks
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: sending info

Post by piert »

You really need to explain in more detail what it is that you are trying to achieve and......
my initial thought is that you have not invested much time in searching the forum before you posted....
ntk1
Posts: 19
Joined: Sat Nov 24, 2012 6:25 am

Re: sending info

Post by ntk1 »

If you did not understand what I want to do, how you concluded that I did not invested much time in searching?

i'm using onkyo ISCP to send commands to my amp, when i send "DIF02" command to the amp, the amp send back this info (as an event)

OnkyoISCP.IFA 'HDMI 1,PCM,48kHz,2.0ch,All Ch Stereo,7.2ch,'
OnkyoISCP.IFAHDMI 1,PCM,48kHz,2.0ch,All Ch Stereo,7.2ch,

this info show the audio output i stream to the amp, now i want to use network sender plugin to send this info from the event the amp produce

HDMI 1,PCM,48kHz,2.0ch,All Ch Stereo,7.2ch

this is script line to send XXXX with network sender
eg.plugins.NetworkSender.plugin.Send("")

but i don't know how to send the info received from the amp with network sender

thanks
cfull1
Experienced User
Posts: 124
Joined: Thu Aug 19, 2010 4:52 am

Re: sending info

Post by cfull1 »

That info is called the event payload.
Is there another machine running EG you are trying to send it to?
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: sending info

Post by miljbee »

Assuming you already have a second EG with network event receiver properly set up,
you just have to send eg.event.payload.

From what you wrote, it seems that the payload of the event is a string so you can send it directly, you will get that payload as the event suffix on the eg server.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1610">
    <Action>
        EventGhost.PythonCommand(u'eg.plugins.NetworkSender.Map(eg.event.payload)')
    </Action>
</EventGhost>
If you need more fexibility, Try the TCP Events plugin, it will enable you to forward the payload as is with a fixed event suffix.
With TCPEvents, you can also parse the data at the client side and store the result at the server side without generating an event.

There is some other possibilities, but if you need more help from us, you will have to explain in more details what you are trying to achieve.
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
ntk1
Posts: 19
Joined: Sat Nov 24, 2012 6:25 am

Re: sending info

Post by ntk1 »

thanks i manage to do it with EG App Control plugin and Log Monitor so i transferred the event to payload and send it with

eg.plugins.NetworkSender.plugin.Send("AudioInfo", [str(eg.event.payload)])
Post Reply