Facebook

Login

Support Sailonline

If you haven't already - join the SAILONLINE YACHT CLUB!

Please also consider making a donation - all amounts are greatly appreciated!

Board » Technical Support » Getting TWA and TWS of "friends" boats.

Page: 1 2 Next

Hi SOLers.

I am trying to improve a lot the SOL's Google Earth interface. The idea is to display each Soler boat at course in 3D in G.E. with the right direction, speed, sail and trajectory...
Very fancy and absolutely useless.
All what I like so much in the RKN's spirit.

It's something I was used to do with Virtual Regatta and I thought it was a lot more easy with SOL very open philosophy.

But alas it's not.

1) Collecting data with NMEA Proxy from Brainaid's toolbox, I get the name, direction, speed and state of each boat.
Perfect.
But nor the TWA nor the TWS of each "friend" boat.
Yes I know that I could get them from Grib, but it's a lot of work for such a few data.

2) For each boat I need also the type of sail used at the positions collected.
That too could be derived from TWA and TWS and the boat polar.

3) And for the sake of realism, I need for each boat the hull and sails colors.

They don't exist anywhere because SOL does not need them, so I could invent them. But would'nt it be better to give the opportunity to solers to choose their wardrobe ?

So my questions :

It is a way to get the TWA / TWS data for each boat on course directly from SOL server (is that possible and how ?)

OR

get them from the AIS sentences sended by the Brainaid's NMEA proxy server (they need to be added to the flow of data).



Jean from Nantes.
Dans le tourbillon du Web
Attachments
May I refer you to an existing program called VirtualSailor 7.5, by Ilan Papini, which produces a much more realistic sailing experience than SOL. It does not, however, have a lot of the SOL features, such as polars, predictor lines, NOAA Wx, or as many sailing sites. It also cannot handle more than about 20-25 boats at a time.
It does have a free demo feature, and is entirely self contained within your own computer.
While these are definitely deficiencies from the point of view of SOLers, it has many features which would increase the sailing experience for those who are less "competitive", and gives a greatly improved 'visual' look at sailing and racing. It has small freighters, small submarines, motor cruisers, speedy racing run-abouts, guns, torpedoes, lighthouses, navigation buoys, harbours, houses, old castles, etc.. along with waves, rain, hail, and snow. It even has men jogging for exercise along the piers in the harbours. Most of these things may be ignored for our purposes in SOL.
Perhaps Mr Papini might be induced to collaborate with SOL to produce a much improved and much more extensive sailing experience.
The VirtualSailor 7.5 program costs about $35.00 Can. but volunteers have designed extensive additions to the basic program in terms of boats, scenery and sailing sites.
There is no need to "re-invent the wheel" when so much of the work has already been done.
One aspect that may be helpful to SOL is that this could be a program that could be purchased from SOL, and this would help markedly in the overall finances of the SOL operation.

--- Last Edited by Rod at 2017-02-26 15:10:42 ---
If it breaks, it's not strong enough--if it doesn't, it's too heavy.
Thanx Rod. I know of course that there is a lot of very good virtual sailing games, like for exemple Vieux Loup de Mer (VLM), Ocean Virtuel, Liveskipper, VSK, etc.

My purpose is not to program nth on-line game but to display our SailOnLine boats on Google Earth maps.
No more, and just for the fun.
Dans le tourbillon du Web
That would be marvellous! For TWA/TWS from other boats you need to get the weather and determine TWD/TWS at the other's position yourself. If you're already retrieving fleet positions and heading directly from sol, this should not be much of a problem.

To use different hull/sail colours for the each boat, you can initially use the one colour automatically and randomly assigned when you register (again, not much additional trouble to retrieve these colours). Later we could use flagpole* to have users change their hull/sail colours.

I can probably help you in the right direction if you're stuck.

*) http://sol.kroppyer.nl/flagpole/
You can create flags, and activate them for your own boat. The meaning of each flag is up to the interpretation of the users. Basically, flagpole let's solers add arbitrary data to their boat, for everyone else to see. If I think it's worth it, I could extend flagpole a little so that people don't have to create a flag for every colour of the rainbow.
Thanx Kroppyer.
Actually I do not retrive positions directly from Sol but by the Brainaid's Toolbox NMEA server.

How can I access to the boats colors ? Is there any Web service like
http://node1.sailonline.org/webclient/boat.xml?token=xxxxxxxx

BTW I have set up random colors for the boats.

