Post by iconPost by GeGaX | 2017-12-22 | 00:21:45

Following on the new evolution of the 'Route zezo.org' native extension on Google Chrome, I start this new post.

They are now 2! ;)

- The current v1.8 is powered in v2.7 with a new
It is MultiRaces and active only on zezo.
Route zezo.org v2

- Her little sister was born, a practice that I did not use *, powered directly in v1.7 and which keeps the original icon
She is MonoRace and active on zezo of course but also on VR
Route v1


*: It keeps the content of the page cached and allows you to display it when you are on the page of your course on VR.
/!\ If you participate in several courses at the same time, think about updating the page of the race you want, otherwise you will see the cache of the race consulted before /!\



The 2 will be maintained, during possible changes, their use is different.

Those who do not like the new version, v1.8 become v2.7, (Application grayed (GC) or Invisible (FF / Opera) when you are not on the page zezo) must download the v1.7 link above )

the extensions are FireFox (FF) compatible with the add-on 'Chrome Store Foxified' / Opera with the addon 'Download Chrome Extension'.

Here, I hope I can please everyone according to its use ;)

commenticon 51 Comments
Post by iconPost by zezo | 2017-12-22 | 00:37:12
You can have both at the same time with 2-3 lines of code. Just take the pageAction.show() outside of the url check. Or return to browser action but leave the tabId logic.
Post by iconPost by GeGaX | 2017-12-22 | 00:48:03
Personally I prefer the new use (with the gray icon) when not on the zezo page and avoids errors on several races.
But some use the extension directly under VR via VR Dasboard which automatically open the zezo page without going through it. What was the v1.7

Keep the 2 is not a problem but everyone has their habits and they let me know so I'm just trying to please everyone
Post by iconPost by GeGaX | 2017-12-24 | 16:59:01
Update in v1.8 for the monorace and in v2.8 for the multiraces

Changelog:
- Added the Timezone column.
Previously, zezo gave hours in CET / CEST format (Central European Time / Central European Summer Time = UTC + 1 / UTC + 2)
It changes, eventually I hope that we can have a checkbox to have the local timezone as in VR Dashboard which will be I think in the format UTC + 1 / UTC + 2 for the FR, but it turns out that the code on the server is a little more complex so for now it will be UTC.
 
To avoid mistakes I prefer to appear so there will be a small gymnastics to do, only the Jules Verne Trophy is in UTC at the moment

Route zezo.org is already able to read the future format of the local time zone if Cvetan implements it (I am ready to help if necessary;))

Here we go, have a good holiday season;)
Post by iconPost by Ursus Maritimus | 2017-12-24 | 19:26:58
naais! could you give them different names in chrome webstore?

e.g. single race and multiple race ?
Post by iconPost by GeGaX | 2017-12-24 | 19:41:48
First post on the topic you have the details and yes I would try to differentiate them better
Post by iconPost by Ursus Maritimus | 2017-12-24 | 19:58:01
no big deal, but easier to select on the Chrome webstore. now they have the same name. first bear and turkey
Post by iconPost by GeGaX | 2017-12-25 | 04:29:39

Post by iconPost by Pen Glops I | 2018-01-02 | 10:25:01
Bonne année à tous,

La version monocourse ne marche plus ? Il y a quelques jours c'était impec sur la Clipper, mais là sur la VOR j'ai plus rien, même pas le numéro de version…
La version Multi est ok, mais je préfère avoir ces infos disponibles sur la page de VR…

Happy new year all,

Is the monorace version don't work anymore ?

Claude
Post by iconPost by GeGaX | 2018-01-02 | 11:07:20
Hi,
I found the error I correct and I update.
Available in less than an hour on Chrome web store.
Post by iconPost by Pen Glops I | 2018-01-02 | 11:27:52
Yea, cool, tx
Post by iconPost by GeGaX | 2018-04-04 | 20:12:08
Hi,

The v3 (Multiraces) and v2 (MonoRace) will be available in 1 hour max (I just upload them).

The changelog is common to both versions namely:

- a new icon.

- a checkbox named Local Time in the bottom right which when the times are in UTC on zezo (ex Jules Verne) they will be converted to the local time (time zone of the pc) with an indication UTC ± XX: XX
If the zezo times are CET or CEST they will not be converted instead, CET and CEST will become UTC + 1 and UTC + 2 respectively.

