Page 6 of 6
Re: xAP Plugin
Posted: Sun Dec 17, 2017 12:59 am
by kgschlosser
how much longer are you away from home for?? it has been a long time already hasn't it?
Re: xAP Plugin
Posted: Sun Dec 17, 2017 9:11 am
by V_J
It's almost one year; one more year to go.

But now I have time to get back to things like Eventghost, so I will rework my config so I can integrate it with everything better (till now it worked, but was not so elegantly made and not easily maintainable). I basically use EventGhost to add functionality to interface a my home automation and several devices (amplifer via serial port, kodi, squeezebox, tv, ir remote): the home automation system has some limitations on what it can interface with and using EventGhost I can bypass them.
Expect a thread in the near future on controlling a device using node.js (I want to control an LG WebOS TV from EventGhost.

I suspect it will be similar to XBMC2 so I'll start from there. But I need to learn a bit more about it before I can ask decent questions.

Re: xAP Plugin
Posted: Sun Dec 17, 2017 3:15 pm
by V_J
One thing... it sometimes complains if Eventghost is not running as administrator...
Code: Select all
Plugin: xAP
xAP: UDP has Started: Server Mode: xAP Hub Mode Running: Port: 3639, Client Mode: On
xAP: HeartBeat has Started
Error starting plugin: xAP
Traceback (most recent call last) (0.5.0-rc4):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginInstanceInfo.py", line 192, in Start
self.instance.__start__(*self.args)
File "C:\Program Files (x86)\EventGhost\plugins\xAP\__init__.py", line 458, in __start__
self.SaveList('xAP.EventList.txt', self.eventList)
File "C:\Program Files (x86)\EventGhost\plugins\xAP\__init__.py", line 555, in SaveList
if config: Backup(configSave)
File "C:\Program Files (x86)\EventGhost\plugins\xAP\__init__.py", line 544, in Backup
copyfile('.'.join(name), '.'.join(fList[fList.index(name)-1]))
File "shutil.pyc", line 83, in copyfile
IOError: [Errno 13] Permission denied: u'C:\\Program Files (x86)\\EventGhost\\plugins\\xAP\\xAP.ConfigSettings.Backup3.txt'
Is there a way around this?
Re: xAP Plugin
Posted: Sun Dec 17, 2017 10:22 pm
by kgschlosser
Yeah run event ghost as administrator LOL
For the time being if you change the owner of
Program Files (x86)\EventGhost\plugins\xAP\
Directory to your current usernam we for windows and make sure you add your username as having all permissions for that folder. You should be good to go. I am guessing you are running Windows 10.
Later today or tomorrow I will set it up to write the information to either the EG config file or to the config directory
Re: xAP Plugin
Posted: Mon Dec 18, 2017 4:18 am
by kgschlosser
OK so here is the skinny. this is on e of the very first plugins I wrote. 2 and a half years ago.. so I am sitting here staring at the code thinking... what in the hell was I thinking...
But from what I am reading it saves the file into the documents folder not into the plugins folder. so I am curious.. did you download the one from the first post? or the one from
HERE?
But at any rate I am considering a rewrite of this thing because it needs to be redone to a system I have developed for myself.
Re: xAP Plugin
Posted: Mon Dec 18, 2017 7:32 am
by V_J
I don't know where I got the file I was using, but with the one you linked the problem is gone.

I really thought I was using the last version... Sorry...

Re: xAP Plugin
Posted: Mon Dec 18, 2017 4:40 pm
by kgschlosser
no worries m8 glad to see the problem is gone