How to compare a String Value from http request?
Posted: 14 Sep 2013 13:47
Hi,
i am new with Automatic. I try to control my music player via http requests. For this i added a trigger for it.
If i want to play the next song, i call http://192.168.xx.xx/am/spotify?action=nxt
When i put a message to the statusbar with the variable {param_action} the nxt is shown on it.
In my flow i try now to handle the action. So i have created a expression that should compare the given parameter. The Expression looks like this:
param_action=="nxt"
but this returns false. Also param_action==nxt returns false.
I checkted if param_action has a value but isEmpty(param_action) also returns false, so it definitly has a value.
Can anyone help me here?
Thank You!
i am new with Automatic. I try to control my music player via http requests. For this i added a trigger for it.
If i want to play the next song, i call http://192.168.xx.xx/am/spotify?action=nxt
When i put a message to the statusbar with the variable {param_action} the nxt is shown on it.
In my flow i try now to handle the action. So i have created a expression that should compare the given parameter. The Expression looks like this:
param_action=="nxt"
but this returns false. Also param_action==nxt returns false.
I checkted if param_action has a value but isEmpty(param_action) also returns false, so it definitly has a value.
Can anyone help me here?
Thank You!