Sending notification from MMM-Remote-Control to MMM-ProfileSwitcher

I’m stuck trying to use the notification request feature of MMM-Remote-Control to send a notification to MMM-ProfileSwitcher in order to switch profiles. I’m doing this via a web GET request, which I know works already as I’ve got Monitor On and Monitor Off functioning correctly using http://IP.ADDRESS:PORT/remote?action=MONITOROFF

I know I’ve mashed together from two read me’s, but there’s no reason it shouldn’t work. I’m using: http://IP.ADDRESS:PORT/remote?action=NOTIFICATION¬ification=‘CURRENT_PROFILE’&payload=‘profilename’ i.e. ‘CURRENT_PROFILE’ is written exactly like that with the 2x ’ and profilename is the name of the profile I want to change to, again with 2x '.

I’ve also tried ", %27, %22, and all varieties with {} around it. I usually get the message {“status”:“Unexpected token ’ in JSON at position 0”} although I have had {“status”:“success”} with " around profilename, but nothing happened.

On the left you can see javascript code you could use to build the needed URL, and on the left you can see an example. Adapt the variables in the code to build some other kind of notification. Dont forget to run the script, e.g., with CTRL+Return, to see the the new result.