regards.
Dans le tourbillon du Web
Attachments
You need this file http://node1.sailonline.org/webclient/race_1018.xml?token=xxxx which has for each boat

<boat>
<id>285746</id>
<name>simon_148</name>
<color_R>225</color_R>
<color_G>197</color_G>
<color_B>33</color_B>
<type>TP-52</type>
<dtg>576.196679386</dtg>
<dbl>210.385518882</dbl>
<lon>114.2</lon>
<lat>22.3</lat>
<cog>0.798365726218</cog>
<ranking>179</ranking>
<current_leg>0</current_leg>
<log>0.0</log>
</boat>

Note that it is a compressed file and your code needs to uncompress it when you receive it.
Thanx Kroppyer Kipper,
This piece of code works "à la perfection" :).
But this is only hull color. So I think the best will be to publish a form to allow Sollers to choose their sails.

BTW is it a mean to get old messages from race 1018 chat because I have missed the comments about my pictures.



--- Dernière modification par jf44 le 2017-02-27 16:08:03 ---
Dans le tourbillon du Web
The last post was not me but Kipper, he knows his way around this tech side as well. Have a look here to see some of his work.

Sailonline only uses one colour for boats (no separate sail colours), and people can't choose their hull colour either (well, RC can, but she's special). My suggestion is to get everything working with just this single colour, and then indeed use some kind of form where people can change their hull/sail colour.

Chat messages are stored but we don't normally check old messages, it something I'm only prepared to do when investigating possible rule infringements, which luckily doesn't really happen in sol :)
Thanx. If course I know (and use) DC Checker.

I am implementing the direct access to Sol server. It will more effective than to depend on NMEA sentences which require un local server.

I hope that the beta version will be on line this evening or tomorrow.

I'll use my own server, but if you think that it would be better to use a SOLFan one, I can FTP the sources (PHP) (Creative commons / GNU licence of course)

Jean.
Dans le tourbillon du Web
I think javakeda (hosting solfans) would be happy to host your code on solfans. I'm also happy to host it on sol.kroppyer.nl. But it's probably easiest if you use your own server, at least while beta testing. I'll link to it from sol.kroppyer.nl though! :)

Looking forward to the beta!

Page: 1 2 Next

Please login to post a reply.

Races

Next Race: 00d 00h 00m


Current Races:

Elephant Island to Marquesas 2025

Prepare to test your limits as we launch into the third leg of the RWW Series and the fifth leg of the 2025 Ocean Championship Series—an epic voyage from Elephant Island to the Marquesas in the heart of French Polynesia. This 4,700-nautical-mile challenge is a true test of endurance, strategy, and raw sailing adrenaline. Aboard the high-performance Volvo 70v4, competitors will face fierce headwinds as they round the legendary Cape Horn and make the thrilling transition from the Atlantic to the Pacific. Do you have what it takes to conquer the Pacific? Join us, and put your skills to the ultimate test.
PRIZE: SMPF
Race #1909
INFO by brainaid.de
VO70_v4 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: OCQ2 - RWW - OCCH - SUPSOL - SYC
Race starts: May 05th 11:00 Registration Open!
▶ Flash
GO TO RACE

Bosphorus Strait Sprint 2025


Welcome to the Bosphorus for a testing sprint twice through the narrow channel separating the Black Sea from the Mediterranean - the traditional boundary between Europe and Asia.
Race 1914
INFO by brainaid.de
Dehler 30 OD PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking:
SPRQ2 - SPRCH - SUPSOL – SYC
Race starts: May 04th 09:00 Registration Open!
▶ Flash
GO TO RACE

Bay to Bay 2025 - Leg 2 - Great Sandy Stait

After a thrilling opener, the 2025 edition of the Bay to Bay Yacht Race continues with Leg 2, bringing even more adrenaline and tactical excitement to the waters of the Great Sandy Marine Park. In collaboration with the Hervey Bay Sailing Club, our SOLers will once again take the helm of their lightning-fast 18-foot skiffs, this time tackling a 24-nautical-mile course through shifting breezes and tight competition.

With fresh legs, sharper tactics, and everything to race for, it’s anyone’s game! See you on the start line for the grand finale!
Race #1906
INFO from brainaid.de
18ft Skiff PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: B2B - SYC
Race starts: May 03rd 21:30 Registration Open!
▶ Flash
GO TO RACE

Bay to Bay 2025 - Leg 1 - Great Sandy Strait

