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.

Weather Information

Questions and comments specific to a particular plugin should go here.
kalia
Experienced User
Posts: 109
Joined: Wed Aug 12, 2009 1:10 am

Re: Weather Information

Post 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
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: Weather Information

Post by jitterjames »

You can't place python script into a macro parameter.

You need to use a python script to do this.
thahim
Posts: 17
Joined: Fri Jul 11, 2014 5:33 am

Re: Weather Information

Post 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.
EventGhost Version 0.4.1.r1669
Windows 7
Post Reply