Latitude Longitude

HouseBot Plugin Development Discussions.
Post Reply
peter
Member
Posts: 35
Joined: Wed May 31, 2006 3:51 am
Location: Berlin , GER

Latitude Longitude

Post by peter »

Hi Scott,
is it possible to have read access to the location setting values from inside of a device dll? I've programmed a device to give me the sun coordinates for controlling my roller blinds.

Thanks peter
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Latitude Longitude

Post by ScottBot »

I'm not sure exactly what you are asking. If you want the lat/long values, they are stored in the registry, so they can easily be accessed via plugin DLL. I can give you the exact location if you need.

If you just want to read the sunset/sunrise times in your device, you can just call CDevice::GetDeviceFromDescription("System Time") and then use the returned CDevice pointer to get the sunrise/sunset or any other property values from the system time device. If that's what you are looking to do, I can give you more details on it as well.
Scott
peter
Member
Posts: 35
Joined: Wed May 31, 2006 3:51 am
Location: Berlin , GER

Re: Latitude Longitude

Post by peter »

Oh no, I ment the the long/lat values. Additionally to close the blinds at night, I want to close them at hot days when the sun comes around of my house. So I need to know where the sun is actually. That is my device calculating based on the long/lat naturally.

Probably I will find them in the registry, thanks.

peter
ScottBot
Site Admin
Posts: 2790
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: Latitude Longitude

Post by ScottBot »

Check under the HKEY_LOCAL_MACHINE\SOFTWARE\CeBotics\HouseBot\Sunrise-Sunset key. Although newer versions pull from
HKEY_CURRENT_USER\SOFTWARE\CeBotics\HouseBot\Sunrise-Sunset if found.
Post Reply