- TWAm / BTWm we have a complete overhaul now the calculation is no longer linear but trigonometric so no more difference of 1 or 2 ° for TWAm and more far-fetched values for BTWm when it went through 0 ° . In passing TWAm and BTWm become respectively ATWA and ABTW - A for Average.

Route zezo.org is dedicated to further evolution ...

Kenavo and good use
Post by iconPost by toxcct | 2018-04-04 | 20:18:27
Good Job mate.

One question though.
What is the difference between the 2 extensions ? I cannot find out by myself :/
Post by iconPost by GeGaX | 2018-04-04 | 20:34:02
Hi Toxcct;),
The v3 allows you to switch on several races because they are only active on current page of zezo
The v2 is active all the time and therefore allows you to display the table when you are on the page of your race VR (cache) - the problem is that in case of several races, it is necessary to be careful that the display board corresponds well to the race page on which you are.

Post by iconPost by woffer | 2018-04-04 | 23:00:10
Another fine revision, and thanks. Can you please explain how the ATWA and ABTW are calculated?

Post by iconPost by GeGaX | 2018-04-05 | 11:15:34
function atwaCalc(twaList) {
const
twaData = twaList;
Math.radians = function(degrees) {
return degrees * Math.PI / 180.0;
},
Math.degrees = function(radians) {
return radians * 180.0 / Math.PI;
};
let
arX = [],
arY = [],
somX = 0.0,
somY = 0.0,
avgX = 0.0,
avgY = 0.0,
atwa = 0.0;
for (const [i, angle] of twaData.entries()) {
arX = Math.cos(Math.radians(angle));
arY = Math.sin(Math.radians(angle));
}
for (const value of arX) {
somX += value;
}
avgX = somX / arX.length;
for (const value of arY) {
somY += value;
}
avgY = somY / arY.length;
atwa = Math.round(Math.degrees(Math.atan2(avgY, avgX)));
if (isNaN(atwa)) {
atwa = "-";
}
return atwa;
}
function abtwCalc(btwList) {
const
btwData = btwList;
Math.radians = function(degrees) {
return degrees * Math.PI / 180.0;
},
Math.degrees = function(radians) {
return radians * 180.0 / Math.PI;
};
let
arX = [],
arY = [],
somX = 0.0,
somY = 0.0,
avgX = 0.0,
avgY = 0.0,
abtw = 0.0;
for (const [i, angle] of btwData.entries()) {
arX = Math.cos(Math.radians(angle));
arY = Math.sin(Math.radians(angle));
}
for (const value of arX) {
somX += value;
}
avgX = somX / arX.length;
for (const value of arY) {
somY += value;
}
avgY = somY / arY.length;
abtw = Math.round(Math.degrees(Math.atan2(avgY, avgX)));
if (isNaN(abtw)) {
abtw = "-";
} else if (abtw < 0) {
abtw += 360;
}
return abtw;
}


For twaList and btwList:
function space(value) {
if (value < 10) {
value = " " + value;
}
return value;
}
function zero(value) {
if (value < 10) {
value = "0" + value;
}
return value;
}
function genIteNext(ttwCurr) {
var ttwCurr = ttwCurr.match(/.*?([0-9]{1,3}):([0-9]{2})/);
var ttwHours = parseInt(ttwCurr[1], 10);
var ttwMinutes = parseInt(ttwCurr[2], 10);
var ttwNext = [];
if (ttwMinutes + 10 < 60) {
ttwNext = "T+" + space(ttwHours) + ":" + zero(ttwMinutes + 10);
} else {
ttwNext = "T+" + space(ttwHours + 1) + ":" + zero(ttwMinutes - 50);
}
return ttwNext;
}
for (var i = 0; i < points.length; i++) {
points.atwa = atwaCalc(twaList);
points.abtw = abtwCalc(btwList);
while (points.ttw !== ttwLast) {
twaList.push(parseInt(twaLast, 10));
btwList.push(parseInt(btwLast, 10));
ttwLast = genIteNext(ttwLast);
}
twaLast = parseInt(points.twa, 10);
btwLast = parseInt(points.btw, 10);
if (twaList.length === 0) {
twaList.push(twaLast);
btwList.push(btwLast);
} else if (twaList[0] * twaLast < 0) {
twaList = [twaLast];
btwList = [btwLast];
} else {
twaList.push(twaLast);
btwList.push(btwLast);
}
ttwLast = genIteNext(ttwLast);
}




