[Script] WME Speedhelper

Hi,
I found a bug. I tried the new icon scaling feature but the icons did not update until I reloaded the page. The bug is that once this was done the script configuration disappeared and I could not change the scale again.

I have reviewed the list of countries, and no, there is no other country that uses PA, so if you could change to PM so that it works we would appreciate it.

Version 0.12.6 is now available that fixes the configuration line for Panama.

Hi,

What browser are you using? Normally the settings should take effect without a refresh.

The issue for me is that when I edit near the border of Texas (US) and Mexico, I will get the following message in place of the speed limit buttons
“WME is currently set to imperial. Please change this to metric, if you want to add speedlimits in this country (MX)”

Do you think it is possible to either have a setting to ignore the country conflict or look at the country that is set on the segment(s). If a person selects multiple segments that are in different countries with different measurements - put a message that says you have selected segments with multiple countries (or something).

Speedhelper-err.png
Sometimes Speedhelper gets this error at startup. It looks like the country data has not loaded yet so the country variable is null. This is near the end of the Speedhelper_init function and if it gets an error there, the calls to constructSettings and displayChangelog do not get called. This means the Speedhelper tab will not show up in the scripts panel.

It looks like the calls to makeSigns and makeCameraSigns (lines 418-419) can be removed and the mutation observer will work to display speed helper even at startup when there is a segment/camera as part of a PL.

Dave

Hi,
Sorry for the delay in answering. I use Chrome.
I tried again and the bug no longer occurs. I no longer needed to refresh. The segment must be deselected and reselected for the icon scale to update. I guess that’s what happened to me last time.
Although I still don’t know why the Speedhelper configuration page had disappeared.

Hey Dave,

I checked and it can indeed cause this issue.
Now removing these calls actually doesn’t work for PL, as for me the PL opens the sidebar before speedhelper is even loaded.

I do plan to clean up the logic a bit so will refactor it to account for PL and add the icons later on.

Hi John,

I will try to see if I can adjust the logic to account for this when I clean up/refactor it a bit.

Kind regards
Gyllie

Hello Team,

I am CC for Nepal. Could you please help us add the detail for our country.

  • Country Name : Nepal (NP)
  • Possible Speeds: [20,BGk], 30, 40, 50, 60, 70, 80
  • KPH
  • Default Sign

Thank you. Really appreciate your help.

Hi MadanKPradhan,

In the latest version 0.12.7 Nepal has been added.

Kind regards
Guillian

1 Like

Thank you for adding Nepal. We have requested the speed sign “[20,BGk]” but at the script, it was added as [20,BGg] which shows different image than we have requested. Appreciate your help upon this. Thank you.

Hi,

Apologies for the delay, I fixed the sign in 0.12.8

Kind regards
Guillian

Thanks Guillian. Really Appreciate it.

Hello,

Could Fiji please be added as well?

  • Country name: Fiji (FJ)
  • The list of possible speeds as displayed on the roadsigns: 20, 30, 40, 50, 60, 70, 80
  • Km/h
  • Default Sign

Hi,

Fiji has been added in version 0.12.9

Kind regards
Guillian

1 Like

I would like to bring an older topic above from https://www.waze.com/forum/viewtopic.php?p=2259640#p2259640 .
In an older Version the script has verified also the unverified speed limit, by choosing an speedlimit value.
Can this brought back as function? In Germany we still have segments with unverified speedlimit from first “import”, so this would be a usefull optimation.

Country missing? Follow this link Your country code: GI

Gibraltar
Kph
The standard speed limit is 50km/h unless otherwise stated.
20, 30, 40, 50

Thanks

Hi @Hugo_Moreira

Sorry for the delay, Gibraltar has been added in version 0.12.10

Hi,

We need to add one new sign to script for Finland, 90km/h, styling like all old ones which all remain as before. I’m CC for Finland, country code FI. No rush, we will need it earliest after August but thought I’d better ask to add it before I forget about it :smiley: