[REQUEST] Tasker variable in ZW Variable field - Zooper Widget General

Hello!
Great plugin!
It would be great if we could usa a tasker variable in the "ZW Variable" field in the ZW tasker plugin.
That way, i could set ZW variables in JavaScript through a tasker task!
Thanks!

"ZW Variable" field in the ZW tasker plugin
i.surfers said:
Hello!
Great plugin!
It would be great if we could usa a tasker variable in the "ZW Variable" field in the ZW tasker plugin.
That way, i could set ZW variables in JavaScript through a tasker task!
Thanks!
Click to expand...
Click to collapse
Thats exactly what I wanted. I wanted to use the plugin in a loop in tasker (I do not know javascript, but it it would be very great if that was possible too)
So I could create a zooper colorstyler in tasker with the possibility to create a scene where I could just add multiple colors with names in a array. And use that in a loop to create and update ZW colors
The number (amount) of colors would be really flexible, whithout changing the task.
In the old zooper thread I saw the same request. It was from a year ago.
Hope the request will be heard and integrated.
Would be realy awesome.

Can anyone from MyColorScreen look into this request. I need it too instead of creating a very long task with duplicated action for each item in the widget, I could use For Loop action for all items.
Posted via Tapatalk

Related

[Q] 1) Last (passed) Calendar Event 2) Widget Scroll

