Page 2 of 2

Re: Weather Information

Posted: Sun Aug 24, 2014 5:51 pm
by kalia
thahim wrote:
kalia wrote:Well since there was no reply to my question, I will just share my work around solution if anyone is interested. Convert Fahrenheit to Celsius by using the following equation:

(Fahrenheit - 32 ) * 5/9
Hi Friend i have made this
same.png
But i'm getting error
Error in Action: "Speech: Speak: {"and "+ str((int(eg.result)-32)*5/9) + "degrees Celcius"}"
Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
File "C:\Program Files (x86)\EventGhost\plugins\Speech\__init__.py", line 193, in __call__
voiceText = eg.ParseString(voiceText, filterFunc)
File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 204, in ParseString
res = eval(word, {}, eg.globals.__dict__)
File "<string>", line 1, in <module>
TypeError: int() argument must be a string or a number, not 'NoneType'
thahim,

I don't think the Weather Plugin works anymore. You should try the SunTracker plugin by krambriw. See here for more information on SunTracker weather (viewtopic.php?f=9&t=5902).

kalia

Re: Weather Information

Posted: Sun Aug 24, 2014 6:07 pm
by jitterjames
You can't place python script into a macro parameter.

You need to use a python script to do this.

Re: Weather Information

Posted: Sun Aug 24, 2014 7:53 pm
by thahim
kalia wrote:
thahim wrote:
kalia wrote:Well since there was no reply to my question, I will just share my work around solution if anyone is interested. Convert Fahrenheit to Celsius by using the following equation:

(Fahrenheit - 32 ) * 5/9
Hi Friend i have made this
same.png
But i'm getting error
Error in Action: "Speech: Speak: {"and "+ str((int(eg.result)-32)*5/9) + "degrees Celcius"}"
Traceback (most recent call last) (1669):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
File "C:\Program Files (x86)\EventGhost\plugins\Speech\__init__.py", line 193, in __call__
voiceText = eg.ParseString(voiceText, filterFunc)
File "C:\Program Files (x86)\EventGhost\eg\Utils.py", line 204, in ParseString
res = eval(word, {}, eg.globals.__dict__)
File "<string>", line 1, in <module>
TypeError: int() argument must be a string or a number, not 'NoneType'
thahim,

I don't think the Weather Plugin works anymore. You should try the SunTracker plugin by krambriw. See here for more information on SunTracker weather (viewtopic.php?f=9&t=5902).

kalia
Dear Friend, i have tried that too, but i don't know how to get it to work.