Page 23 of 36
Re: RFXtrx
Posted: Sun Aug 10, 2014 12:44 pm
by krambriw
Hello,
I do not really see how the problems you are experiencing is related to the sample script I suggested...???
1)
CommandFusion Message could not be sent: s500=0
This does not look like it is extracted from the event payload holding a temp reading of +28.3. Please double-check the script.
2) 'import VistaVolEvents as vistaVolumeDll', you seem to have other problems starting up EG, some libraries or files for VistaVolEvents are missing
BR Walter
Re: RFXtrx
Posted: Sun Aug 10, 2014 1:03 pm
by Pako
husa550 wrote:Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\EventGhost\eg\Classes\ActionThread.py", line 33, in StartSession
pluginInfo.instance.__start__()
File "C:\Program Files (x86)\EventGhost\EventGhost\plugins\System\__init__.py", line 271, in __start__
import VistaVolEvents as vistaVolumeDll
ImportError: No module named VistaVolEvents
You are using AVAST antivirus?
If so, look at the topic
Have no idea??.
Note:
In your case,
C:\Program Files (x86)\EventGhost\EventGhost\plugins\System is the correct folder.
Pako
Re: RFXtrx
Posted: Sun Aug 10, 2014 1:04 pm
by husa550
This is how it looks.
The script is copy/paste from your example.
Re: RFXtrx
Posted: Sun Aug 10, 2014 1:19 pm
by husa550
Pako wrote:husa550 wrote:Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\EventGhost\eg\Classes\ActionThread.py", line 33, in StartSession
pluginInfo.instance.__start__()
File "C:\Program Files (x86)\EventGhost\EventGhost\plugins\System\__init__.py", line 271, in __start__
import VistaVolEvents as vistaVolumeDll
ImportError: No module named VistaVolEvents
You are using AVAST antivirus?
If so, look at the topic
Have no idea??.
Note:
In your case,
C:\Program Files (x86)\EventGhost\EventGhost\plugins\System is the correct folder.
Pako
Thank's Pako!
I do use Avast.
I turned it off, checked the folder but that file was in place.
Found out that a .dll was missing and replaced that.
Now the error look like this:
Error compiling script.
Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\EventGhost\eg\Classes\ActionItem.py", line 121, in SetArguments
self.compiled = self.executable.Compile(*args)
File "C:\Program Files (x86)\EventGhost\EventGhost\plugins\EventGhost\PythonScript.py", line 71, in __init__
self.PrintTraceback()
File "C:\Program Files (x86)\EventGhost\EventGhost\plugins\EventGhost\PythonScript.py", line 97, in PrintTraceback
treeItem.PrintError("Traceback (most recent call last):")
AttributeError: 'NoneType' object has no attribute 'PrintError'
Error compiling script.
Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\EventGhost\eg\Classes\ActionItem.py", line 121, in SetArguments
self.compiled = self.executable.Compile(*args)
File "C:\Program Files (x86)\EventGhost\EventGhost\plugins\EventGhost\PythonScript.py", line 71, in __init__
self.PrintTraceback()
File "C:\Program Files (x86)\EventGhost\EventGhost\plugins\EventGhost\PythonScript.py", line 97, in PrintTraceback
treeItem.PrintError("Traceback (most recent call last):")
AttributeError: 'NoneType' object has no attribute 'PrintError'
Any more clues?
Re: RFXtrx
Posted: Sun Aug 10, 2014 1:56 pm
by Pako
This looks like a bug in a script.
Look at the topic
Error message after upgrade to r1669, especially its end.
Pako
Re: RFXtrx
Posted: Mon Aug 11, 2014 4:06 pm
by husa550
Hi Krambriw!
This is what i get.
There seem's to be something wrong with the python script.
The Python script does not send any info to commandfusion serial command
As you see, the last row "CommandFusion Message sent: s500= (after = there is a L in Eventghost but does not stick around when i copy/paste)
and there should be the temp value.
If i manualy write something in serial value then it will send it to my iViewer app.
RFXtrx.Type: Rubicson id: 513 ' temperature: +21.2 deg C humidity: 62 %RH status: comfort signal: 7 battery: 9'
RFXtrx.Type: Rubicson id: 513
Python Script
Error in Action: "Python Script"
Traceback (most recent call last) (1669):
TypeError: 'NoneType' object is not callable
CommandFusion Plugin: Serial Change: 500
CommandFusion Message sent: s500=
Re: RFXtrx
Posted: Mon Aug 11, 2014 4:17 pm
by krambriw
Hello, easiest now if you can make a screen shot of
- the macro configuration (expand the macro so what is inside is visible)
- the python script (I suspect formatting problems...)
Also, make 'Copy As Python' and paste in here as code the action that works when you typed in manually so that I can compare/check that we are running same versions,,,,
Best regards
Re: RFXtrx
Posted: Mon Aug 11, 2014 4:43 pm
by husa550
Hi
This is how it look's!
Code: Select all
pload = eg.event.payload
m = pload.split(' ')
temperature = str(m[2])
#print temperature
try:
eg.plugins.CommandFusion.SerialChange(1, temperature)
except:
print 'Detected problems sending to CommandFusion'
Re: RFXtrx
Posted: Mon Aug 11, 2014 6:47 pm
by krambriw
OK, now I understand what is the problem...sorry, maybe I was not explaining clearly enough
Your script shall look like this (I assume we are sending to the 'join' 500):
Code: Select all
pload = eg.event.payload
m = pload.split(' ')
temperature = str(m[2])
#print temperature
try:
eg.plugins.CommandFusion.SerialChange(500, temperature)
except:
print 'Detected problems sending to CommandFusion'
Then your macro shall look like this(only the event and the script):

