more G-Labs products

Author Topic: How to get temperature from the weather program?  (Read 559 times)

December 09, 2016, 08:27:54 PM
Read 559 times

kevinvinv

  • ****
  • Information
  • Sr. Member
  • Posts: 196
HI All,

I am wondering if I can obtain the current temperature outside from a weather program easily for use by my C# program?

December 11, 2016, 07:02:13 PM
Reply #1

dani

  • *****
  • Information
  • Global Moderator
  • Posts: 535
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