HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: kevinvinv on December 09, 2016, 08:27:54 PM

Title: How to get temperature from the weather program?
Post 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?
Title: Re: How to get temperature from the weather program?
Post by: dani on December 11, 2016, 07:02:13 PM
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 :
Code: [Select]
var module = Modules.InDomain("HomeAutomation.HomeGenie.Automation").WithAddress("34");
var temperature = module.Parameter("Conditions.TemperatureC");  // For Celsius


Cheers