Hi all,
I've 2 questions about this fantastic App!:
1) Last (passed) Calendar Event
I've created a widget to display Calendar Events; it works ok but I've a request:
Is it possible to show last passed Event?
E.G. I set one event today from 8:00am to 9:00am
I see this event since 9:00am but after this time I don't see this event
Could Zooper show also this passed event?
If Z.W. couldn't I think this is a interesting thing to implement...
2) Widget (or element) Scroll
I read that Z.W. can't scroll ... but: is t possible to scroll text in RichText field?
This is the case:
In my calendar widget I use 1 RichText for every days to show the events in the day.
I've reserved 3 rows for every day (I "print" 1 event on every row) but if in a day I've more than 3 events I see only the first 3 events and I don't see 4th, 5th etc. events.
If RichText could scroll I will solve this problem
... If anyone know other alternative solution...
HyperAbarth said:
Hi all,
I've 2 questions about this fantastic App!:
1) Last (passed) Calendar Event
I've created a widget to display Calendar Events; it works ok but I've a request:
Is it possible to show last passed Event?
E.G. I set one event today from 8:00am to 9:00am
I see this event since 9:00am but after this time I don't see this event
Could Zooper show also this passed event?
If Z.W. couldn't I think this is a interesting thing to implement...
2) Widget (or element) Scroll
I read that Z.W. can't scroll ... but: is t possible to scroll text in RichText field?
This is the case:
In my calendar widget I use 1 RichText for every days to show the events in the day.
I've reserved 3 rows for every day (I "print" 1 event on every row) but if in a day I've more than 3 events I see only the first 3 events and I don't see 4th, 5th etc. events.
If RichText could scroll I will solve this problem
... If anyone know other alternative solution...
Click to expand...
Click to collapse
1) No, Zooper doesn't currently support access to past events. If you want to request it as a feature I would advise you to use the official channel here: http://zooper.themerapp.com/support/discussions/forums/268861
2) There is a trick to "scroll" things in Zooper by using an offset calculated from the current seconds/minutes but it's rather choppy and a huge battery hog. So it's do-able but not simple and - from my perspective - not really advisable.
Thanks a lot for your reply!
But about "scroll" you spoke about offset related to Time; do you have one example?
In your opinion is it possible "scroll" by clicking on a Button (image) on the widget?
Thanks a lot for your reply!
But about "scroll" you spoke about offset related to Time; do you have one example?
In your opinion is it possible "scroll" by clicking on a Button (image) on the widget?
HyperAbarth said:
Thanks a lot for your reply!
But about "scroll" you spoke about offset related to Time; do you have one example?
In your opinion is it possible "scroll" by clicking on a Button (image) on the widget?
Click to expand...
Click to collapse
I never used the trick myself so I don't have an example at hand but I'll look if I can find one for you.
As to your second question: maybe. You would have to use an external tool like Tasker and while you could use an extension of the timing trick to do a "scrolling animation" I think it would be more advisable to just switch between different module functions. For instance you could toggle your three lines of events between showing events 1-3 and 4-6. If you don't have Tasker I could give you a link to an app I once exported from it. With that you get a toggle action and variable to realize what I just described.
kwerdenker said:
I never used the trick myself so I don't have an example at hand but I'll look if I can find one for you.
As to your second question: maybe. You would have to use an external tool like Tasker and while you could use an extension of the timing trick to do a "scrolling animation" I think it would be more advisable to just switch between different module functions. For instance you could toggle your three lines of events between showing events 1-3 and 4-6. If you don't have Tasker I could give you a link to an app I once exported from it. With that you get a toggle action and variable to realize what I just described.
Click to expand...
Click to collapse
Thaks, you reaaly help me!
Regards.
kwerdenker said:
I never used the trick myself so I don't have an example at hand but I'll look if I can find one for you.
As to your second question: maybe. You would have to use an external tool like Tasker and while you could use an extension of the timing trick to do a "scrolling animation" I think it would be more advisable to just switch between different module functions. For instance you could toggle your three lines of events between showing events 1-3 and 4-6. If you don't have Tasker I could give you a link to an app I once exported from it. With that you get a toggle action and variable to realize what I just described.
Click to expand...
Click to collapse
Thanks a lot!
I've Tasker but if you can give me the link of the app you've exported I can see it and try to understand
HyperAbarth said:
Thanks a lot!
I've Tasker but if you can give me the link of the app you've exported I can see it and try to understand
Click to expand...
Click to collapse
Since you have Tasker, I've exported my task as an XML. You can get it here https://www.dropbox.com/s/bziwrbw4azm04t3/Toggle.tsk.xml to import it on your device.
To use it you have to modify your current event modules in the following way
(You'll obviously have to substitute whatever you use to display your events, this is just meant to show the usage of the variable)
Code:
$#TVIEW#=0?#C0TITLE#:#C3TITLE#$
Then to toggle between them set the Task as a Tasker shortcut via the module or widget OnTap option in Zooper. Now you can switch between different display states with a tap on the widget.
Hope this is clear enough for you to understand. If not, just ask
Error, duplicated post. Sorry
I didn't have time to see your XML file I will download it ASAP; but:
How can I manage dates with Zooper?
Example; can I add Days to a date?
For example if today is the 30th Jan. 2014 can I add for example 3 and obtain 2nd feb. 2014?
I didn't find a way to do this in Zooper
Thanks in Advance.
I try to explain you the reason of this question:
I've for example 3 fields on the widget with 3 dates (today, Tomorrow and Day after Tomorrow)
I want to do this:
If I Tap on a field (e.g. "+") the control pass to Tasker and Tasker add a Day to 3 dates... the result is that the 3 fields with date will change the value
E. G.
1st field 15th gen 2014
2nd field 16th gen 2014
3rd field 17th gen 2014
If I tap on field "+" Tasker change the value of the variables and on the widget I will see:
1st field 16th gen 2014
2nd field 17th gen 2014
3rd field 18th gen 2014
... in this way I will create a scrollable calendar widget ... I didn't try to do this; I hope I will able to do this but my problem is that I explained on my question in the top of this post.
I Hope you understand my english
EDIT:
I find in Zooper how to manage "free date"; e.g. 4st of february 2014 at 01:00 is:
#D201402041000#
Then if I want display this date I can create a text like this:
#D201402041000 c dd-MM-yyyy#
and this is the result:
tue 04-02-2014
Now... With Tasker I can create a variable with this Value:
201402041000
E.G. Var1 = 201402041000
If in Zooper I set a Text with: #TVar1# I see:
201402041000
But if I set a text with: #D#TVar1# c dd-MM-yyyy# I see:
#D#TVar1# c dd-MM-yyyy#
Where is my mistake?
Is it possible in Zooper use a Variable like Date?
I've found my mistake; if I write:
#D$#TVar1#$ c dd-MM-yyyy#
It Work
I've found my mistake; if I write:
#D$#TVar1#$ c dd-MM-yyyy#
It Work

Change color text after change task in tasker

i have some task (profile) in Tasker - I want to zooper show name of task in widget /every task shoud be in different color/ but i can not do this...it is possible to do this?
geeket said:
i have some task (profile) in Tasker - I want to zooper show name of task in widget /every task shoud be in different color/ but i can not do this...it is possible to do this?
Click to expand...
Click to collapse
Zooper has a Tasker plugin with which you can post values from Tasker to Zooper. You can find it under the Plugins category in Zooper. Check out this site http://www.jagwar.de/zooper-widget-tutorials/ for some tutorial on how to make Zooper and Tasker interact.
For your specific problem: Use the Tasker plugin to post the name of task and also the color you want (in Hex notation, something like ff00ff00) as variables to Zooper. Then you can use the name as the content of Text module and the color in the advanced parameters with the [c][/c] tags around them. This way you can control the text content as well as the text color directly from within Tasker.

[Q] Issue with tasker values in Zooper

When I create a Tasker value that can be used in Zooper (#T...#), I can not use this value under Advanced Parameters in an argument.
When I type #T...# it gives me the value. When I use $#T...#=Value?, it doesnt work and it leaves the $T..# blank. Any ideas on how to solve this? I want to use this to change the color of an object when for instance GPS is on
RebelwithoutaClue said:
When I create a Tasker value that can be used in Zooper (#T...#), I can not use this value under Advanced Parameters in an argument.
When I type #T...# it gives me the value. When I use $#T...#=Value?, it doesnt work and it leaves the $T..# blank. Any ideas on how to solve this? I want to use this to change the color of an object when for instance GPS is on
Click to expand...
Click to collapse
Is " $#T...#=Value?" the whole string you entered or are you just partially quoting it? I ask because Zoopers parser engine doesn't respond well to incomplete conditionals and that might throw off the substation of variable tags.
Apart from that I adhoc don't have any other idea. Did multiple widgets with Tasker variables and have not yet encountered this problem. If you upload your profile/task and your widget I could take a look at it for you.
Send from my secret moonbase via space carrier pigeons
kwerdenker said:
Is " $#T...#=Value?" the whole string you entered or are you just partially quoting it? I ask because Zoopers parser engine doesn't respond well to incomplete conditionals and that might throw off the substation of variable tags.
Apart from that I adhoc don't have any other idea. Did multiple widgets with Tasker variables and have not yet encountered this problem. If you upload your profile/task and your widget I could take a look at it for you.
Send from my secret moonbase via space carrier pigeons
Click to expand...
Click to collapse
The entire string is as follows:
[c]$#TGPS#=on?#4a2d8303$[/c]
In Tasker there is a task triggered by profile Variable set %GPS, that reads:
Zooper Widget Pro Variable
ZW variable = GPS
ZW Text = %GPS
RebelwithoutaClue said:
The entire string is as follows:
[c]$#TGPS#=on?#4a2d8303$[/c]
In Tasker there is a task triggered by profile Variable set %GPS, that reads:
Zooper Widget Pro Variable
ZW variable = GPS
ZW Text = %GPS
Click to expand...
Click to collapse
Did you try to setup a task that just sets the variable to 0 or 1 depending on GPS status? String comparison in Zooper sometimes is a bit wonky so I usually try to do it with numbered values instead
kwerdenker said:
Did you try to setup a task that just sets the variable to 0 or 1 depending on GPS status? String comparison in Zooper sometimes is a bit wonky so I usually try to do it with numbered values instead
Click to expand...
Click to collapse
Now it got a bit weird, changed the task to make #TGPS# 1 if gps is on and 0 when off. But when I put the variable in Zooper, it still showed On and Off. So I changed the name of the value to #TSAT# and now the argument works. I think since %GPS is a standard task value, it will make TGPS a standard value as well. Now the argument works with the new value name. Thanks for helping me out
Never mind... forgot I used #TGPS# in another task...fixed that

[Q] Displaying Literal Dollar Sign in Zooper

I want to do something like the following
Code:
IF condition=true THEN display '$'
But since the $ sign is used as a boundary for a conditional statement in Zooper, how do I trigger an escape so that Zooper sees my $ as a literal character? I tried '\' but it doesn't seem to be the escape character. (It does display the dollar sign, but as an error i.e. bad IF statement.)
Any ideas?
Backslash works for me. Post your code so we could have a look. [emoji4]
CopKiller76 said:
Backslash works for me. Post your code so we could have a look. [emoji4]
Click to expand...
Click to collapse
I won't use my actual code because it would be a long story explaining, but here is an example:
Code:
$#WCCODE#=16?Yay \$\$\$:Boo \$$
I expect the output to be
Yay $$$​
or
Boo $​
depending on the weather condition.
Instead I get
$​
This is not a literal $; this is Zooper telling you that your conditional statement is faulty.
And if I have another IF statement following the above,
Code:
$#WCCODE#=16?Yay \$\$\$:Boo \$$ $WCTEMPN>=30?[c=#ffaa00]WCTEMPN°[/c]:WCTEMPN°$
I still get a solitary
$​
because the entire line was already messed up from the first \$.
If you use Tasker, you could try setting up a task that sets 2 zopper variables to what you want
#TYay# = $$$ and #TBoo# = $
then use those variables in your code
$ #WCCODE#=16 ? Yay #TYay# : Boo #TBoo# $
Haven't tried this myself so I'm not absolutely sure this will work but I don't see any reason why it wouldn't. Other than this I don't see any other way to do what you want.
DIsplaying Escape / Literal Characters in Zooper using Tasker
I came upon an answer to a quandary that's been dogging me lately, and that is how to visibly show some reserved special characters in Zooper that are used in Zooper's logic equations, and then I realized how simple it is.
So for those somewhat unfamiliar with Zooper, it's a widget app that can display just about anything using dynamic variables and conditions (Time, Weather, Images), it's really versatile, and what makes it more versatile is that any condition(s) Zooper doesn't have built in variables for, Tasker can push new vars into it, to create amazing dynamic widgets.
Anyhow, Zooper uses some rather arcane logic statement setups and variable designation schemes that makes it hard to display special reserved chars such as $ , : , ? especially while operating INSIDE of a Zooper logic statement,
So a typical Zooper logic statement looks like:
$#VAR1#=1?#WEATHER#:#TIME$
Which translated to:
IF <VAR1> EQUALS 1 THEN - DISPLAY <WEATHER> ELSE DISPLAY <TIME?
So if you want to actually DISPLAY a reserved char like $, :, ? - I have yet to find the syntax to escape chars in Zooper. The typical backslash doesn't work, nor does encapsulating the char in quotes, etc. The only way I've found is to close the logic statement then open a new one and it makes a big mess.
SO SOLUTION:
In Tasker, I just used the Zooper Widget plugin to push these chars into Zooper as external variables, i.e. in a Tasker Task use the Zooper Action to:
Set var #TC#=:
Set var #TQ#=?
Set var #TD#=$
Then I just throw them in anywhere I need them in Zooper. Works like a charm and beyond that an added benefit is that Zooper seems to retain any variables set in this manner indefinitely, even after reboot, etc.
So once that Task is run in Tasker, Zooper holds on to those variables. Hopefully this is helpful, and if anyone actually knows the standard syntax (if there is one) to escape chars within Zooper without using Tasker I'd be interested.

[Q] the use of buttons?

Is it possoble to get me to press a bitmap and male ot shrink while making a different one grow?
Yes this can be achieved. With any type of toggle input you will need to create a Tasker task which will toggle a variable on or off. You can then output this variable to Zooper and use a conditional to act upon the variable state (in this case you would want to use the bitmap scaling function on each of the bitmaps) then set the module on tap element of both bitmaps to the task shortcut in order to activate it.
The speed at which this works would be dependant on your phone/tablet so it might not work particularly fast.
Is there a video for this? Im kinda confused but im understanding it a little more.
Sorry for not getting back to you sooner.
This isn't a video but should help you to create the toggle in Tasker: http://www.pocketables.com/2013/03/how-to-create-a-toggleable-task-in-tasker.html
After you have got that working you just need to add another action so press + in your task then select plugin, and then Zooper Widget Pro.
In configuration enter the Tasker variable in ZW Text (remember the %) and enter a name in ZW Variable which you want to use in zooper, this can be anything you want. The convention is to use all capitals for Zooper variables buy it is not necessary.
Once you have saved this you will see that Tasker has added #T to the start of your variable and another # at the end, this is what you will be using in zooper.
Exit from the task with the < icon in the top left corner until you are back at the task page. This is important as it saves your task and also you will not be able to access the task shortcut from Zooper (or any other app for that matter) as Tasker will still be in edit mode.
Right, in your zooper widget call up one of your Bitmaps and go to advanced parameters. Enter this code , changing the variable name to what you have chosen
PHP:
$#TTASK#=1?[s]50[/s]:[s]100[/s]$
This tells Zooper to display bitmap at 50% if #TTASK# is set to 1 or 100% otherwise
Go to module on tap, select the Task Shortcut from the shortcuts menu, then select your task from the list - It will probably prompt you to select an icon. Do that and you have finished that bitmap. Now repeat the parameters in the other bitmap but change =1 to =0 so it is reversed then you are done.
Hopefully I haven't missed anything but let me know if you encounter any problems.
I almost got it, when i tap the picture it just switches between hello and world its probly my tasker but ill show u a screenshot
Lstarz said:
I almost got it, when i tap the picture it just switches between hello and world its probly my tasker but ill show u a screenshot
Click to expand...
Click to collapse
You've misunderstood me a little there, probably my fault.
In Zooper configuration enter %Toggle as the ZWText. It need to be the variable you have already defined in tasker, otherwise you are telling tasker to output a variable that you are not setting.
Also, you can just put one zooper plugin activity after the End If instead of having two separate statements as Tasker will read this last and update then.
Dude the man it works now
When I'm done with the widget I'll tell you so u can see what I shud improve, ATM I have 2 five nights at Freddy's widgets posted if u wanna check them out
Yo, the doors work for the toggle, but I'm trying to make chika and bonnie pop up on screen after a certain time that they show up at the doors
So basically, can I make a timer that that is triggered by one bitmap showing up and when it goes to zero a different bitmap pops up?

Categories

Resources