HTML assistance needed

40 views
Skip to first unread message

Craig Lindholm

unread,
Dec 13, 2015, 10:09:19 AM12/13/15
to Automate
Hello. I am writing a flow that takes my phones GPS coordinates and sends them, along with the accuracy, to a web address. This is what I am doing:
"GET LOCATION BALANCED" => output variables are lat,lon,alt,LOCACC
"VARIABLE SET" => Variable = LOC => set to concat(lat, lon)
"HTTP REQUEST" => http://192.168.0.10:8080/bin/track.pl?ccl_cell_%LOC_%LOCACC

Where ccl_cell is a text name. Essentially I am trying to pass the variable LOC and LOCACC to the web.

Can anyone give me some tips on how to do this? When it runs, I get
Java.io.ioexception:invalid sequence: %LO in query at index 68: .......

Note the original code(not mine) was done with tasker.

Thanks in advance

Craig

Henrik Lindqvist

unread,
Dec 13, 2015, 11:36:46 AM12/13/15
to Automate
Automate does not use a prefix (%) to include variables in text, instead it uses string interpolation: My name is {name}
So the URL in your example would be: http://192.168.0.10:8080/bin/track.pl?ccl_cell_{LOC}_{LOCACC}

Craig Lindholm

unread,
Dec 14, 2015, 1:49:13 AM12/14/15
to Automate
Yes! Thank you! You, sir, are awesome!

Craig

Reply all
Reply to author
Forward
0 new messages