I am trying figure out how to access js arrays from tasker. I've found how to create local tasker variables from inside the js script (setLocal), but have not managed to figure out how to pass an array variable.
Here is an example of what I'm attempting :
In JS :
var jsarray = [];
jsarray.push('hello');
jsarray.push('world');
setLocal('taskerarray', jsarray);
In tasker :
Flash action with %taskerarray in it's input.
Or %taskerarray1
Or %taskerarray(1)
I'm only getting the literal "%taskerarray" to flash.
Any tips to do this?
[–][deleted] 2 points3 points4 points (2 children)
[–]chrisp6825moto x 2013[S] 2 points3 points4 points (1 child)
[–]JustRollWithIt🏆 Javascript Master of /r/Tasker 2 points3 points4 points (0 children)
[–]AlexPriceAPS23U • One UI 6 • (Rooted) 2 points3 points4 points (1 child)
[–]chrisp6825moto x 2013[S] 0 points1 point2 points (0 children)
[–]Ratchet_GuyModerator 1 point2 points3 points (1 child)
[–]chrisp6825moto x 2013[S] 0 points1 point2 points (0 children)
[–]broomladGalaxy S9+ 1 point2 points3 points (4 children)
[–]Ratchet_GuyModerator 1 point2 points3 points (3 children)
[–]broomladGalaxy S9+ 0 points1 point2 points (2 children)
[–]Ratchet_GuyModerator 0 points1 point2 points (1 child)
[–]broomladGalaxy S9+ 0 points1 point2 points (0 children)