- Image2.jpg (6.68 KiB) Viewed 5717 times
To be sure that the temperature is correctly captured, you can remove the comment char like this and then it will be printed in the log every time it is captured:
Code: Select all
pload = eg.event.payload
m = pload.split(' ')
temperature = str(m[2])
print temperature
try:
eg.plugins.CommandFusion.SerialChange(500, temperature)
except:
print 'Detected problems sending to CommandFusion'
Re: RFXtrx
Posted: Mon Aug 11, 2014 7:49 pm
by husa550
Hi Krambriw
This is how it look's now!
I still have the startup error when Eventghost start.
Could that have anything to do with this problem?
Perhaps i should downgrade Eventghost to a older version!?
Re: RFXtrx
Posted: Tue Aug 12, 2014 4:23 am
by krambriw
If you still have that startup problem, I am worried that python script support is not operational (you see in the error message File "C:\Program Files (x86)\EventGhost\EventGhost\plugins\EventGhost\PythonScript.py", line 71, in __init__ indicating a problem).
Before destroying your setup try the following:
1) Make a complete copy of your EventGhost folder including everything so that you can copy from there if you have manually added plugins and others
2) Make a copy of your config.py and delete the original
3) Install version 1669 again
4) Try to start EG, you will get the example configuration
5) If it works fine, check with file system and add manually the plugins eventually missing, restart EG
6) Now open your configuration you had before (it should be preserved during re-installation, otherwise copy the xml from your EventGhost copy)
Hopefully you are now running ok
Re: RFXtrx
Posted: Tue Aug 12, 2014 6:22 pm
by husa550
krambriw wrote:If you still have that startup problem, I am worried that python script support is not operational (you see in the error message File "C:\Program Files (x86)\EventGhost\EventGhost\plugins\EventGhost\PythonScript.py", line 71, in __init__ indicating a problem).
Before destroying your setup try the following:
1) Make a complete copy of your EventGhost folder including everything so that you can copy from there if you have manually added plugins and others
2) Make a copy of your config.py and delete the original
3) Install version 1669 again
4) Try to start EG, you will get the example configuration
5) If it works fine, check with file system and add manually the plugins eventually missing, restart EG
6) Now open your configuration you had before (it should be preserved during re-installation, otherwise copy the xml from your EventGhost copy)
Hopefully you are now running ok
Hi
I did your 6 point plan
-Clean fresh install of EG works without error messeges.
-Added all plugin i use, still no error message when i restart EG.
-Started EG with my config.xml, then error arrive
-Did a copy of my config.xml and started EG with that, and of course the same error occour.
-Then i started to remove macro, save, restart EG until error dissapear.
-When i removed your Python-script and restart EG it start without error message.
-Then i started EG with my original config.xml, removed only your python-script, restarted EG and no startup error.
Is it my installation that is broken or is it something with your script?
Thank's
Re: RFXtrx
Posted: Tue Aug 12, 2014 8:11 pm
by krambriw
I cannot explain why it doesn't work, it should be just a simple copy & paste
But since the script is not that long you could try to type it in from scratch instead and see if that works better
Re: RFXtrx
Posted: Tue Aug 12, 2014 9:00 pm
by husa550
krambriw wrote:I cannot explain why it doesn't work, it should be just a simple copy & paste
But since the script is not that long you could try to type it in from scratch instead and see if that works better
I typed it in from scratch, but no improvement.
Started EG with clean, unconfigured xml, no error.
Then i put in your script and restarted EG, the same error.
Everything else works really nice.
One thing that i did not told you is that i do all EG work trough TeamViewer 9.
The computer that run EG is in a closet, but tomorrow i will hook up a screen to it and try it hands on.
I don't think TeamViewer has anything to do with this error but have to try without TeamViewer and see if there is any change.
Over and out.
Re: RFXtrx
Posted: Wed Aug 13, 2014 4:23 am
by krambriw
I really agree, this is strange, I haven't experienced this behavior myself
1) Since you seem to run Win7 64bit, I assume you have already tried to run EG as admin?
2) Have you verified that just another simple python script really works?
Otherwise, if you do not find a solution, I would do the following to verify
- stop EG and rename the current folder 'EventGhost_r1669'
- install an earlier version like 1610
- add RFXtrx plugin, verify that a simple python script is working
- try the script from earlier
If you would like to go back to 1669, can rename EG folders
- 'EventGhost' -> 'EventGhost_r1610'
- 'EventGhost_r1669' -> 'EventGhost'
- install 1669