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.
Please login to post a reply.
Posted by jf44 |
|
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 |
|
Posted by Rod |
|
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. |
|
Posted by jf44 |
|
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 |
|
Posted by kroppyer |
|
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. |
|
Posted by jf44 |
|
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 |
|
Posted by Kipper1258 |
|
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. |
|
Posted by jf44 |
|
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 |
|
Posted by kroppyer |
|
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 |
|
Posted by jf44 |
|
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 |
|
Posted by kroppyer |
|
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! |
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
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!
GO TO RACE
Tristan da Cunha TIMED Race 2024
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!
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
GO TO RACE
Christmas(W) to Christmas(E) Island 2024
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
GO TO RACE
SYC Ranking
Series
- SYC ranking
- 2025 TS
- 2025 TRQ4
- 2025 TRQ3
- 2025 TRQ2
- 2025 TRQ1
- 2025 TRCH
- 2025 TD
- 2025 SuperSOLer
- 2025 SSANZ
- 2025 SPRQ4
- 2025 SPRQ3
- 2025 SPRQ2
- 2025 SPRQ1
- 2025 SPRCH
- 2025 SHE
- 2025 SBB
- 2025 RWW
- 2025 RMI
- 2025 RED
- 2025 OCQ4
- 2025 OCQ3
- 2025 OCQ2
- 2025 OCQ1
- 2025 OCCH
- 2025 NT
- 2025 LOOR
- 2025 DN
- 2025 B2B
- 2025 ARQ4
- 2025 ARQ3
- 2025 ARQ2
- 2025 ARQ1
- 2025 ARCH
- 2025 ABS
- 2024 TS
- 2024 TRQ4
- 2024 TRQ3
- 2024 TRQ2
- 2024 TRQ1
- 2024 TRCH
- 2024 TD
- 2024 SVF
- 2024 SUPerSOLer
- 2024 SSANZ
- 2024 SPRQ4
- 2024 SPRQ3
- 2024 SPRQ2
- 2024 SPRQ1
- 2024 SPRCH
- 2024 SHE
- 2024 RTW
- 2024 RMS
- 2024 OCQ4
- 2024 OCQ3
- 2024 OCQ2
- 2024 OCQ1
- 2024 OCCH
- 2024 LOOR
- 2024 HILAT
- 2024 GWT
- 2024 DN
- 2024 CRW
- 2024 B2B
- 2024 ARQ4
- 2024 ARQ3
- 2024 ARQ2
- 2024 ARQ1
- 2024 ARCH
- 2023 TS
- 2023 TRQ4
- 2023 TRQ3
- 2023 TRQ2
- 2023 TRQ1
- 2023 TRCH
- 2023 TD
- 2023 SVS
- 2023 SUPerSOLer
- 2023 SSANZ
- 2023 SPRQ4
- 2023 SPRQ3
- 2023 SPRQ2
- 2023 SPRQ1
- 2023 SPRCH
- 2023 SHE
- 2023 RTW
- 2023 RNI
- 2023 RMS
- 2023 PIC
- 2023 OCQ4
- 2023 OCQ3
- 2023 OCQ2
- 2023 OCQ1
- 2023 OCCH
- 2023 LOOR
- 2023 DN
- 2023 ARQ4
- 2023 ARQ3
- 2023 ARQ2
- 2023 ARQ1
- 2023 ARCH
- 2022 TRQ4
- 2022 TRQ3
- 2022 TRQ2
- 2022 TRQ1
- 2022 TRCH
- 2022 TD
- 2022 Tall Ships
- 2022 SUPerSOLer
- 2022 SSANZ
- 2022 SSA
- 2022 SPRQ4
- 2022 SPRQ3
- 2022 SPRQ2
- 2022 SPRQ1
- 2022 SPRCH
- 2022 SHE
- 2022 OCQ4
- 2022 OCQ3
- 2022 OCQ2
- 2022 OCQ1
- 2022 OCCH
- 2022 NTR
- 2022 LOOR
- 2022 CTR
- 2022 ARQ4
- 2022 ARQ3
- 2022 ARQ2
- 2022 ARQ1
- 2022 ARCH
- 2021 TRQ4
- 2021 TRQ3
- 2021 TRQ2
- 2021 TRQ1
- 2021 TRCH
- 2021 TD
- 2021 Tall Ships
- 2021 SYCQ4
- 2021 SYCQ3
- 2021 SYCQ2
- 2021 SYCQ1
- 2021 SYCCH
- 2021 SUPerSOLer
- 2021 SSANZ
- 2021 SPRQ4
- 2021 SPRQ3
- 2021 SPRQ2
- 2021 SPRQ1
- 2021 SPRCH
- 2021 Shetland
- 2021 PAC6
- 2021 OCQ4
- 2021 OCQ3
- 2021 OCQ2
- 2021 OCQ1
- 2021 OCCH
- 2021 ESRW
- 2020 TSE
- 2020 TSA
- 2020 TRQ4
- 2020 TRQ4
- 2020 TRQ3
- 2020 TRQ2
- 2020 TRQ1
- 2020 TRCH
- 2020 Tasman Double
- 2020 SYCQ4
- 2020 SYCQ3
- 2020 SYCQ2
- 2020 SYCQ1
- 2020 SYCCH
- 2020 SUPerSOLer
- 2020 SSANZ
- 2020 SRQ4
- 2020 SRQ3
- 2020 SRQ2
- 2020 SRQ1
- 2020 SPRCH
- 2020 Shetland
- 2020 RTW
- 2020 RNI
- 2020 Odyssey
- 2020 OCQ4
- 2020 OCQ3
- 2020 OCQ2
- 2020 OCQ1
- 2020 OCCH
- 2020 A3
- 2019 TRQ4
- 2019 TRQ3
- 2019 TRQ2
- 2019 TRQ1
- 2019 TRCH
- 2019 Tasman Double
- 2019 Tall Ships
- 2019 SYCQ4
- 2019 SYCQ3
- 2019 SYCQ2
- 2019 SYCQ1
- 2019 SYCCH
- 2019 SUPerSOLer
- 2019 SSANZ
- 2019 SRQ4
- 2019 SRQ3
- 2019 SRQ2
- 2019 SRQ1
- 2019 SPRCH
- 2019 Shetland
- 2019 Round New Zealand
- 2019 OCQ4
- 2019 OCQ3
- 2019 OCQ2
- 2019 OCQ1
- 2019 OCCH
- 2018 TRQ4
- 2018 TRQ3
- 2018 TRQ2
- 2018 TRQ1
- 2018 TRCH
- 2018 Tasman Double
- 2018 Tall Ships
- 2018 SUPSOL
- 2018 SSANZ Triple
- 2018 SRQ4
- 2018 SRQ3
- 2018 SRQ2
- 2018 SRQ1
- 2018 SPRCH
- 2018 Shetland
- 2018 Shackleton Challenge
- 2018 OCQ4
- 2018 OCQ3
- 2018 OCQ2
- 2018 OCQ1
- 2018 OCCH
- 2018 40CH
- 2017 TS RDV
- 2017 TRQ4
- 2017 TRQ3
- 2017 TRQ2
- 2017 TRQ1
- 2017 TRCH
- 2017 Tasman Double
- 2017 Tall Ships
- 2017 SWR
- 2017 SUPSOL
- 2017 SSANZ Triple
- 2017 SSANZ RNI
- 2017 SPRR3
- 2017 SPRR2
- 2017 SPRR1
- 2017 SPRCH
- 2017 Red Dot
- 2017 OCQ4
- 2017 OCQ3
- 2017 OCQ2
- 2017 OCQ1
- 2017 OCCH
- 2017 40CQ3&4
- 2017 40CQ1&2
- 2016 TRQ4
- 2016 TRQ3
- 2016 TRQ2
- 2016 TRQ1
- 2016 TRCH
- 2016 Tasman Double
- 2016 Tall Ships
- 2016 SUPSOL
- 2016 SSANZ Triple
- 2016 SRQ4
- 2016 SRQ3
- 2016 SRQ2
- 2016 SRQ1
- 2016 SPRCH
- 2016 RTWR
- 2016 OCQ4
- 2016 OCQ3
- 2016 OCQ2
- 2016 OCQ1
- 2016 OCCH
- 2016 Corporate Open Gold
- 2016 A3
- 2015 TRQ4
- 2015 TRQ3
- 2015 TRQ2
- 2015 TRQ1
- 2015 TRCH
- 2015 Tasman Double
- 2015 Tall Ships
- 2015 SYQ4
- 2015 SYQ3
- 2015 SYQ2
- 2015 SYQ1
- 2015 SYCCH
- 2015 SUPSOL
- 2015 SSANZ Triple
- 2015 SRQ4
- 2015 SRQ3
- 2015 SRQ2
- 2015 SRQ1
- 2015 SPRCH
- 2015 OCQ4
- 2015 OCQ3
- 2015 OCQ2
- 2015 OCQ1
- 2015 OCCH
- 2015 Aegean Rally
- 2014 Timed Races Championship
- 2014 Tasman Double
- 2014 Tall Ships
- 2014 SYC Championship
- 2014 SSANZ Trio
- 2014 SSANZ RNI
- 2014 Sprints Championship
- 2014 Scandinavian Tour
- 2014 Round The World Race
- 2014 Ocean Championship
- 2014-2015 Sailonline World Race
- 2013 Tall Ships
- 2013 SYC Championship
- 2013 SSANZ B&G Simrad
- 2013 Capt Anderson
- 2012 W Australia Regatta
- 2012 Tall Ships
- 2012 SSANZ B&G Simrad
- 2012 RNZ Two Handed
- 2012 Global Challenge
- 2012 Ecker Cup
- 2012 Black Sea
- 2012 A3
- 2011 Vancouver Island
- 2011 Tasman Double
- 2011 SSANZ B&G Simrad
- 2011 SOL Global Challenge
- 2011 SJORA Series
- 2011 Scandinavian Tour
- 2011 Round North Island
- 2011 Asian Sprints
- 2011-2012 SOL World Race
- 2010 Tasman Double
- 2010 Ouzo Rally
- 2010 Iberian Tour
- 2010 Auckland Regional
- 2009 French SOLo
- 2009 Bosphore - Bretagne
- 2008 SYCC
- 2008 -2013 SYC Week Race Championship
- 2008 -2013 SYC Week-End Race Championship
- 2008 -2013 SYC Ocean Race Championship
- 2008-2009 Sailonline Ocean Race
- 2004 LOOR
Mobile Client
SYC members have the benefit of access to our mobile/lightweight web client!