Help Creating image based toggles

88 views
Skip to first unread message

billsur...@gmail.com

unread,
Oct 1, 2012, 12:20:06 PM10/1/12
to zoo...@googlegroups.com
I am attempting to create a row of toggles based on images. The toggles consist of things such as Wifi, BT, GPS, DATA and TeslaLED. 
The toggles all have three image states of default, on and off. I can get the toggles for Wifi and BT to function as expected and the images change per state. 
TeslaLED and GPS are another story. I am currently working on the Tesla toggle, before moving onto GPS. I can get the button to function correctly by creating a Tasker Task for TeslaLED toggle, however the image never changes. 
I know that the issue is I have not set Zoom to display a differnt image based on the condition of Tesla, but I do not see a way of doing this in Zoom. I assume I need to set this in Tasker somewhere, but I am at a wall and cant seem to figure it out. 

How do I set a condition to change the image of the toggle if the condition is not one of the defaults baked into Zoom?

Any help is greatly appreciated!

Matt

unread,
Oct 2, 2012, 3:55:46 AM10/2/12
to zoo...@googlegroups.com, billsur...@gmail.com
The way I have done it is to have 2 Tasks (in tasker) "ZOOM GPS ON" & "ZOOM GPS OFF"

ZOOM GPS ON:
GPS set On
Zoom Element State
Controls.w / gpsSwitch <-you can search using the magnifying glass
State 2 <- the state that has my ON picture
This is run when the picture in state 1 is showing

ZOOM GPS OFF is the same but reversed (setting the element state to 1 and turning GPS Off) and is run when the image in state 2 is tapped.

The only thing to remember is to use your ZOOM tasks for anything else in tasker that turns GPS on or off that way the widget will always be updated even if GPS is turned on automatically (not by tapping the widget itself).

Hope this helps.

Matt

billsur...@gmail.com

unread,
Oct 2, 2012, 8:52:48 AM10/2/12
to zoo...@googlegroups.com, billsur...@gmail.com
Thanks Matt,

I actually ended up figuring this out, after a handful of hours with trial and error in Tasker. 

Only odd think I have left is the default state. 
In the toggles I have created there are three stages on/off/turning on. The toggles look like the metal cylinder switchers you would have found on an older stereo amplifier. So the default state is the middle position. 
I can get the toggles that have their conditions baked into Zoom to display obviously. Im not really opposed to removing the default state and just going with ON/OFF, but I thought it might be nice to figure out how to get it working with Tasker as well. I have some ideas for LED notifications that would require multiple states. 

Thanks again for posting a reply, if you have any other ideas for the default state, Id appreciate them. 
Reply all
Reply to author
Forward
0 new messages