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.

RFXtrx

Questions and comments specific to a particular plugin should go here.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post 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
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: RFXtrx

Post 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
husa550
Posts: 29
Joined: Sun Sep 09, 2012 2:32 pm

Re: RFXtrx

Post by husa550 »

This is how it looks.
The script is copy/paste from your example.
Attachments
Skärmavbild 2014-08-10 kl. 15.01.03.png
Last edited by husa550 on Mon Aug 11, 2014 4:16 pm, edited 1 time in total.
husa550
Posts: 29
Joined: Sun Sep 09, 2012 2:32 pm

Re: RFXtrx

Post 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?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: RFXtrx

Post by Pako »

This looks like a bug in a script.
Look at the topic Error message after upgrade to r1669, especially its end.

Pako
husa550
Posts: 29
Joined: Sun Sep 09, 2012 2:32 pm

Re: RFXtrx

Post 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=
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post 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
husa550
Posts: 29
Joined: Sun Sep 09, 2012 2:32 pm

Re: RFXtrx

Post 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'
Attachments
Skärmavbild 2014-08-11 kl. 18.21.00.png
Skärmavbild 2014-08-11 kl. 18.20.46.png
Skärmavbild 2014-08-11 kl. 18.20.46.png (29.17 KiB) Viewed 5728 times
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post 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
Image2.jpg (6.68 KiB) Viewed 5725 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'
husa550
Posts: 29
Joined: Sun Sep 09, 2012 2:32 pm

Re: RFXtrx

Post 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!?
Attachments
Skärmavbild 2014-08-11 kl. 21.52.15.png
Skärmavbild 2014-08-11 kl. 21.47.05.png
Skärmavbild 2014-08-11 kl. 21.44.13.png
Skärmavbild 2014-08-11 kl. 21.44.13.png (20.62 KiB) Viewed 5724 times
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post 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
husa550
Posts: 29
Joined: Sun Sep 09, 2012 2:32 pm

Re: RFXtrx

Post 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 :D

-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 :x

-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
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post 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
husa550
Posts: 29
Joined: Sun Sep 09, 2012 2:32 pm

Re: RFXtrx

Post 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.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: RFXtrx

Post 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
Post Reply