Here is what I have first. It's a Win 7 Ultimate SP1 box, Eventghost v0.4.1.r1669, AutoRemote Plugin v1.90.
1. I have a Tasker command to send "WhoIsThis" to EG and that is recognized fine and shows up in the log and goes to step two in my Song Info macro.
2. Is a MediaMonkey 'Get detailed song info'
3. A small bit of code to parse out just what I want. I tried it simple and as a function and it seems to wrk fine as it shows up in the log perfectly.
Code: Select all
str = eg.event.payload
#print str
#def songInfo():
# global sinfo
# sinfo = "Song -", str[0], "Artist -", str[1], "Album -", str[2], "Album Year -", str[5]
# print sinfo
#print info
sinfo = "Song -", str[0]+'\n', "Artist -", str[1]+'\n', "Album -", str[2]+'\n', "Album Year -", str[5]
print sinfoCode: Select all
SongInfoStr
('Song -', u'Song Of The Wind\n', 'Artist -', u'Santana\n', 'Album -', u'Gold Greatest Hits\n', 'Album Year -', 2003)
AutoRemote: Sending =:={sinfo} to Tek420
Error in Action: "AutoRemote: Sending =:={sinfo} to Tek420"
Traceback (most recent call last) (1669):
File "C:\Program Files\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
File "C:\Program Files\EventGhost\plugins\AutoRemote\__init__.py", line 937, in __call__
message = Message(self, key,text,ttl,password,target,files)
File "C:\Program Files\EventGhost\plugins\AutoRemote\__init__.py", line 849, in __init__
self.message = replacePythonCodeAndEncode(text)
File "C:\Program Files\EventGhost\plugins\AutoRemote\__init__.py", line 647, in replacePythonCodeAndEncode
print "Error: {" + item + '} does not evaluate to a String. Not replacing: ' + repr(e)
NameError: global name 'item' is not definedDave