View Full Version : Girder and NetRemote
sonata31
January 23rd, 2008, 09:21 AM
I use the action NetRemote:Set Variable (All) with Variable = NR.deviceReady and Value = 1
In NetRemote I wait that this variable = 1
With Girder 4 it's ok, with Girder 5 the variable stays to 0
I use Girder 5.0.0 (build 523) beta, NetRemote 2 (build 2.0.0.104)
Rob H
January 23rd, 2008, 11:12 AM
Can you try typing the following in Girder 5's Lua console :-
NetRemote.SetVariable('NR.deviceReady', 1)
if that doesn't work try
NetRemote.SetVariable('NR.deviceReady', '1')
at least then I'll know whether to look at the NetRemote.lua code or the treescript for NetRemote. Thanks.
sonata31
January 23rd, 2008, 11:32 AM
Can you try typing the following in Girder 5's Lua console :-
NetRemote.SetVariable('NR.deviceReady', 1)
if that doesn't work try
NetRemote.SetVariable('NR.deviceReady', '1')
at least then I'll know whether to look at the NetRemote.lua code or the treescript for NetRemote. Thanks.
Nothing is running
Rob H
January 23rd, 2008, 04:41 PM
Can you post a simple, cut down CCF that demonstrates the problem - I've not seen anything like this here.
sonata31
January 23rd, 2008, 11:10 PM
Can you post a simple, cut down CCF that demonstrates the problem - I've not seen anything like this here.
In Girder I have :
action : NetRemote:Set Variable ()All) [Variable = NR.deviceReady, Value = 1]
In my script lua I have : sorry for the comments, I am French
--Precise un device non prêt
function DeviceNotReady()
NetRemote.SetVariable('NR.deviceReady', 0);
end;
--retourne true quand le device est prêt
function DeviceReady()
if (NetRemote.GetVariable('NR.deviceReady') == "1") then
return true;
else
return false;
end;
end;
--Anime la barre de progression d'attente
function AnimeProgressBar (waitTimer)
OpenPopup('996');
local waitProgress = NetRemote.GetVariable('NR.F.progressWait');
if (DeviceReady()) then
NetRemote.SetVariable('NR.F.progressWait', 0);
CloseAnyPopup();
waitTimer:KillTimer();
DeviceNotReady();
if (G_device == "HOME") then
NetRemote.GoHome(G_page);
else
NetRemote.GoDevice(G_device, G_page);
end;
elseif (waitProgress == "10") then
NetRemote.SetVariable('NR.F.progressWait', 0);
else
NetRemote.SetVariable('NR.F.progressWait', waitProgress + 1);
end;
end;
--affiche la page d'un device quand celui-ci est prêt
function GoDeviceWhenReady(device, page)
G_device = device;
G_page = page
waitTimer = NetRemote.SetTimer(500, AnimeProgressBar);
end;
Rob H
January 24th, 2008, 03:05 AM
One more thing to try - delete the Girder plugin instance in NR, restart NR and allow auto discovery to find it then try again.
sonata31
January 24th, 2008, 03:18 AM
One more thing to try - delete the Girder plugin instance in NR, restart NR and allow auto discovery to find it then try again.
How do allow auto discovery ?
Rob H
January 24th, 2008, 03:21 AM
Just make sure you don't have "Disable autodiscovery" checked in File|Properties
sonata31
January 24th, 2008, 03:29 AM
Just make sure you don't have "Disable autodiscovery" checked in File|Properties
It's ok with Girder 5, Thank You
Rob H
January 24th, 2008, 04:38 AM
Great, glad it's working now.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.