Prepare for an electrifying start to the 2025 Bay to Bay Yacht Race! In partnership with the Hervey Bay Sailing Club, this first leg will see our SOLers take on a fast-paced, 16-nautical-mile sprint through the stunning waters of the Great Sandy Marine Park, weaving past the breathtaking landscapes of the Great Sandy National Park. Racing in high-powered 18-foot skiffs, the fleet will battle shifting winds, tricky tactics, and fierce competition—all in pursuit of victory! With the thrill of the race and an unforgettable sailing experience ahead, we can’t wait to see you on the start line!
Race #1905
INFO from brainaid.de
18ft Skiff PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: B2B - SYC
Race starts: May 03rd 01:00 Registration Open!
▶ Flash
GO TO RACE

Regata dell’Accademia Navale 2025

Welcome to Sailonline’s first partnership with the City of Livorno, in cooperation with the local yacht clubs and the Italian Navy, to offer you the online opportunity to race the Regata dell’Accademia Navale. 630nm in length, starting and finishing in Livorno, the race takes you the length and breadth of the Tyrrhenian Sea via Porto Cervo and Capri. Online, you will be sailing a Class 40, which should keep you well in with the top of the real-life fleet which we will be tracking on screen!
Race #1902
INFO by brainaid.de
Class 40 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: SYC
RACE CLOSE: Friday,
May 9 at 2300 UTC.
Race starts: Apr 27th 09:00 Registration Closed

▶ Flash
GO TO RACE

Transat à Deux 2025

Above you see a single-handed sailor semi-foiling his Beneteau Figaro III to the horizon. It is in fact Ireland’s Sailor of the Year and the overall winner of last year’s Solitaire du Figaro, Tom Dolan. Somehow, we got our hands on a polar for the Class, and rather than trying to surreptitiously track Tom and his mates in the 2025 edition of the Solitaire, sailing rather-short, single-handed legs across the Celtic Sea and Biscay, we thought we’d see how our virtual craft would fare on the Class’s double-handed 3900nm Trans-Atlantic, from somewhere in Brittanny to somewhere in the Caribbean via somewhere in the Canaries. Allez, mes braves!
Race #1901
INFOby brainaid.de
Figaro III foil PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: SYC
Race starts: Apr 20th 11:00 Registration Closed
▶ Flash
GO TO RACE

Sinbad by Balloon 2025 - Toamasina to Baia de l'Oiseau


You may recall that when last we visited Madagascar in the company of Sinbad, the Sultan commanded our intrepid inspirator to seek out fabled islands where in Summer the sun barely set. We did and we returned but the Sultan wasn’t happy with Sinbad’s report, so here we go again, now by SOL Balloon instead of sailing vessel. Expect to be in the air for at least 2100nm and depending on how the wind brings us, anything between two weeks and two months before we shall descend at the Sultan’s given coordinates!
Race #1884
INFOby brainaid.de
SOL Balloon PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: SYC - SBB
Race starts: Apr 09th 11:00 Registration Closed
▶ Flash
GO TO RACE

Valparaiso to San Francisco 2025

Get ready for an exhilarating new challenge as we set sail on the fourth leg of the 2025 Ocean Championship Series! Following in the 19th century footsteps of Isabel Allende's heroine, Eliza Sommers, 'Daughter of Fortune', this all-new route takes us across the vast eastern Pacific, from Valparaíso, Chile, to San Francisco, California - a 3500nm journey of endurance, strategy, and pure sailing adrenaline. This leg will be raced aboard the powerful Rapido 60, pushing sailors to their limits as they navigate the open ocean. Do you have what it takes to conquer the Pacific? Join us and put your skills to the ultimate test!
PRIZE: SMPF
Race #1900
INFO by brainaid.de
Rapido 60 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: OCQ2 - OCCH - SUPSOL - SYC
Race starts: Apr 07th 11:00 Registration Closed
▶ Flash
GO TO RACE

Go to race archive

SYC Ranking

  1. Sailonline Yacht Club Member Patrick70119
  2. Sailonline Yacht Club Member WRmirekd
  3. Sailonline Yacht Club Member CriticalHippo
  4. Sailonline Yacht Club Member KaSToR
  5. Sailonline Yacht Club Member FreyjaUSA
  6. Sailonline Yacht Club Member vida
  7. Sailonline Yacht Club Member rumskib
  8. Sailonline Yacht Club Member bonknhoot
  9. Sailonline Yacht Club Member Kipper1258
  10. Sailonline Yacht Club Member rafa

View full list

Series

Mobile Client

SYC members have the benefit of access to our mobile/lightweight web client!

The mobile client