[Opensim-dev] Get grid information from user server?
Dr Scofield
DrScofield at xyzzyxyzzy.net
Fri Jul 25 18:11:35 UTC 2008
Mana Janus wrote:
> Dr Scofield wrote:
>
>> Mana Janus wrote:
>>
>>> Hello,
>>>
>>> Not too long ago, I started working on a new viewer targeted at OpenSim
>>> users. I like the idea of using links like "opensim://user.server:port/"
>>> to easily connect to another grid. They can be handled by the viewer
>>> directly, but the viewer needs more information on the grid, like login
>>> page and helper URI.
>>>
>>> I suggest to add a new function "get_grid_info" to the user server, that
>>> returns an LLSD map containing information on the grid required by the
>>> viewer. The LLSD map allows to add more information any time, without
>>> breaking older viewers.
>>>
>>> Below is an ad-hoc list of information that would be useful to the
>>> viewer. I am sure there is more... :-)
>>>
>>> * Grid name for display, allowing space and other special characters.
>>> * Short grid ID or "unixname", alphanumeric, preferably lower-case.
>>> It can be used as a part of file names for storing grid-specific
>>> information and settings.
>>> * Link to the login page.
>>> * The helper URI.
>>> * Link to the grid's web site.
>>> * Link for "create account".
>>> * Link for "forgotten password".
>>> * Link for "help" and F1.
>>>
>>> I guess this is not a huge effort to implement. Apart from making
>>> opensim:// links work smoothly, it would save the user from typing all
>>> those options on the command line.
>>>
>>>
>> yep, yep, yep :-) a first cut is available from r5658. currently it's
>> not yet an LLSD returning REST, but just an XmlRpc call to
>> get_grid_info (i'll extend it shortly). the plugin will return as a
>> bare minimum the platform ("OpenSim") and the mode ("grid" or
>> "standalone"). if you provide configuration values in OpenSim.ini
>> under the [GridInfo] section, then those will be returned as well.
>> i've updated OpenSim.ini.example with an example section following
>> your list and here's the result of a python XmlRpc call (see
>> share/python/grid_info.py):
>>
>> {
>> 'about': 'http://127.0.0.1/about/',
>> 'welcome': 'http://127.0.0.1/welcome',
>> 'help': 'http://127.0.0.1/help',
>> 'register': 'http://127.0.0.1/register',
>> 'gridnick': 'hippogrid',
>> 'platform': 'OpenSim',
>> 'mode': 'standalone',
>> 'gridname': 'the lost continent of hippo',
>> 'login': 'http://127.0.0.1:9000/',
>> 'password': 'http://127.0.0.1/password',
>> 'economy': 'http://127.0.0.1:9000/'
>> }
>>
>> (not sorted)
>>
>> will do LLSD later.
>>
>> cheers,
>> dr scofield
>>
>
> Wow, that was fast, thanks! Looks great so far!
> As soon as I am up to 1.20 and got a Linux version, I will start on
> retrieving this information in the viewer.
> A REST returning LLSD will be much simpler to handle there :-)
>
yep. working on it. also, need to get this properly into the user server
still. stay tuned.
cheers,
dr scofield
--
dr dirk husemann ---- virtual worlds research ---- ibm zurich research lab
SL: dr scofield ---- drscofield at xyzzyxyzzy.net ---- http://xyzzyxyzzy.net/
RL: hud at zurich.ibm.com - +41 44 724 8573 - http://www.zurich.ibm.com/~hud/
More information about the Opensim-dev
mailing list