Well i did copy the code you wrote.
It does not respond.
Did some tests, with the string i used
Code:
const server_url = "http://vusolo2/api/message?text=$$DSR:150:&type=2&timeout=2&_=1456770893382"
So i thought well let's see what it does when i change const to dim.
But then there is no more response.
Then i thought let's try to do this but change dim to const
Code:
const server_url = "http://vusolo2/api/message?text=" & hs.devicevalueex(150) & "&type=2&timeout=2&_=1456770893382"
Not sure if the " " signs are the problem here.
Also googled on the hs.devicevalueex to see how it was used but i see that the device number is in some scripts also between "150" so tried this as well with no result.
I guess this is also not necessary since the part already starts with " & hs.device etc etc "
Leave a comment: