HomeGenie Forum
General Category => Troubleshooting and Support => Topic started by: kevinvinv on December 09, 2016, 08:27:54 PM
-
HI All,
I am wondering if I can obtain the current temperature outside from a weather program easily for use by my C# program?
-
If you use Weather Underground Module :
The parameter seems to be Conditions.TemperatureC in Celsuis or Conditions.TemperatureF in Farenheit
Only you have to get a pointer to that module and peek the value of that parameter.
You can try that C# source code :
var module = Modules.InDomain("HomeAutomation.HomeGenie.Automation").WithAddress("34");
var temperature = module.Parameter("Conditions.TemperatureC"); // For Celsius
Cheers