Post by iconPost by woffer | 2018-04-05 | 17:20:49
Thanks GeGaX. LOL. Way above my pay grade in your coding explanation. My question was much more simple in its intent: How many waypoint and 10 minute increments are being used to derive predicted averages?
But thanks for taking the time
Post by iconPost by GeGaX | 2018-04-05 | 20:27:30
OK sorry ;)
This calculation takes into account iterations of 10 minutes ...
twaList create the missing iterations (and unnecessary to display) original cvetan instruction lines for the calculation of ATWA and ABTW (these are the green (ATWA) and red / blue (ABTW) lines as a BUT limit limited number ( Portside starboard )
I do not know if google translation translated correctly ..
Post by iconPost by feriber | 2018-04-05 | 06:06:11
Once again, thank you all for your jobs.

Kindest regards,

Fernando
Post by iconPost by mak08 | 2018-04-05 | 11:30:31

Post by iconPost by zezo | 2018-04-06 | 08:57:38



Post by iconPost by GeGaX | 2018-04-06 | 15:07:41
@mak08 et @zezo
I see nothing, it’s normal ? :/
Post by iconPost by zezo | 2018-04-06 | 16:47:55
A ton of closing tags for the array index variable ;-) It gets interpretted like <i> tag and the whole page becomes italic ;-)

The "forum" code was written in one afternoon so it's a bit naive.

Post by iconPost by GeGaX | 2018-06-03 | 11:15:17
I'm currently "working" on v3.1, several improvements will be available.



1 - Local Time:
If the "Local Time" checkbox is checked, the CET / CEST and UTC times should be displayed in the local time of the country where the extension is running.

For now, I have a bug ... if the extension is closed with the checkbox "Local Time" active, the popup is not displayed correctly in the next click, I have a conflict between the storage of the state of the checkbox and my css ... (If anyone wants to help me it will be with great pleasure)

2 - Position:
Now it is possible to know the coordinates of the GPS points of the zezo route.

3 - Highlighting:
For better readability, when you point the mouse on a row of the table, it becomes highlighted.

4 - GPX:
If you click on the ".GPX" button, a file of the zezo route is generated in the textarea. Just select it, copy it and past it to your favorite text editor (for Windows, Notepad is more than enough). Save the file by giving it the name you want by not forgetting to put .gpx at the end of it.

This file, you can import it into any routing software (QtVlm for example) or other (Google Earth for example and its usefulness depends on everyone but it is interesting to be able to compare different routes from different routing software.
(As a reminder, the grib to use is "all.grib" that Cvetan makes free of charge)

I can put the unpacked extension for download here, if you are interested let me know.
The expected return would concern Local Time, I would like to know if the display is correct for Date Time and TZ for a country that is not CEST (UTC + 2)

Post by iconPost by MidnightFoiler | 2018-06-03 | 14:01:12
I would be happy to try it out. As you know I'm interested in the local time part. I am a programmer too so may be able to help, although web programming is not my strength.
Post by iconPost by GeGaX | 2018-06-03 | 18:29:10
https://uploadfiles.io/o6d4p

If you have installation problems let me know;)

Edit: I changed host
Post by iconPost by MidnightFoiler | 2018-06-04 | 13:04:39
I have installed it no problem but it is not showing any route information. I was using the monorace version 2.0 and have disabled that extension and restarted Chrome but still nothing. Any ideas?

... I just tried v3.0 and it works ok.

Post by iconPost by GeGaX | 2018-06-04 | 13:32:01
# 1 - Install the v3.1 extension
# 2 - Open a zezo race (whatever)
# 3 - Either it works and so everything is good or it does not work, in this case it is necessary to erase the navigation data of Chrome by selecting "Cookies and other site data" and "Images and files cached" then resume at Step 2
Post by iconPost by MidnightFoiler | 2018-06-04 | 14:42:52
Just tried that including a restart after #3 and still no good. I've opened the debugger on the background page but that doesn't help. How can I start it on the popup?

