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:

ORCV Melbourne to Hobart 2024


Welcome to the legendary "Westcoaster," a race that has tested sailors for over 50 years. Spanning 435 nautical miles, this iconic journey takes racers from Melbourne, across the formidable Bass Strait, and around Tasmania's rugged west coast to the finish line in Hobart. Organized by the Ocean Racing Club of Victoria, the Westcoaster is renowned for its challenging conditions and adventurous spirit. This year, our SOLers will tackle the course in the swift and capable First 47.7, a yacht launched by Beneteau in 2000, built for speed and endurance in long ocean races. Get ready for an exhilarating ride in one of Australia’s most celebrated yacht races!
Race #1841
INFO by brainaid.de
First 47.7 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: SYC
Race starts: Dec 26th 23:00 Registration will open soon
▶ Flash
GO TO RACE

Refeno Rally 2024


Although since 1986 this 300nm course from Recife, Brazil, to Fernando Noronha Island has been run many times IRL, we have only used this route twice in SOL. This time it will be the route of the last race in the ARCH 2024 classification.
Although the winner of the general classification can already be determined, the fight for the next places on the podium should be fierce. There are several contenders and Dofour34 have them at their disposal. Since we are starting in Vida_Maldita's home waters, he will give us a 30-minute handicap. Or maybe we should give it to him? 😊
Race #1865
INFO from brainaid.de
Dufour 34 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking:
ARQ4 - ARCH - SUPSOL - SYC
Race starts: Dec 23rd 17:00 Registration Open!
▶ Flash
GO TO RACE

Tristan da Cunha TIMED Race 2024

Originally designed by NZL_Scotsman, we head for the remote outpost of Tristan da Cunha where gales and storms may come and go but the sea is everlasting. This 64nm TIMED race has been raced on several occasions before, and this time we will be doing it in Rustler 36s.
RE-REGISTER HERE to race again after finishing a run
Race #1875
INFO by brainaid.de
Rustler 36 PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking:
TRQ4 - TRCH - SUPSOL - SYC
REGISTRATION CLOSE: Saturday, 28 December at 22:00 UTC
RACE CLOSE: Saturday, 28 December at 23:00 UTC
Race starts: Dec 15th 12:00 Registration Open!
▶ Flash
GO TO RACE

The Beagle in the Azores 2024


And west the Beagle went one final time to round the Cape of Good Hope on May 31 1836. Ashore, Darwin met up with the Astronomer Royal, Herschel, who just happened to be in South Africa at the same time mapping the southern skies. After sounding out his many ideas on evolution and extinction with Herschel, the Beagle now sailed north, stopping briefly in St Helena, Ascension and Brazil, and the Cape Verdes again, to reach the Azores on September 19, 1836. Fitzroy and Darwin at this stage were in a hurry to get back to Britain, but online in 2024 we will stay a little longer to explore this final remote archipelago in our virtual Tall Ship Class B Beagle, 630nm round and about the islands, minding as always in these waters not to bump into any large cetaceans!
Race #1758
INFOby brainaid.de
Tall Ship Class B PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: SVF - SYC
RACE CLOSE: Friday,
December 27 at 2300 UTC.
Race starts: Dec 14th 13:00 Registration Closed
▶ Flash
GO TO RACE

Christmas(W) to Christmas(E) Island 2024

Two waypoints, start and finish, and between them 5827 NM of two oceans. Not much time if we want to sit at the Christmas Eve table. You will need to maintain an average speed of over 10 knots, so prepare your 90ft well and choose the best of the many possible routes. Hands up everyone who knew there were TWO Christmas Islands?! OK, maybe you have sailed this Sailonline course before... but it's time to get ready for the 2024 challenge of a reversed race, starting in the Indian Ocean, racing to the Christmas Island in the Pacific! It also marks the conclusion of our prestigious Ocean Race Championship 2024. Please have fun! Fair winds!
PRIZE: SMPF
Race #1868
INFO by brainaid.de
90ft Monohull PARTICULARS
WX Updates:
0430 / 1030 / 1630 / 2230
Ranking: OCQ4 - OCCH - SUPSOL - SYC
Race starts: Dec 02nd 11:00 Registration Closed
▶ Flash
GO TO RACE

Go to race archive

SYC Ranking

  1. Sailonline Yacht Club Member WRmirekd
  2. Sailonline Yacht Club Member FreyjaUSA
  3. Sailonline Yacht Club Member Vida_Maldita
  4. Sailonline Yacht Club Member CriticalHippo
  5. Sailonline Yacht Club Member rafa
  6. Sailonline Yacht Club Member Kipper1258
  7. Sailonline Yacht Club Member Satori
  8. Sailonline Yacht Club Member Sax747
  9. Sailonline Yacht Club Member BRENTGRAY
  10. Sailonline Yacht Club Member CollegeFund

View full list

Series

Mobile Client

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

The mobile client