Hi,
is it possible to send the {eg.result} via network sender/receiver to output it on another eventghost?
I want to use it to remote control applications for example spotify and I want the informations back (actual song, etc.)
Sven
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.
send eg.result via network
- jitterjames
- Experienced User
- Posts: 677
- Joined: Thu Aug 13, 2009 4:36 pm
- Location: Quebec, Canada
- Contact:
Re: send eg.result via network
yes, you could use network send/receive but it would be much easier with the broadcast plugin. (not part of standard install for some reason).
call it with a simple python script.
call it with a simple python script.
- jitterjames
- Experienced User
- Posts: 677
- Joined: Thu Aug 13, 2009 4:36 pm
- Location: Quebec, Canada
- Contact:
Re: send eg.result via network
here's the python script if you use network send/receive
and this is the event that is generated.
TCP.testEventName 'My payload is this...' ['127.0.0.1', u'withoutRelease']
the stuff at the end is generated by the plugin - I don't 'know if it would cause problems, but the broadcast plugin doesn't add that stuff afaik.
J
Code: Select all
myeventname = "testEventName"
mypayload = "My payload is this..."
#or pass the eg.result in either part
#myeventname = eg.result
#mypayload = eg.result
eg.plugins.NetworkSender.Map(myeventname+u" '"+mypayload+u"'")TCP.testEventName 'My payload is this...' ['127.0.0.1', u'withoutRelease']
the stuff at the end is generated by the plugin - I don't 'know if it would cause problems, but the broadcast plugin doesn't add that stuff afaik.
J
Re: send eg.result via network
the broadcast plugin would be nice, but I have to send to different subnets, so I try the scripting with network sender.
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: send eg.result via network
Perhaps this modification it would be useful for you.
Pako
Pako
