SailOnLine and VRTool

VRTool software support forum

SailOnLine and VRTool

Postby jf44 » Tue Feb 14, 2017 7:28 pm

Hi Omar,
Very happy to see that VRTool is always used and helps virtual sailors.

Is it possible to get in VRTool the position of a boat from a SailOnLine course ?
http://www.sailonline.org

I know it's possible to do that with qtVlm. I have explained the trick here (in french with links to english sources)
http://voilevirtuelle.free.fr/SailOnLine/

But for VRTool, lacking of a NMEA interface, it would be easier to use the server URL, like you did for VirtualRegatta before September 2016...

For exemple a skipper logged on a SailOnLine course can get his boat data using a single URL
Code: Select all
http://node1.sailonline.org/webclient/boat.xml?token=2b7b76d8b89b4865024fc3f1e510d0e8

which return a XML like page.
Code: Select all
<data>
<lmi>0</lmi>
<boat>
   <id>303604</id>
   <name>jf44</name>
   <start_time>2017/02/13 18:00:00 1487008800UTCC</start_time>
   <finish_time></finish_time>
   <twa>0.626884510899</twa>
   <twd>1.1290157367</twd>
   <tws>6.04297122202</tws>
   <sog>7.73696187422</sog>
   <efficiency>1.0</efficiency>
   <dtg>428.498639311</dtg>
   <dbl>9.88052145478</dbl>
   <lon>168.154104718</lon>
   <lat>-20.6046301623</lat>
   <cog>0.502131225799</cog>
   <ranking>44</ranking>
   <current_leg>1</current_leg>
   <last_cmd_type>cc</last_cmd_type>
</boat>

<chats>
   <timestamp></timestamp>
</chats>

</data>


The token is generated at login time on SailOnLine interface and can be found with the Firefox's module HttpFox, so the user may input such a link in VRTool.

My question is, can you program a patch for VRTool which read the boat data and display it (with speed, direction, etc.) ?

Last but not least, would it be possible to have some day in VRTool the NMEA and AIS protocol as input, like Bluewater Racing (http://bluewaterracing.com/) and qtVlm (https://sourceforge.net/projects/qtvlm/) have ?

Best regards.

Jean F.
jf44
 
Posts: 6
Joined: Sun May 23, 2010 4:16 am

Re: SailOnLine and VRTool

Postby omar » Wed Feb 15, 2017 11:07 am

VRTool does have a NMEA interface and accepts AIS messages since version 2.30.
I did some work on sailonline interface a couple years ago.

At that time, I was able to connect to SOL server using
Brainaid's NMEA proxy server. It is a little complicated
setup, I'm affraid, but worked at that time.

Just select "TCP/IP Client" mode, set host, port and connect.
The proxy will feed GPS, AIS and instrument messages.
It means your boat position and nearby boats.

See Brainaid's Sailonline Toolbox at http://sol.brainaid.de/sailonline/toolbox/

Also check vrtool release notes at the time: viewtopic.php?f=2&t=3041

And http://www.sailonline.org/board/thread/ ... ne/?page=1

As you see, VRTool does have NMEA/AIS connectivity, so it
might work with those other sources you mentioned.

As for winds, VRTool has interface with NOAA GFS,
with various config possibilities, and can read GRIB 2
files from other sources (ZyGrib, UGrib..).
I'm not sure how SOL generates its winds.

Omar
User avatar
omar
Site Admin
 
Posts: 498
Joined: Thu Apr 30, 2009 11:00 am

Re: SailOnLine and VRTool

Postby jf44 » Fri Feb 17, 2017 3:08 am

Thanks a lot Omar.
I have found where to configure the beast!
It's in "Afficher / GPS / Réglages/ Type de connexion NMEA / TCP/IP Client"
In english "Display / GPS / Settings / NMEA connexion type / TCP/IP Client"

With the Brainaid's Toolbox server it's exactly what I need.

I have now to get a better map and convert the SailOnLine polar to VRTool polar.
Perhaps for that somebody can help me ?
jf44
 
Posts: 6
Joined: Sun May 23, 2010 4:16 am

Re: SailOnLine and VRTool

Postby jf44 » Fri Feb 17, 2017 5:20 am

I managed to get a csv polar from Brainaid's Toolbox
http://sol.brainaid.de/sailonline/toolbox/, then
added header and footer like the VRTool xml polars files
Code: Select all
<polars boatname="MyBoat_X_Y">
<sails>
<sail name="Merged" id="1" bmpfile="" iconindex="1" visible="0">
0;1.943844;3.887688;5.831532;...
0;0;0;0;...
(...)
20;0;0.980058;1.990424;2.972183; ...
(...)
180;0;1.058707;2.16089;3.301285;
</sail>
</sails>
</polars>


First row : TWS
First column : TWA
Cell separator ";"
Decimal point "."

That's all.
jf44
 
Posts: 6
Joined: Sun May 23, 2010 4:16 am

Re: SailOnLine and VRTool

Postby omar » Sat Feb 25, 2017 7:44 pm

Yes. That's the XML format for polar data in VRTool.
You can also use CSV format, more common in VR races.

XML format is more powerful, since it allows representing
multiple sails separately. In you case you choose to provide
a single "Merged" sail. That's fine, but you loose "sail change indications" feature.

Thanks for sharing your experience using VRTool with SOL.

Om
User avatar
omar
Site Admin
 
Posts: 498
Joined: Thu Apr 30, 2009 11:00 am


Return to VRTool Forum