jay (support) wrote:Actually, you'd execute the script in your control page action so it wouldn't be dependent on the variable change. Make the first action in your page element change the variable, make the second action execute the script (you may have to add a 1 second delay just to make sure the variable change happens before the script runs). If you have nothing else that's changing the variable and needing the automatic reaction then just delete the variable change trigger.
So any time you tap the page element, it changes the variable (regardless of whether it needs to or not) and then runs the script, which does the right thing.
This worked.
I now have 4 buttons on my control page that change a variable and then execute 1 python script that reads in the variable to determine the command to send to the BMW API. I used a 2 second delay on the call to the .py to make sure the variable is changed before trying to read it.
Thanks Jay!