[Script] WME Chat addon

Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Moderators: Unholy, bextein, Glodenox, JustinS83

Forum rules
Discussion for the unofficial, community-developed addons, extensions and scripts built for the Waze Map Editor.

DO NOT START a new thread unless it is about a new idea. Keep discussion of existing tools within the main thread for that tool.

The official index of these tools is the Community Plugins, Extensions and Tools wiki page.

Re: [Script] WME Chat addon

Postby vince1612 » Fri Oct 27, 2017 6:09 pm

Updated 5h ago, wasn’t the case at the time of my post.

Thanks ;) looks ok now
[ img ]
Wiki & Forum: Wiki CH (D) (FR) | Forum CH (D) (FR) (I)
Website: waze-switzerland.ch | Facebook: Waze Switzerland
1+1=3 - The result of bringing talents together goes beyond simply adding them up.
vince1612
Waze Global Champs
Waze Global Champs
 
Posts: 8196
Joined: Sun Mar 17, 2013 2:30 pm
Location: DACH Group (Germany, Austria, Switzerland)
Has thanked: 4891 times
Been thanked: 5184 times

Re: [Script] WME Chat addon

Postby steelpanz » Wed Jan 24, 2018 8:45 pm

There are some folks in my EA who've produced some poor PURs, but I'd like to see if I can catch them while they're on WME to see if I can help them out. Is it possible to play an alert if one of of few users logs in?
steelpanz
State Manager
State Manager
 
Posts: 99
Joined: Wed Jul 06, 2016 9:03 pm
Location: Tulsa, OK, US
Has thanked: 42 times
Been thanked: 43 times

Re: [Script] WME Chat addon

Postby crazycaveman » Fri Jan 26, 2018 6:05 pm

That is already possible with Chat addon, just use the Usernames messages and sounds text box to enter who you want to watch for.
ChatAddon_WatchUsers.png
(11.93 KiB) Downloaded 483 times
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 829
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 351 times
Been thanked: 518 times

Re: [Script] WME Chat addon

Postby steelpanz » Fri Jan 26, 2018 9:34 pm

Ok, that's what I was hoping that was for, but I put a username in there and didn't get a trigger, even though I saw that person visible in chat. Do I need to use the @ sign ahead? And how do I separate multiple users? I can't seem to find that, either (my apologies).
steelpanz
State Manager
State Manager
 
Posts: 99
Joined: Wed Jul 06, 2016 9:03 pm
Location: Tulsa, OK, US
Has thanked: 42 times
Been thanked: 43 times

Re: [Script] WME Chat addon

Postby crazycaveman » Tue Jan 30, 2018 1:26 pm

steelpanz wrote:Ok, that's what I was hoping that was for, but I put a username in there and didn't get a trigger, even though I saw that person visible in chat. Do I need to use the @ sign ahead? And how do I separate multiple users? I can't seem to find that, either (my apologies).

The format is:
username:messageIn:soundIn:messageOut:soundOut,username...
Instead of the username, message, and sound, you can set up a Google sheet with the same fields in them and just put the doc ID in the chat addon field instead and it will load your preferences from there.
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 829
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 351 times
Been thanked: 518 times

Re: [Script] WME Chat addon

Postby crazycaveman » Tue Jan 30, 2018 2:04 pm

Here is the original message detailing the user watch feature.

