Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make the bookmarlet work? #2

Open
Macu3 opened this issue Apr 27, 2017 · 25 comments
Open

How to make the bookmarlet work? #2

Macu3 opened this issue Apr 27, 2017 · 25 comments

Comments

@Macu3
Copy link

Macu3 commented Apr 27, 2017

Basically, your script is brilliant, that's exactly what I need. The problem is that I've never heard of boormarklets and I can't get it to work. In Firefox it simply does not run (and I cant' even add it to bookmarks bar), whereas in Chrome I can at least add it to the bar, but also it doesn't work. Any suggestions? Wojciech.

@erosinnocenti
Copy link
Owner

It seems that openrouteservice have upgraded the page and also the web service. I tried to simply move the php files on a HTTPS host but it's not working yet.
Even the APIs has changed, I requested a new key to make some tests.

@Macu3
Copy link
Author

Macu3 commented Apr 29, 2017

Hi. Thanks for your answer. It'd be great if you can make your script work again, as I really like openrouteservice, but what I learnt yesterday is that new Bryton web allows you to create routes with waypoints and turn by turn navigation online - https://active.brytonsport.com/home. I tried it earlier today and it works a treat. I'm not sure if you're aware of that.

Cheers!

@bapBardas
Copy link

bapBardas commented Apr 29, 2017 via email

@Macu3
Copy link
Author

Macu3 commented Apr 29, 2017

That's strange, as it works great on my 530. I simply press the upload icon on the Bryton's page and then connect my device to WiFi and sync the data. I think it should work for 330 as well?

@marekorok
Copy link

excelent work erosinnocenti, hope you will be able to resolve it soon.
Indeed you can use the bryton app for planning route but is extremely limited and painful, what's more if bought your device from Aliexpress (like I did) then you have China version, which works with China app only and no web, double pain...
How did you get .tinfo file specification? :-) I was searching for it and came to your solution...
Fingers crossed

@erosinnocenti
Copy link
Owner

Hi Marekok, I had to do by myself comparing a generated .tinfo from a simple gpx.
If you read the source code you can get the .tinfo and .smy structure.

@marekorok
Copy link

Already did, thanks 👍
Unfortunately seems again openls.geog.uni-heidelberg.de is down for public, can't find info why and for how long...

@marekorok
Copy link

marekorok commented Jun 7, 2017

Hi again,
based on your work I created php script that converts gpx with way- and track-points into Bryton files.
Waypoints are used for turning points with names. Had to implement few functions to calculate distances, directions, bounding box etc.
If interested I can share.
Also for creating routes I switched to plotaroute service, it's briliant - can create tracks with waypoints and export it to gpx which I use for coversion.
By the way found few bugs in device itself (mine Bryton Rider 330) like wrong display of distance on navigation page, turning info display only 8 characters (!!!), no TimeToDest info also missing DistToDest and TimeToDest fields for data pages, forwarded info to Bryton but if they fix it - who knows, support is almost no existing, that's frustrating...

@scorpi11
Copy link

Hi,

can you please share your PHP script? I'd like to convert my GPX files from gpsies.com and check if turn-by-turn navigation works on by 330.

Regards,
Tino

@Dreamsthinker
Copy link

Dreamsthinker commented Jul 24, 2017

Hi. My message to the Bryton support via Facebook & e-mail:

Hello. I have Rider 530 and there are questions on the Follow Track mode.

  1. Alerts don't work in this mode (for example, when HR exceeds the maximum value). There is no text, there is no sound. It is strange.
  2. Recording can't be put on a pause. I can stop recording only. Again it is strange.
  3. On the data page with a track I see only the speed and distance to the finish. This page can't be adjusted under the needs. For example, I very much want to see HR along with a track. Really it is difficult?
  4. The distance to the finish is calculated incorrectly. It is unacceptable. For example, at the beginning of a route 51 km long the computer tells me that the finish in 65 km. At the same time during the choice of a route for following length of this route is shown correctly (51 km). I have sent an example by e-mail.

And before:

I have Rider 530. I am satisfied by him, but I consider that this device can be even better. In particular, you can improve possibilities of navigation without some serious expenses. I have watched this video and have seen the comment of your employee: ".gpx file doesn't support turn by turn information". I think, it is a mistake.

I have asked a question: "I will be able to use turn by turn in that case when I create a gpx track manually on the websites like gpsies.com or plotaroute.com? With waypoints like...". I meant that Rider 530 could use for Turn-By-Turn Navigation the rteType and wptType components from these tracks.

gpsies.com & plotaroute.com are very popular resources, millions of people around the world use them.

This was in early May. So far no news.
Dear marekorok, HELP please!

@marekorok
Copy link

marekorok commented Jul 24, 2017