Note the detection of the zezo tab works, it just pops up with no data when you click on the coloured icon.
Post by iconPost by GeGaX | 2018-06-04 | 16:00:05
Use Ccleaner to clean your PC
Post by iconPost by GeGaX | 2018-06-04 | 17:18:19
@MidnightFoiler
I do this for installing the extension in developer mode

https://youtu.be/150NNQCYX9U
Post by iconPost by MidnightFoiler | 2018-06-05 | 22:26:54
That is what I have done. After reloading the zezo tab it still shows an empty list of directions.

I have worked out how to debug it. It does not seem to be running myscript.js because it has an error on this line of bundle.js that points is undefined:
for (var i = 0; i < points.length; i++) {
Post by iconPost by Ursus Maritimus | 2018-06-08 | 08:50:26
same problem as MidnightFoiler, regularly no data on Route zezo.org v3.0

By the way, the local time checkbox works opposite to VR Dashboard:

VR Dashboard v2.2.0 multi-race
name --> local times
- unchecked --> UTC time
- checked --> local time (e.g. CEST)

Route zezo.org v3.0
name --> Local Time
- unchecked --> local time (e.g. CEST)
- checked --> local time in UTC (e.g. UTC+2)

Zezo routing maps
- normal race --> local time (e.g. CEST)
- record race --> UTC
I see no option to select local time, I seem to remember that is was there in the past.

Is it possible to make Route zezo.org consistent with VR Dashboard on this aspect? And maybe let the ZEZO maps follow VR Dashboard preference>

Is it an idea to rename Route zezo.org to VR Dashboard Data ?
Post by iconPost by GeGaX | 2018-06-08 | 20:38:08
v3.0 and v2.0 do not handle Local Time 100%, only UTC to Local conversion actually works, CET / CEST conversion to Local is "distorted" display is forced to UTC + 1 or UTC + 2.

I am working on it at the moment but it takes time because I do not have the necessary knowledge and currently I have a lot of work so patience 😉

Is it possible to make Route zezo.org consistent with VR Dashboard on this aspect? And maybe let the ZEZO maps follow VR Dashboard preference.
Sorry I do not understand well (google translation does not translate it correctly I think) if you can rephrase it would be cool

Is it an idea to rename Route zezo.org to VR Dashboard Data ?
No Route zezo.org will never be called VR Dashbord Data because Route zezo.org is a "complement" to zezo, it lists the instructions of zezo, puts forward possible options (foils) and soon will convert times UTC, CET and CEST in local time. Only ATWA and ABTW are debatable but me they serve me a lot and it works (I finished 33rd of the AG2R while sailing with that almost)
It does not interact with VR Dashboard so I do not understand why VR Dashboard Data ...


There are 4 programs that allow to be competitive on VR each has its role I would even say that mine is not mandatory in contrast Zezo (Cvetan), VR Dashboard (mak08) and the generator and polar graphic (toxcct) it's 3 are essential
Post by iconPost by Ursus Maritimus | 2018-06-08 | 21:49:46
Hi Gegax, thanks for the replies.

time zones - ok, I see. Sorry can't help you as I'm not a code expert. Used to be a product manager, so more about what and how programs work for the user.

consistency is that the ways the checkbox work are opposite between VR Dashboard and route zezo.org. time zone is also not the same, but that is basically the first point.

rename; you are right. your extension is 100% unrelated to VR Dashboard and works as add-on to zezo routing maps. forget my question

4 programs, yes. I like your extensions, because it shows sail changes and foils working area. thing I use it for: selecting my options before the race, especially if you can route the entire race (so not in the mickey mouse buoy races and not in VOR leg 10). I use it to see where to plan or avoid sail changes and finetune that with toxcct polars. and I use it sometimes to plan manouvers if I'm am forced to use mobile app without navcards. SO great tool and that's why I ask questions about it. in order of importance to me: zezo routing with VR dashboard for convenient entry of my position and race for routing, polars and route zezo.org.

VR Dashboard I used a lot in the beginnen, but now less and less. Most of the info on opponents is outdated or not accurate (sail, DTF, speed, windspeed). you can;t use DTFc at the end of races. also the race log is not very accurate on the DTF and position. Good to see confirmations by VR of changes as well as the exact angle.

Thanks you all for the great tools that enable us to reach much better results than without.




Post by iconPost by GeGaX | 2018-06-25 | 13:01:51
Hi,
I put v3.1 RC2 (not packaged so to install in developer mode) here for some tests on "Local Time", normally the display will be correct (according to my tests)

Changelog v3.1 RC2:
- Added conversion of UTC / CET and CEST times to the local time from which the extension is run.
- Export of the route proposed by zezo in GPX format
- Added GPS coordinates of the waypoints.
- highlight of the line pointed by the mouse




If after the installation of the extension, the popup opens but with no instructions zezo I invite you to use ccleaner to clean your Internet cache and cookies (the chrome tool is not always sufficient) with at least these options


I look forward to your return

Route zezo v3.1 RC2
Post by iconPost by Ursus Maritimus | 2018-06-25 | 18:32:11
it's not opening a window for Clipper 12
Post by iconPost by zezo | 2018-06-25 | 18:41:29
VR sends invalid DTF and breaks the extension(s)

"distanceToEnd" : Infinity

They should fix it at some point.
Post by iconPost by Ursus Maritimus | 2018-06-25 | 18:46:30
woehaha. VR and fixing something ;)