dummyd2 wrote:v1.3:
  • CM user names underlined (for colorblind)
  • custom messages and sounds when a user enter or leave the channel:
    see in settings the field "Usernames messages and sounds".
    Format is a block of 5 informations separated by ':'
    1. UserName (case sensitive)
    2. Custom message on enter: can be "null" to disable and keep the original message
    3. sound on enter: can be 'null' to disable, 'door' for a built-in sound (the only one for the moment), or begin with 'TTS' followed by the custom text to speach the text
    4. Custom message on leave: same as enter
    5. Sound on leave: same as enter
    Then, separate with a ',' and set another block, and so on.
    E.g.:
    Code: Select all
    dummyd2:D2 is here:TTSD2 is here:D2 has left:door,BellHouse:BellHouse the famous TB dev has joined:null:BellHouse has left:null

    You can replace a block by a google spreadsheet key.
    Here is a sample spreadsheet. You can edit it, and fork it for your own purpose:
    https://docs.google.com/spreadsheets/d/ ... edit#gid=0
    Lines beginning with 'UserName' are ignored to keep an understandable header.
    As you can see in the URL, the key is:
    1G9-TweVLOeP023OTWZsKxkv5JDgXtVV1BJ-fKNUkF0c
    You can put this key in chat addon:
    Code: Select all
    dummyd2:D2 is here:TTSD2 is here:D2 has left:door,1G9-TweVLOeP023OTWZsKxkv5JDgXtVV1BJ-fKNUkF0c,BellHouse:BellHouse the famous TB dev has joined:null:BellHouse has left:null

    You can add keys as much as you want.
    You can share your google spreadsheets with anyone you want.
    You are responsible of what is written in your sheets.
    If a username is defined twice or more, messages and sounds are concatenated.
    Any change in this field is taken into account at WME startup.
[ img ][ img ] [ img ][ img ][ img ]
ARC: South Atlantic Region
crazycaveman
US Waze Champs
US Waze Champs
 
Posts: 829
Joined: Fri Sep 03, 2010 1:48 am
Location: Rock Hill, SC, USA
Has thanked: 351 times
Been thanked: 518 times

Re: [Script] WME Chat addon

Postby Glodenox » Wed May 02, 2018 10:10 am

Hey, please be aware your script still seems to rely on the Waze object, which will be removed in one of the upcoming beta releases. You can test this yourself in the beta environment as the proxy object implemented by Waze (to make window.Waze point to window.W) also logs an error in the web console now.
Script Writing Community Coordinator
[ img ][ img ]
Glodenox
Waze Global Champs
Waze Global Champs
 
Posts: 1055
Joined: Tue Aug 11, 2015 9:04 pm
Location: Belgium
Has thanked: 510 times
Been thanked: 1206 times

Re: [Script] WME Chat addon

Postby JustinS83 » Tue May 15, 2018 1:15 pm

Here is a pastebin of the script with the Waze object replaced with W. Now that beta has been pushed to production any scripts still using Waze causes tens of thousands of entries in the console. This will alleviate some of that pain.

https://pastebin.com/6qFDc2MS
Script Writing Community Coordinator
[ img ][ img ][ img ][ img ][ img ]
JustinS83
Waze Global Champs
Waze Global Champs
 
Posts: 1330
Joined: Wed Dec 03, 2014 4:33 am
Location: Franklin, OH
Has thanked: 339 times
Been thanked: 2351 times

Re: [Script] WME Chat addon

Postby dude495 » Tue May 22, 2018 2:44 pm

JustinS83 wrote:Here is a pastebin of the script with the Waze object replaced with W. Now that beta has been pushed to production any scripts still using Waze causes tens of thousands of entries in the console. This will alleviate some of that pain.

https://pastebin.com/6qFDc2MS



Thank you! This fixed my issue with Chrome freezing/crashing on MacOS!
Dan B - New York SM - Pakistan CM
Waze New York & NYC Social Media
New York Partnerships Coordinator
iOS & WME ßeta Tester
Waze USA & Pakistan Mentor


[ img ]
dude495
PartnerCoordinator
PartnerCoordinator
 
Posts: 404
Joined: Sun Feb 23, 2014 2:05 am
Location: Texas
Has thanked: 121 times
Been thanked: 271 times

Re: [Script] WME Chat addon

Postby dummyd2 » Wed Jun 27, 2018 2:23 pm

Script donated to WazeDev github:
https://github.com/WazeDev/WME-Chat-Addon

Greasyfork URL changed to:
https://greasyfork.org/scripts/369855-wme-chat-addon

you may need to re-install the script.
Dummyd2 AKA D2.
Retired - retraité de Waze
dummyd2
Experts
Experts
 
Posts: 1327
Joined: Wed Oct 23, 2013 12:01 pm
Location: Mentoring Bordeaux + CUB, Lot-et-Garonne
Has thanked: 329 times
Been thanked: 1124 times

PreviousNext

Return to Addons, Extensions, and Scripts

Who is online

Users browsing this forum: n4dog