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.
Related
Is there any way to change the default clock app? I use the black/blue mode as a desk clock and "night clock" but there are 2 things I'd like to change.
1. Disabling the position change. Every time it changes it's position I automatically look at it.
2. Making better use of the screen width. There is an unused width of like 125 pixel to each side.
In a text widget, the alignment shifts across when it changes weather pattern, so from "light rain" to "wind" obviously as one is shorter it shifts along losing alignment. Why can't it just work from a margin?
Sent from my Nexus 5 using Tapatalk
prawnguevara said:
In a text widget, the alignment shifts across when it changes weather pattern, so from "light rain" to "wind" obviously as one is shorter it shifts along losing alignment. Why can't it just work from a margin?
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Did you try changing the alignment option of the text module? If you want the text to align to a left or right edge, just set it appropriately and the text will stay oriented. As a sidenote: if you leave the align option on standard, it will align to the choosen anchor point. So if you use center, the text will also center. If you use center left, the text should align left.
kwerdenker said:
Did you try changing the alignment option of the text module? If you want the text to align to a left or right edge, just set it appropriately and the text will stay oriented. As a sidenote: if you leave the align option on standard, it will align to the choosen anchor point. So if you use center, the text will also center. If you use center left, the text should align left.
Click to expand...
Click to collapse
No the problem still happens when the word changes. It shifts over a bunch completely out of line with others. I'm baffled why it just can't align
Sent from my Nexus 5 using Tapatalk
prawnguevara said:
No the problem still happens when the word changes. It shifts over a bunch completely out of line with others. I'm baffled why it just can't align
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Could you upload your template and some screenshots so I can take a look at it?
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.
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.
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