Huge CPU load and tens of MB's in logcat - Zooper Widget General

Zooper Widget constantly writes huge amounts of text into logcat (100..150 lines on each update, several tens of megabytes per day) and loads CPU up to 50%. Is it possible to disable logging? When I switch on the CPU meter in the developer settings, the first two lines are always Zooper (10..15%) and "logd" (5..10%). WTF???
PS, my template has about 30 rectangles, arcs and rounds which change color (visible or transparent) depending on several conditions.

Related

Four Weather Applications for Windows Mobile 6.1 (only)

I have started this for the purpose of having a stickied thread that points you to the three (currently) working weather apps for Windows Mobile 6.1 (Kavana and Rickwyatt ROMs). The program creators have created a post for their version of their weather application and have provided the info, screenshots and links to the original thread to obtain the application. This will allow you to judge which application suits you best and it will preserve the threads, should they get buried deep within the annals of this forum.
NRG's MiniWeather 1.0
Features of MiniWeather 1.0 :
- Autoupdate according to Yahoo servers' time + 10 minutes + 1-5 random minutes (so we don't all hit the server at the same exact times)
- Update in 15 minutes when no connection is found.
- Verbose status information as the script is running.
- Detailed Forecast panels can be turned off in "Advanced Options"
- Application will not automatically refresh the screen while the phone's keypad is locked.
- Built-in leftover notifications removal tool, in case you want to uninstall. See "advanced options".
Please go HERE to visit the original thread and to download the appplication.
NRG Weather 3.0
This is Chome Weather 3.1 with a 10 day forecast. It's the full version of MiniWeather with several layouts to choose from. It's also a much larger install...
Features:
- New 6 day forecast layout (layout #7)
- Autoupdate using Yahoo's server time. No manual control over update interval anymore.
- Revised layouts to ensure correct wrapping
- HomeScreen update feature. No need to reboot to see forecast or layout changes. This option is turned off by default because it doesn't work for everybody. If you turn it on and you see problems with your phone's radio turning off, phone becoming very slow etc... turn it off. (it's option #10)
- Added new panel to the Settings panel at the bottom for easy access to the weather updates and settings.
- "Stardock icons" are default for forecast and regular panels.
p.s. Portrait support is included for the new 6 day layout.
Please go HERE to download the application and to visit the original thread.
ODSHOWeather WM 6.1
Showaco, I are happy to bring you our weather panel. We have worked on testing this thing for a while.
We have new panels that display without affecting any of your other panels whatsoever.
We have a great feed, it is brought by our corporate sponser, Accuweather.
They have really put up a great feed for us to use, and it is updated constantly.
This is hands down the best weather app out there for the visual candy lovers. With the standard version without system monitor, it uses no battery or memory as far as hogging goes.
With that being said. Check out our link to the app for full feature info and check out the app and be amazed at its seemingly endless options you can set, like voice updates with 4 voices to choose from. Several layouts, and lite on the phone's memory, ahh, it is nice to be free...
Please go HERE to download the application and to visit the original thread.
The smallest weather app available has just gone on a diet, it started at 950kb and now comes in at a lightweight sub 850 kb. Its been slimmed down in size but not in weather data available. The new TotalClock cab has the full five day and current conditions within the clock panel itself. Check out the screenshots below, you only see one day at a time for a nice clean look. Hit the right soft key to advance thru the days and when you done, it has a timer to reset itself to current conditions after 60 seconds of non-flipping of the forecast pages.
For those who would rather have it seperate, the original version still uses a seperate forecast panel along with current conditions only in the clock panel. But even though it hasn't changed, I have managed to squeeze another 100 kb off of it.
On the original version clock panel you get info for current: temperature, icon, real feel temp, winds, humidity, visibility, barometer, uv level, cloud cover, precipitation, sunrise, sunset, air quality levels, and dewpoint. Also, on the clock panel you get tomorrow's forecast: conditions, hi/lo temperatures, real feel high temps, winds, and estimated precipitation.
On condensed clock panel, there is current temp, current condition icon, time, and todays Hi/Lo temperatures. So if you dock your clock, you will always have weather and time showing on homescreen.
And for a full forecast, there is a 5 day forecast panel that can be enabled or disabled. The forecast pages have info for: day, date, conditions, hi/lo temperatures, precipitation estimates, uv levels, and winds expected.
Both have a user set time interval for the updates depending on your needs, wants, or data plans. Just go to setup and specify the interval in minutes. The default is 30 minutes. The forecast data updates every 8th time weather update runs, that way you get updated forecast info every 4 hrs if you use the default for current condition updates.
To install: For now, install to main memory, I'm working on either or version.
Download the cab. After installation, it should prompt you to restart. If it doesn't, then restart your phone to set new clock panel in place. After reboot, wait about 10 seconds and the FeatherOptions will run automatically. Go to Setup and set all of your info, good idea to go ahead and set your right soft key on the clock panel at this time. After setup, exit options by selecting "Run Weather Update and Exit".
That's it, your done.
NOTE: I beleive I worked out my problem with mortscript registering itself, but if it doesn't auto start the options after 10 seconds, then go to FeatherWeather folder in Program Files and click on Mortscript.exe .
To uninstall: Go to Settings, Remove Programs and uninstall the cab. It may not change your clock panel back, but it will remove everything else. To revert clock panel back, install an original cpr or cpr of your choice.(note: the cpr should revert back to original on uninstall by itself if you reboot.)
City Location Codes:
For anyone that needs to find their city code, use this link and change the location in this url to the name of your city and then go to it and it will give a list of all cities worldwide that have that name. Get your location from there and enter it exactly as it appears in the quotes, but do not use the quotes.
http://hadle.accu-weather.com/widget...ation=calcutta
So, for this link above, if you were looking for Calcutta, India. Go to this link, and you will see a line like this:
<location cnt="1" city="Calcutta" state="India(Bangla)" location="ASI|IN|IN036|CALCUTTA" />
So your location to enter in to options would be :
ASI|IN|IN036|CALCUTTA
This should work for cities worldwide.
Feather currently is installed with a slim panel layout only. If you want more dll or cpr options, they are easily installed with FileChanger. Those are more homescreen customizations than they are weather customization, thats why they aren't in here.
For landscape phones: If you don't want the slim panels, I have standard panels cpr and mini panels cpr that work specifically with FeatherWeather. They are in the Featherscprs.zip below. Just install with the FileChanger app or copy into windows folder. Click on the File Changer in my signature below for the File Changer thread and download.
New Portrait versions below, the last 2 cabs that names end with "P" are the portrait versions. Portrait versions updated 8/19/08 with new cpr. If you already installed, you can download the cpr zip only and install to windows directory.
Check out these new portrait layouts provided by Kron2:
Make sure you get the landscape or portrait version you need, first 2 are Landscape, last 2 are Portrait
Downloads located here:
http://forum.xda-developers.com/showthread.php?t=416321

[Q] Is it possible to create a picture widget that changes the picture randomly?

Is it possible to create a widget that will draw images randomly from a designated folder. I've been searching to see if someone has done something similar to this but it looks like the closest I can get is using the images as an iconset although I still don't know how I would have Zooper pull the images randomly (I want to add to the folder occasionally). Is this something that I could do by adding in Tasker?
Any ideas?
I currently have an image widget on one of my homescreens and the way I do it is as follows:
I basically add each photo as a bitmap: So you add a bitmap module and then you navigate to the photo you want in your device gallery. After choosing your photo, you need to add advanced parameters that will control the bitmap opacity at a certain time during the day.
[bo][/bo] is used for bitmap opacity
#DH# is used for local hour during the day (0-23)
my conditional is set up as follows for my first photo.
[bo]$#DH#>=16&&#DH#<22?100:0$[/bo]
What this means is that if the current local time on my device is between the hours of 16 to 22 (4pm to 10pm) then set the bitmap opacity to 100%, else set it to 0%. You can theoretically set this up to have a max of 24 photos (one per hour) each day that continually loops. Mine is set up in intervals of 6 hours (4 photos total) but I plan on changing the values to allow for more.
The next one would be:
[bo]$#DH#>=22||#DH#<04?100:0$[/bo]
Notice I use an OR statement || versus an AND statement && because the value goes from 0-23 and if you used an && here the image would never display because of the conflicting conditional.
http://www.webermatters.com/blog/zooper-conditional-statements/
This is a good website that outlines conditional statements in ZW.
I'm assuming this is sort of what you are going for with your widget? It's not really "random" per se but it gets the job done. Not quite sure what you could do involving tasker.
greckia said:
I'm assuming this is sort of what you are going for with your widget? It's not really "random" per se but it gets the job done. Not quite sure what you could do involving tasker.
Click to expand...
Click to collapse
I was thinking about doing exactly this or possibly applying weather conditions to various pictures also. It doesn't really look like it's possible to add a random factor but this should do the trick.
Your steps are exactly what I needed.
Thanks
crios42 said:
It doesn't really look like it's possible to add a random factor
Click to expand...
Click to collapse
There is mathematical function you can use called rand...
Izzy Lamantia helped me out with this ...
The random function provides a number between 0*1, like 0.866390265. Let's say you had 10 pictures (named 1.jpg, 2.jpg, etc.) you wanted to randomize on the hour:
$#Dm#=0?(int(random()*10)$.jpg
So again, on every hour a random number will be generated, multiplied by 10, and return it as an integer 0.866390265 x10= 8.66390265, as an integer 8. 
chandlerweb said:
There is mathematical function you can use called rand...
Izzy Lamantia helped me out with this ...
The random function provides a number between 0*1, like 0.866390265. Let's say you had 10 pictures (named 1.jpg, 2.jpg, etc.) you wanted to randomize on the hour:
$#Dm#=0?(int(random()*10)$.jpg
So again, on every hour a random number will be generated, multiplied by 10, and return it as an integer 0.866390265 x10= 8.66390265, as an integer 8. 
Click to expand...
Click to collapse
So I would need to label the images: 1.png (I'm using png's), 2.png, 3.png, etc...?
Would the limit then be 10 images? If I wanted to use more than 10 images I could x 100 but then I'm guessing I would need to assign each image a range, if n >= 25 and n < 30 then x.png and so on. Can that be done?
Also, I'm a little unclear about how bitmap absolute path works. Is there a specific folder that I would need to put my bitmaps in? Looking at this example it seems that I can pick any folder I want.
It's awesome to hear that this can be done. I just need to work out the details now.
chandlerweb said:
$#Dm#=0?(int(random()*10)$.jpg

Click to expand...
Click to collapse
I was having some trouble getting this working but I finally found that there needs to be an extra set of parentheses.
$#Dm#=0?(int(random())*100)$ which give me a 2 digit number.
Now... I either have to pick 100 images (and label them 0-99, or is it 1-100?) or find a way to give the images a range.
If I have 2 separate widgets using the same parameters and drawing from the same folder, will the random number be the same or different in each of the widgets?
crios42 said:
I was having some trouble getting this working but I finally found that there needs to be an extra set of parentheses.
$#Dm#=0?(int(random())*100)$ which give me a 2 digit number.
Now... I either have to pick 100 images (and label them 0-99, or is it 1-100?) or find a way to give the images a range.
If I have 2 separate widgets using the same parameters and drawing from the same folder, will the random number be the same or different in each of the widgets?
Click to expand...
Click to collapse
Sorry for the delay in getting back to you
You would need 100 images and label them 1-100 if your multiplier is 100. You would need, say, 123 images and label them 1-123 if you multiplier is 123 i.e. $#Dm#=0?(int(random())*123)$
In my experience, the number generated is always different even if two random functions are performed at the same time although there is always the possibility that it will occasionally be the same.
I can't seem to get the widget working.
Here are the parameters I'm using $#Dm#=43?/sdcard/Pictures/Pics1/(int((random())*10)).png$.
Ignore the 43. Whatever time it is, I just add a minute so that I don't have to wait long to see if the widget will update.
I thought it might be the file path so I tried a few others:
/storage/sdcard0/Pictures/Pics1/
/emulated/0/Pictures/Pics/
Any ideas?
is it possible to create a picture
I had tried it many times but that does not work out
Not sure if OP is still wanting an answer to this or not. I'm still working on getting this perfect but hopefully this will help someone.
Create a folder on your sd card and put 10 jpg's in there titled 1.jpg through 10.jpg
Create a Zooper Widget and add a bitmap layer
do not choose an image, instead select Advanced Parameters and insert the following code
/sdcard/full path to image folder/$#Dm#>0?(int((random())*10)))$.jpg
If the above is correct then the example box should list /sdcard/full path to image folder/*.jpg
What does this do? If the minute is greater than 0 it will generate a pseudo-random number between 1 and 0. If you have set Zooper to update when the screen is off then you will want to replace the ">" with "=" so it only updates once an hour. You can make further adjustments by using Dh for hours rather than minutes. As stated above you can increase the images by multiplying by 100.
I wrote it like I did because I don't let Zooper update while the screen is off. If I changed the image on the hour it would likely not update the image because I would have to have my screen on at the beginning of each hour. As it is, it changes the image every 10 seconds or so whenever I have the screen on.
I am open to other modifications of this so I can keep Zooper configured to not update when the screen is off, and only change the images every 10 minutes or so.
Also, you may want a fallback image so you have something to display while you wait to whatever condition needs to be meet in order for Zooper to generate the random number.
SoldierOfCatan said:
Not sure if OP is still wanting an answer to this or not. I'm still working on getting this perfect but hopefully this will help someone.
Create a folder on your sd card and put 10 jpg's in there titled 1.jpg through 10.jpg
Create a Zooper Widget and add a bitmap layer
do not choose an image, instead select Advanced Parameters and insert the following code
/sdcard/full path to image folder/$#Dm#>0?(int((random())*10)))$.jpg
If the above is correct then the example box should list /sdcard/full path to image folder/*.jpg
What does this do? If the minute is greater than 0 it will generate a pseudo-random number between 1 and 0. If you have set Zooper to update when the screen is off then you will want to replace the ">" with "=" so it only updates once an hour. You can make further adjustments by using Dh for hours rather than minutes. As stated above you can increase the images by multiplying by 100.
I wrote it like I did because I don't let Zooper update while the screen is off. If I changed the image on the hour it would likely not update the image because I would have to have my screen on at the beginning of each hour. As it is, it changes the image every 10 seconds or so whenever I have the screen on.
I am open to other modifications of this so I can keep Zooper configured to not update when the screen is off, and only change the images every 10 minutes or so.
Also, you may want a fallback image so you have something to display while you wait to whatever condition needs to be meet in order for Zooper to generate the random number.
Click to expand...
Click to collapse
I did the above, but had to add an extra parentheses before the word "int" to get it to display properly in the example box.
/sdcard/full path to image folder/$#Dm#>0?((int((random())*10)))$.jpg
However, when I save and exit out of the Zooper, it still just shows the default "folder" icon. I have it pointing to 1-10.jpg in a folder called "test" on my internal SD. I also tried the code in the advanced parameters of an existing picture I had on my widget, and it didn't do anything either.
HA! Figured it out. What a dummy I am. You have to put the b tags first
[*b]/sdcard/full path to image folder/$#Dm#>0?((int((random())*10)))$.jpg[/b]
(without the asterisk I couldn't get it to show since it's the same code for "Bold" on the forum)
rachelm920 said:
HA! Figured it out. What a dummy I am. You have to put the b tags first
[*b]/sdcard/full path to image folder/$#Dm#>0?((int((random())*10)))$.jpg[/b]
(without the asterisk I couldn't get it to show since it's the same code for "Bold" on the forum)
Click to expand...
Click to collapse
If you have pictures 1-10 and you use random times 10, wouldn't the only picture that would get displayed be picture 10 (which is when random equals 1, times 10).
Or is the value for ((int((random())*10))) actually limiting the random numbers to be 1-10?
SchmilK said:
If you have pictures 1-10 and you use random times 10, wouldn't the only picture that would get displayed be picture 10 (which is when random equals 1, times 10).
Or is the value for ((int((random())*10))) actually limiting the random numbers to be 1-10?
Click to expand...
Click to collapse
I actually have 66 pictures and the number increases everyday, since they're pictures of my boyfriend and he's constantly sending me new ones... or we're taking new ones etc. LOL I just change the number it multiplies by as the pictures increase.
I'm not sure if number one gets displayed... I could however rename picture one to 67 so there's never a problem. Since there's so many its hard to tell.
rachelm920 said:
HA! Figured it out. What a dummy I am. You have to put the b tags first
[*b]/sdcard/full path to image folder/$#Dm#>0?((int((random())*10)))$.jpg[/b]
(without the asterisk I couldn't get it to show since it's the same code for "Bold" on the forum)
Click to expand...
Click to collapse
mate, i did following your code but in zooper widget, it only shown folder icon, i use .png picture, so this is correct, it must be jpg ?
Oohhlala said:
mate, i did following your code but in zooper widget, it only shown folder icon, i use .png picture, so this is correct, it must be jpg ?
Click to expand...
Click to collapse
Not sure I only tried it with .jpg
Sent from my SAMSUNG-SGH-I747 using Tapatalk
You should be able to do this with tasker/zooper integration. I have a weather radar image that I download via tasker. Due to how zooper buffers images I haev to change the filename each time I refresh the image. The new alternating path to the image is passed from tasker to zooper. First time is w1.jpg, next time is w2.jpg. This idea could be extended for images in a folder.

[Q] tasker bbcode color/size variables not updating

hello, i am relatively new to zooper, but I'm pretty good with tasker.
I'm creating a basic notification widget, and i have it sending and updating the notification numbers just fine, but I am lazy and i don't wan't to have to copypasta the color codes/font sizes 12 times whenever i change my mind (frequently).
I have a tasker widget called" Zooper Widget Vars" pushing these commands (via the Zooper Widget Pro Variable plugin) (brackets are obviously not in the code)
configuration #TZFLG# = 50 (large size for icons)
configuration #TZFSM# = 10 (small size for numbers)
configuration #TZFLGC# = #ffffffff (color for icons)
configuration #TZFSMC# = #ff66d5da (color for numbers)
And i just press play whenever i want to send the variables to Zooper.
in zooper, in a rich text module, I have:
[s=#TZFSM#][c=#TZFSMC#]#TWHATSAPPCT#[/c][/s]
and in another Rich text module I have:
[s=#TZFLG#][c=#TZFLGC#]f[/c][/s]
#TZFSM#,#TZFLG#,#TZLGC# and #TZFSMC#
#TWHATSAPPCT# updates just fine. Problem is, #TZFSM# and #TZFSMC# do not update the widget until #TWHATSAPPCT# changes. #TZFLG# and #TZLGC# do not change at all unless I manually change the letter icon and change it back, which is, quite frankly, a pain in the ass.
I have tried just sticking #TZFSM#,#TZFLG#,#TZLGC# and #TZFSMC# in an RT module without the BBcode around them, and their values do print out, so I know that Zooper is actually receiving them, but its just ignoring them when they are enclosed in BBtags.
In layman's terms, the widget will not redraw with the new color and size parameters unless the content that the bbcode is modifying changes. Ive spent about 2 hours youtubing and googleing and wiki-ing, and I've decided I'm a noob and should just ask for help.
thank you so much in advance for any assistance.
(Nexus 5 with the lollipop dev preview installed)
P.S. though I think that ZW Utilities is a lovely little tool, it does not solve the lack of size updates, so please do not direct me there.
digitalgraffiti said:
hello, i am relatively new to zooper, but I'm pretty good with tasker.
I'm creating a basic notification widget, and i have it sending and updating the notification numbers just fine, but I am lazy and i don't wan't to have to copypasta the color codes/font sizes 12 times whenever i change my mind (frequently).
I have a tasker widget called" Zooper Widget Vars" pushing these commands (via the Zooper Widget Pro Variable plugin) (brackets are obviously not in the code)
configuration #TZFLG# = 50 (large size for icons)
configuration #TZFSM# = 10 (small size for numbers)
configuration #TZFLGC# = #ffffffff (color for icons)
configuration #TZFSMC# = #ff66d5da (color for numbers)
And i just press play whenever i want to send the variables to Zooper.
in zooper, in a rich text module, I have:
[s=#TZFSM#][c=#TZFSMC#]#TWHATSAPPCT#[/c][/s]
and in another Rich text module I have:
[s=#TZFLG#][c=#TZFLGC#]f[/c][/s]
#TZFSM#,#TZFLG#,#TZLGC# and #TZFSMC#
#TWHATSAPPCT# updates just fine. Problem is, #TZFSM# and #TZFSMC# do not update the widget until #TWHATSAPPCT# changes. #TZFLG# and #TZLGC# do not change at all unless I manually change the letter icon and change it back, which is, quite frankly, a pain in the ass.
I have tried just sticking #TZFSM#,#TZFLG#,#TZLGC# and #TZFSMC# in an RT module without the BBcode around them, and their values do print out, so I know that Zooper is actually receiving them, but its just ignoring them when they are enclosed in BBtags.
In layman's terms, the widget will not redraw with the new color and size parameters unless the content that the bbcode is modifying changes. Ive spent about 2 hours youtubing and googleing and wiki-ing, and I've decided I'm a noob and should just ask for help.
thank you so much in advance for any assistance.
(Nexus 5 with the lollipop dev preview installed)
P.S. though I think that ZW Utilities is a lovely little tool, it does not solve the lack of size updates, so please do not direct me there.
Click to expand...
Click to collapse
Instead of entering the bbcode in the text field with the text did you try separating it out and entering it in the advanced parameters field.
jr67 said:
Instead of entering the bbcode in the text field with the text did you try separating it out and entering it in the advanced parameters field.
Click to expand...
Click to collapse
in the end i figured it out with putting all of the styling in the advanced params space and the content in the text area
thanks for your help!

Blinking image?

How to make a blinking image and if possible how to control the time difference between them.
You can change the displayed image based on the time and some math.
eg $(#Dss#%2)$ would return 0 or 1 at each refresh so you could use that in a conditional to choose the image displayed
But there is no way to alter Zooper's refresh rate so you would not be able to achieve a greater update speed than that.
Blackbearblanc demonstrated this here http://mycolorscreen.com/2013/10/31/animatedaudio/ but I believe the skin is no longer available on the Playstore

How to set the text width in percents

Hi, correct me if I shouldn't have posted here.
I want to put a full screen widget and have my text to be set a 100% of the widget width, so the hours will continually resize as the hour change (making the SIX to be the exact same on screen width as the SEVEN automatically. Is theres a way I could fix the text width on X% of the total widget. So I wont need to add conditions to set manually every hours width? (Sorry if Im hard to understand Im not sure how to explain this and english isnt even my first language ?)

Categories

Resources