PDA

View Full Version : Weather Info in Netremote



nurowolf
May 2nd, 2008, 03:13 AM
Is there any special requirement to initialise the access to G5 weather data from NetRemote?

I have looked all through the Flatstyle DM example and have used this as my basis.

If I load Flatstyle into the Designer and send it to Netremote - things are beautiful.

I then send my CCF to NR - and again - everything works.

If I just load my CCF direct - no data.

So it appears that I am not initialising something and I cannot work it out.

Any advice would be appreciated.

Nuro

harleydude
May 2nd, 2008, 04:59 AM
The Flatstyle DM ccf uses a call to DM.Init() in its LUA file. I suspect that your ccf is not using this call. In order to use the DM support you need to include:

require "DMSupport"

at the top of your LUA file and

DM.Init()

in you OnCCFLoad routine.

jwilson56
May 2nd, 2008, 05:03 AM
Yes there is a lot of code in the Flat CCF's LUA file that needs to be in yours if you start to use parts of it for your skin.

nurowolf
May 3rd, 2008, 07:36 PM
DM.Init() was the cause.

Thanks all. Weather is now working very well.