View Full Version : .517 SunriseSunset and Ambientlight CHANGES
Promixis
April 17th, 2007, 12:23 PM
Guys,
Part of the 517 release included moving the SunRiseSet (now SunriseSunset) into a component. The events will have changed and may effect your GMLS.
Ambientlight has also been moved into a component. This will affect your scripts. If you need help, please post here. GML's will need to be adjusted to use the new actions and conditional!
jmbraben
April 17th, 2007, 09:46 PM
Mike,
I would warn people that they need to "refresh" to see these new components.
Also, for some reason my "settings"->location tab doens't work unless I have "custom weather" enabled...I'm assuming this is where all my local light settings come from...I noted that in another thread, but seems like a potential issue.
So changing my GML's...all I have to do is select the new Lua:SunriseSunset device and the "event strings" seem to be the same.
Jon
jmbraben
April 17th, 2007, 10:04 PM
Mike,
Getting frustrated here...I've just installed 517...When I enable anything in the component manager, they don't "stick" any time I reset the scripting engine or restart G5, they've all gone disabled...I don't even see the "newer" components unless I refresh. I've tried "save all", etc, but they are going disabled.
Jon
Rob H
April 18th, 2007, 12:40 PM
Any errors in the Lua console at all?
What OS is this?
jmbraben
April 18th, 2007, 03:18 PM
Hey Rob,
I sent a dump of everything to Mike C, hopefully he's making sense of the data.
Window's XP Pro by the way.
Thanks,
Jon
jmbraben
April 21st, 2007, 10:31 PM
Ummm...any updates?:confused:
Promixis
April 22nd, 2007, 01:43 AM
Jon, sent you an email on April 18 - did you get it?
jmbraben
April 22nd, 2007, 08:14 AM
Mike,
I take it you didn't get my response?
The email address from you/responded to looked funny...xxxx@4831.com...I'll send it to your work address as well.
Thanks,
Jon
Promixis
April 22nd, 2007, 10:00 AM
Mike,
I take it you didn't get my response?
The email address from you/responded to looked funny...xxxx@4831.com...I'll send it to your work address as well.
Thanks,
Jon
Hi Jon,
I am not sure you got my reply or not :( (April 18)
Uninstall G5. Delete the Girder directory. Reinstall. Leave the config directory (in the application data folder).
Something went wrong with the install. Weird.
Mike
jmbraben
April 22nd, 2007, 04:58 PM
Mike,
Found it in my yahoo spam folder...might have been the account you sent it from. Thanks, I'll try that and see what happens.
Jon
jmbraben
April 23rd, 2007, 08:32 AM
Mike,
I've uninstalled and reinstalled G5 (G4 still installed, but that shouldn't matter, right?).
Whenever I reset the scripting engine (or restart G5), I lose my installed components (except Sunrise/Sunset now). Looking at the console, it seems like it's having problems with my "geographical location". My settings->location tab says "component not enabled" unless I enable "custom weather" component (which goes away whenever I reset G5)...seems like some kind of chicken and egg race going on.
TreeScript (golua): ...mixis\Girder5\luascript\components\CustomWeathe r.lua:100: attempt to index global `GeographicalLocation' (a nil value)
stack traceback:
...mixis\Girder5\luascript\components\CustomWeathe r.lua:100: in function `Initialize'
...iles\Promixis\Girder5\luascript\ComponentManage r.lua:289: in function `EnableComponent'
...\Girder5\/plugins/treescript/ComponentManager UI.lua:172: in function <...\Girder5\/plugins/treescript/ComponentManager UI.lua:157>
ScriptReset Start
LOG: Component Manager : 4 - Components never started.
ScriptReset Done Calling ScriptReset Callbacks, Time: 2934.1188433715
Loading RFXCOMReceiver.lua
Loaded RFXCOMReceiver.lua
Welcome to Promixis Girder 5.0.0 build 517
...mixis\Girder5\luascript\components\SunriseSunse t.lua:509: attempt to index global `GeographicalLocation' (a nil value)
stack traceback:
...mixis\Girder5\luascript\components\SunriseSunse t.lua:509: in function `GetLocalSunrise'
...mixis\Girder5\luascript\components\SunriseSunse t.lua:244: in function `SetupTodaysEvents'
...mixis\Girder5\luascript\components\SunriseSunse t.lua:208: in function `SetupSchedules'
...mixis\Girder5\luascript\components\SunriseSunse t.lua:161: in function `Enable'
...iles\Promixis\Girder5\luascript\ComponentManage r.lua:305: in function `EnableComponent'
...iles\Promixis\Girder5\luascript\ComponentManage r.lua:271: in function `ProcessComponentRequires'
...iles\Promixis\Girder5\luascript\ComponentManage r.lua:293: in function `EnableComponent'
...iles\Promixis\Girder5\luascript\ComponentManage r.lua:543: in function `StartEnabledComponents'
...iles\Promixis\Girder5\luascript\ComponentManage r.lua:219: in function <...iles\Promixis\Girder5\luascript\ComponentManage r.lua:218>
[C]: ?
...iles\Promixis\Girder5\luascript\ComponentManage r.lua:218: in function <...iles\Promixis\Girder5\luascript\ComponentManage r.lua:217>
Thanks,
Jon
Promixis
April 23rd, 2007, 08:41 AM
Jon,
Bug fix for that is here
http://promixis.com/forums/attachment.php?attachmentid=3618&d=1177023260
Fixed in next release
jmbraben
April 23rd, 2007, 07:25 PM
Mike,
Well, it's progress but now it looks like the zip code lookup not quite right:
TreeScript (golua): cannot read C:\Program Files\Promixis\Girder5\zip.lub: No such file or directory
stack traceback:
[C]: in function `dofile'
...irder5\luascript\components\GeographicalLocatio n.lua:266: in function `LookupZipCode'
...der5\/plugins/treescript/GeographicalLocation UI.lua:227: in function `OnEvent'
...romixis\Girder5\luascript\Classes/DUI/ConfigBase.lua:53: in function <...romixis\Girder5\luascript\Classes/DUI/ConfigBase.lua:49>
I don't have anything close to "zip.lub" in my directory.
Thanks,
Jon
Promixis
April 23rd, 2007, 08:15 PM
It should have been installed with G5 - its not in the 517 install. Argh. We did not have our act together for this build. Sorry :(
The location can also set itself using the IP address of your machine - or manually enter for now.
tmorten
June 22nd, 2008, 06:36 PM
Ron -
Is there still a way to retrieve the time of sunrise and sunset from LUA in G5? It doesn't look like the SunriseSunset variable mentioned earlier in this thread is still around.
Best,
Tim
Rob H
June 23rd, 2008, 03:14 AM
You should be able to use either SunriseSunset:GetLocalSunrise() or SunriseSunset:GetSunrise() and the corresponding GetLocalSunset and GetSunset methods.
I'm not entirely sure without looking at the code what the difference is, but the Local versions seem to be the useable values.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.