dsmes
February 23rd, 2006, 04:49 PM
1.5.1.60 - Posted 22-Feb-2006
8. Added - HTTP Server configuration to WebBrowser driver How does one use this? What is it for? (The webBrowser, not the configuration).
Do I just point IE (FireFox) on another machine to the NR machine's IP address & port 15000? Or will it only work from a web browser from within NR (on a different client)?
mhwlng
February 23rd, 2006, 11:44 PM
It works exactly the same as the girder httpd plugin, so have a look at the girder httpd manual. (stuff like webserver:GetCGI() works)
See examples in the netremote\httpd directory.
By default it only serves files to localhost, if you want to access the data from another pc, then you need to change the settings.
(not all file types are served yet)
If you create an lhtml file , you can do stuff like :
<tr>
<td>Location : <%return NetRemote.GetVariable("Weather.Home.Location.City")..","..NetRemote.GetVariable("Weather.Home.Location.Country"); %></td>
<td>Last Updated : <% return NetRemote.GetVariable("Weather.Home.TimeStamp.Hour")..":"..NetRemote.GetVariable("Weather.Home.TimeStamp.Minute") %></td>
</tr>
you can set the url for the NR embedded web server using lua like :
NetRemote.ExecuteAction(-2,1,32,'WEBWEATHER,http://127.0.0.1:'..NetRemote.GetVariable('WEB.SERVER.POR T')..'/marcel/weather.lhtml');
you can also serve Netremote image variables by using a special URL :
http://127.0.0.1:15000/nrimgvar.jpg?varname=MP.PlayingNowCover
Marcel
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.