Sorry man, the Bryton support does not exists.
I wish I didn't buy it, but it happened.
Returning it would cost me half of the price of device, so I skipped it.

Hardware is nice, but software and support... no comment.

That's what I received from them 2 months ago, in May.
The only change that their official FB page with users comments dissapeared... So you see.

"
Hello,

thank you so much for your input,
I will pass these suggestions to our engineering team asap.
as usual, we'll do our best to improve your user experience with our rider computer,
and thank you so much for the continued support!!
"
No surprise, but no change.

Eventhough you create a route for the device it is close to useless, wrong distance calculations on device itself and bad display of turn points so I stopped using this feature and using it as track logging only...

@Dreamsthinker
Copy link

Same way))
Please share your PHP-script. I think this will help me and other users.

@marekorok
Copy link

sure, need to clean it up a little, as it's not professional as erosinnocenti one, so give me a day or two

@marekorok
Copy link

marekorok commented Jul 24, 2017

ConvertGpxToTinfo.zip

well, take a look.
Main script parse1.php

2 hardcoded variables to adjust:
$gpxFile - input file
$OutputFolder - as states

Cheers

@Dreamsthinker
Copy link

Oh, fast. Thanks, I will try.
P.S. I hope for you and erosinnocenti. You can improve this device. Good luck!

@scorpi11
Copy link

Hi,

I can confirm the issues with the route length display and the missing pause function when following a track. I hope Bryton gives the 330/530 firmware some love before the devices are replaced by the next generation. However, I think they are still worth the price. I was looking for a small bike computer with ANT+, GPS and good battery runtime which is able to sync to Strava hassle-free, and got exactly that. The "follow route" stuff is a feature that was added for the 330/530 devices.

When looking at the Polar V650 firmware, it was really crap at the beginning. They sold a big GPS bike computer with coloured map display, without a function to follow a GPX track. It got much better after some firmware updates.

@scorpi11
Copy link

Can you give an example GPX file with valid turn-by-turn data so I know what information has to be in the source file?

@scorpi11
Copy link

scorpi11 commented Jul 25, 2017

Ok, found it. There has to be WPT data.

@marekorok
Copy link

yes, WPT for names and tourning points.
Also using 'desc' for names instead of 'name' as plotaroute somehow limit characters in name when exporting.
Here you have example gpx file.

TestRoute.zip

@Dreamsthinker
Copy link

marekorok, I created a track on gpsies.com and I tried. It works, but there are some problems.

  1. The kilometers markers aren't displayed by device (Rider 530).
    Example:
  <wpt lat="52.42513429" lon="31.06570180">
    <ele>118.00000</ele>
    <name>6 km</name>
    <sym>Waypoint</sym>
  </wpt>
  1. The directions created by a script and the directions created by gpsies not always coincide. The gpsies directions are more exact. For example, I turn to the right, I see the text from gpsies "to the right", but the arrow shows directly. Can you check the algorithm?

  2. The device still incorrectly calculates the length of the track. Are there any ideas how it can be fixed?

FT.ZIP

@Dreamsthinker
Copy link

I have thought and it seems have answered 2 questions.

  1. The kilometers markers are located behind all other waypoints in the gpx file. Therefore they can't be used.
  2. That the directions were defined correctly, waypoints have to be placed more often and evenly.

The third question remains open.

@Dreamsthinker
Copy link

Dreamsthinker commented Jul 31, 2017

It is necessary to add:

6 left
-6 right
7 slight left
-7 slight right

				case 6:
					fwrite($fp, chr(0x03)); // left
					break;
				case 7:
					fwrite($fp, chr(0x05)); // slight left
					break;
				case -7:
					fwrite($fp, chr(0x04)); // slight right
					break;
				case -6:
					fwrite($fp, chr(0x02)); // right
					break;

@jflemaire
Copy link

jflemaire commented Feb 15, 2018

It seems that openrouteservice have upgraded the page and also the web service. I tried to simply move the php files on a HTTPS host but it's not working yet.
Even the APIs has changed, I requested a new key to make some tests.

@erosinnocenti Any news on this? It would be great if you could find a solution.

@erosinnocenti
Copy link
Owner

I'm sorry, but unfortunately I can't find the free time to do this.

@sten128
Copy link

sten128 commented Nov 20, 2019

ConvertGpxToTinfo.zip

well, take a look.
Main script parse1.php

2 hardcoded variables to adjust:
$gpxFile - input file
$OutputFolder - as states

Cheers

Hi marekorok. Can you tell me how did you manage to understand the structure of bryton's files? For example, how could you tell which character correspond to each direction instrucion?
I'm trying to write a script in order to edit structured workout on pc and upload to the device because the creation of workouts directly on the device is not a painless experience. Do you have any documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants