how do I make working hands. - Zooper Widget General

I am trying to create an old school weather center with temperature, Humidity, and Pressure. I can make hands using a progress bar by setting the main and secondary colors clear and setting the gradent to highlight current. I dont like the reverse wedge shape though. What I need are the conditionals for using a rectangle as hands. I need the complete conditionals for a 360 degree sweep for each one, and what to change for different sweeps. Example: I want my humidity to sweep 300 degrees, starting at - 30 degrees. Also. I hear of a way to make bitmap images sweep with progress bar. This may help more as i can use fancy instrument needles for indicators.

Wrong thread

Related

[Q] Two Qs regarding progress bar adv parameters

Thanks for your time. Two questions, #1: I've been around here and throughout other sites, and found (it seems) dozens of different options but none have seemed to work regarding getting an object to follow a CIRCULAR progress bar. In this case, I have a simple clock that I would like to have a sunrise icon and sunset icon (each) move around the outside the clock at the appropriate time. I have tried multiple codes and combos to no avail. I have successfully managed to achieve this result on a straight prog bar using [oy]$(-34+(#BLEVN#*2.70))$[/oy]. Those are, of course, my coordinates plugged in. I've found so many different "Oh, do this, this'll work" codes that don't work, I won't bore you with them (including this one http://forum.xda-developers.com/showthread.php?t=2563932). At any rate, any help would be appreciated.
#2: Is it possible to set up a 12 hour progress bar clock that handles just am and/or just pm?
Thanks again.
#1 Take a look at the Zooper standard analog Clock
#2 Use the 24h. For am use min 0 max 12 and for pm use min 12 max 24
Sent from GT-I9505 via Tapatalk
ibashmuck said:
Thanks for your time. Two questions, #1: I've been around here and throughout other sites, and found (it seems) dozens of different options but none have seemed to work regarding getting an object to follow a CIRCULAR progress bar. In this case, I have a simple clock that I would like to have a sunrise icon and sunset icon (each) move around the outside the clock at the appropriate time. I have tried multiple codes and combos to no avail. I have successfully managed to achieve this result on a straight prog bar using [oy]$(-34+(#BLEVN#*2.70))$[/oy]. Those are, of course, my coordinates plugged in. I've found so many different "Oh, do this, this'll work" codes that don't work, I won't bore you with them (including this one http://forum.xda-developers.com/showthread.php?t=2563932). At any rate, any help would be appreciated.
#2: Is it possible to set up a 12 hour progress bar clock that handles just am and/or just pm?
Thanks again.
Click to expand...
Click to collapse
#1: Moving things circular is a bit different from moving this along a straight line. For circles you need three parameters in Zooper: thie radius of your circle ([ar][/ar]), the sweep angle of said circle ([as][/as]) and finally the rotation ([r][/r]). The first one is static and the other two depend on what you are trying to do. You need to determine the size of your circle in degrees (360 for full, 180 for half etc.) and then determine in how many steps you need to cut that size. For something that moves with the minutes of the hour it would be 60 for instance. Then your amount of degrees per minute is 360/60 and if you multiply that with the numbers of minutes #Dm#, you get your current position and rotation. So for something to move around a circle based on the minutes of the hour you would need these advanced parameters:
[r]<whatever size>[/r]
[as]$(360/60*#Dm#)$[/as]
[ar]$(360/60*#Dm#)$[/ar]​To apply this to your idea, you need to figure out in how many steps you want your circle to be broken down to (I would guess 12) and then what's your variable you want to multiply with (#ARK# maybe). With these values it should position the symbol on the hour of the sunrise.
I hope this helps you out and if not, don't hesitate to ask
#2: I think so but you probably would have to work with some advanced parameter conditionals to check whether it's currently am or pm. This depends on what exactly you are trying to do. If you can give me more details I can try to think something up.
kwerdenker said:
#1: Moving things circular is a bit different from moving this along a straight line. For circles you need three parameters in Zooper: thie radius of your circle ([ar][/ar]), the sweep angle of said circle ([as][/as]) and finally the rotation ([r][/r]). The first one is static and the other two depend on what you are trying to do. You need to determine the size of your circle in degrees (360 for full, 180 for half etc.) and then determine in how many steps you need to cut that size. For something that moves with the minutes of the hour it would be 60 for instance. Then your amount of degrees per minute is 360/60 and if you multiply that with the numbers of minutes #Dm#, you get your current position and rotation. So for something to move around a circle based on the minutes of the hour you would need these advanced parameters:
[r]<whatever size>[/r]
[as]$(360/60*#Dm#)$[/as]
[ar]$(360/60*#Dm#)$[/ar]​To apply this to your idea, you need to figure out in how many steps you want your circle to be broken down to (I would guess 12) and then what's your variable you want to multiply with (#ARK# maybe). With these values it should position the symbol on the hour of the sunrise.
I hope this helps you out and if not, don't hesitate to ask
#2: I think so but you probably would have to work with some advanced parameter conditionals to check whether it's currently am or pm. This depends on what exactly you are trying to do. If you can give me more details I can try to think something up.
Click to expand...
Click to collapse
Thanks for the response. That's actually the first parameter that I found and tried to work with, and, like then, I still can't get it to work. My "hour clock" numbers are:
x= 60
y= -210
w= 520
Using #Dh#, min 0, max 12
Putting numbers into the codes you gave...
[as]$(360/12*#ARh#)$[/as]
[ar]$(360/12*#ARh#)$[/ar]
...(or even #ARK#) still sends the icon low and to the left, as you can see in the second screen shot (I've enlarged it to show it's position better). I'm living up to my namesake with this, I know, but my guess is I'm missing one small bit that's throwing me off. Apologies, of course.

[Feature Request] Locality for Rectangles

I would like to request the ability to apply a locality to a rectangle.
I want to design a widget that is a dual-time-zone analog clock. One hour hand would be for local time, and a second hour hand would be for a specified location. Because hour hands are implemented using rectangles and Advanced Parameters that specify sweep angle and rotation as a function of time, I need to be able to specify the locality of the rectangle separately from the widget so that the Advanced Parameters will use the correct time--that of the rectangle, not of the widget.
If this is not the correct forum for feature requests, please let me know where that is.
Thanks.
Jeff Jansen
jsjansen said:
I would like to request the ability to apply a locality to a rectangle.
I want to design a widget that is a dual-time-zone analog clock. One hour hand would be for local time, and a second hour hand would be for a specified location. Because hour hands are implemented using rectangles and Advanced Parameters that specify sweep angle and rotation as a function of time, I need to be able to specify the locality of the rectangle separately from the widget so that the Advanced Parameters will use the correct time--that of the rectangle, not of the widget.
If this is not the correct forum for feature requests, please let me know where that is.
Thanks.
Jeff Jansen
Click to expand...
Click to collapse
Might I suggest that you use the timezone in the sweep angle/ rotation calculation. If you use local time + timezone offset that should adjust the rectangle correctly. I did something like this to make a clock like xkcd:Now (google, I can't post outside links yet ). The outer edge is fixed and the colored timezones rotate. I tried to incorporate the #DZ# variable but I haven't got this quite working yet.

[WIP] CyberGlow

Found Zooper last night, and after a day of fiddling rather than doing work I have come up with the following.
The outer circle is the current hour, second is the current minute.
The quarter arc top left is battery level, top right is current CPU usage
Bottom arc is Network Connection Strength
The time at the bottom left is + days.hours.minutes until the next alarm
The weather icon center is current weather, the right one is tomorrows weather.
The left and right arrows are back and forward for the media.
The album art doubles as a play/pause button.
I would appreciate comments and suggestions.
Personally, I don't understand why you have the second clock in the center.
If you remove the second clock in the middle, you can use the resulting space to incorporate the media part without having a separate piece for it.
Move the day of the week with date over to the red arc. Then reduce the top left and right arcs until they match with the ones on the bottom (red lines). Move the entire media part into the center and then figure out the song and artist text positioning.
Just my opinion. I like the layout. Not a huge fan of yellow, my choice would be a pale blue or cyan.

[Feature Request] Decimal values for Rotation

Please allow the values of the Rotation attribute of widget elements to be decimal values, not just integers.
In many cases, the one-degree increment is simply not precise enough to achieve the desired effect. One example is using a circular Progress Bar to create minute markers for a clock. To do this, I adjust the X Offset, Rotation, Spacing, and Split values so that the minute markers align properly. The problem is, when I get the zero-minute (12 o'clock) marker placed precisely, the 30-minute (6 o'clock) marker is too far to the left of where it should be, and adjusting the Rotation by one degree moves it too far to the right.
Another example is that it is impossible to create a line (width=1 rectangle) that bisects a 45-degree angle, because that requires a rotation of 22.5 degrees.
Thanks for considering this request.

Rotating Bitmap every second?

So. Long story short because of the lack of cassette widgets and such with functionalities with Spotify. (Media Utilities didnt fix the only cassette app to work for me sadly)
I've basically a cassette widget with the spotify widget itself over the top to make it seem like it's the top of the cassette (if that makes sense? Meh specifics!)
Ideally what I wanted to do was have the spinners in the middle (which are on a seperate bitmap than the cassette tape itself) to slowly rotate if (Media Utilities detects spotify playing). I've ran some tests and it does understand when spotify plays and stops as it does indeed rotate. Which alone is fantastic, however. I can't seem to get it to repeat the command, it does it once, and then the spinners don't move. I'm unsure if there is a repeat command in Zooper? Or I need some fancy equation to do so. But my code thus far is as follows
Code:
$#MU_CURR_PACKAGE#=1[r]4[/r]$
If anyone could take a quick peek I'd be very greatful, thank you!
You could play around with some progress bars. I would make three of them, setting each of them up to be 120 degrees difference, so that all three together would look like a 3 sided star. then set the width and heights so they don't touch in the middle. Then take two rectangles and round them out. Place one in the center and one on the outside edge of the 3 progress bars. Next, put this variable in the "edit progress min/max/value" section of your progress bars... #TMU_TRACK_PERC# with min being 0 and max at 100. you will now have a 3 spoked cassette wheel.

Categories

Resources