let's wait and see. in the mean time, back to good ol' manual entry of coordinates, windspeed and TWA ;)
Post by iconPost by zezo | 2018-06-25 | 18:48:05
Might be a side effect of the "no ranking first 60 minutes"

But then the other boats have rank on click. How the hell do the compute it when everyone is at infinity.
Post by iconPost by Ursus Maritimus | 2018-06-25 | 18:50:38
random generator?
Post by iconPost by tyghfg | 2018-06-25 | 19:09:21
based on time somehow, i got 20m,6s to leader from Poland, nice virtual bugatta game we have here :)
Post by iconPost by Ursus Maritimus | 2018-06-25 | 19:20:23
so you missed the start?
Post by iconPost by GeGaX | 2018-06-25 | 19:56:23
Hi Cvetan 😉,
No, Route zezo.org does not crash cause a "distanceToEnd" : Infinity
On the other hand, I just saw, on another member, by teamviewer why the extension is inoperative, when we display the sources we can see 2 files chart.pl ... and I think that all those who have a problem with the extension have these 2 files.

Why how ? For now I do not know

Edit: the second chart.pl contains this code
var i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H,
w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||
!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match)
{try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}



Post by iconPost by zezo | 2018-06-25 | 20:13:39
This is some third party code. Your extension works here (v. 3.0)
Post by iconPost by GeGaX | 2018-06-25 | 20:21:21
Yes I have the same conclusion as you
I do not have 2 chart.pl and the extension works very well at home (v3.1) other members also have problems I'm waiting to see if they too have the 2 files chart.pl (I think Yes)
The solution for now is to uninstall Chrome, clean the PC with Ccleaner then reinstall Chrome and it works ...
Post by iconPost by tyghfg | 2018-06-25 | 19:23:09
No i started with everyone, 2nd place in Poland based on time
Post by iconPost by Inicio | 2018-06-25 | 20:17:51

Post by iconPost by Griffondort | 2018-06-25 | 21:24:10
OK so now we know it is the link between VR dashboard and VR.
What should we do to correct it?
Post by iconPost by Inicio | 2018-06-25 | 21:37:10
read the post about clipper 12
http://zezo.org/forum.pl?tid=6515
Post by iconPost by GeGaX | 2018-06-25 | 22:16:07
@Cvetan I send you an email to explain the origin of the 2 chart.pl and blow which makes inoperative the extension Route zezo.org
Post by iconPost by GeGaX | 2018-09-28 | 16:07:26
Hi 😉,
v3.1 is available !


Changelog :
- Added conversion of UTC / CET and CEST times to the local time from which the extension is run.
- Export the route proposed by zezo in GPX format
- Added GPS coordinates of the waypoints.
- Highlight of the line pointed by the mouse.
- Header fixed / scroll table.
border
Topics list
Posts
border
1
border
border
5
border
border
Copyright 2009 by ZEZO.ORG. All Rights Reserved.