yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] -DM-:
[MENTION=6044166]frankmonza[/MENTION]

Thanks for the reply in the KLWP thread postcount 332

I got a question about Kustom Widget , I'm trying to migrate from Zooper (because it looks like that the yahoo weather api is bugging out and I can't get the other providers to really work as well) but I'm running into so problems with KWGT as well, can't get it to manually set a location, it always return not found for whatever city I feed it (even auto gps not working for some reason as well)

Also, I read that the widget can't be stretched to the full width of the screen unless using nova launcher, I"m not using nova (but I did test it), I'm using the old good Holo Launcher, I like it because it does the job that I need it to do and I can fit a widget under the the status bar (which is convenient in my case)...I have the margins set to none and zooper fit the screen perfectly but KWGT end up with that padding

(see how zooper acts compared to KWGT and they both go under the status bar with Holo Launcher)

This is a video (sorry to big to upload to xda) of what I did with zooper and I would like to be able to do the same with your app if possible, so I can invest in your KWGT Pro and send a few $$ your way ;)

Thanks
[Android Apps and Games] nobrain3000:
Any news about updates? Can't set locations via yahoo!
[Android Apps and Games] frankmonza:
3.11 fixed yahoo, are you running 3.11?
[Android Apps and Games] nobrain3000:
Now, it works in the pro version. Thanks for your reply, frankmonza!
[Android Apps and Games] chalid:
I just came accross this widget and I have to say I absolutely love it. Much better than any of the other custom widget makers. Easy to use, clear UI and most important, it seems to be updating the shown data reliably, which I can't say for other widget makers.

The only thing missing for my purposes: An option to show dawn (astronomical) times. Would be nice if those are added :)
[Android Apps and Games] frankmonza:
I saw someone (maybe you) posted a request on the official site, i will add that in next release, quite easy to do
[Android Apps and Games] chalid:
Yes, it was me :D Thank you.

After fiddling around more, I have to say again, that I really love the whole UI. Really well thought out. Just bought the pro version, altough I just paid for zooper a couple of days ago. :)
[Android Apps and Games] frankmonza:
Thanks!! Spread the word :)
[Android Apps and Games] demod_oz:
So I got the latest update today and it mentions animations. I cannot for the life of me find where to create/activate/enable animated anything. Can anyone help? Pretty new to kustom widgets, but loving it!

Combined with the layers app, I've got a pretty sweet looking photo frame!
[Android Apps and Games] frankmonza:
Animations are available on KLWP only, my fault i did not mention that in the line
[Android Apps and Games] demod_oz:
Ahh ok no worries.. Got excited when I saw it in the widget's "whats new"

I had read in the FAQ why it's not possible, but perhaps you could allow animations in KWGT if you touch the widget, and only let the animation run for 30 seconds?

My idea is to implement a small ticker on the the bottom of the screen that displays a surf report that I scrape. It is way to long to display on its own. Or is manual scrolling of text possible?
[Android Apps and Games] frankmonza:
For that you probably need either popup widget or KLWP, doing animations in widgets its not technically possible, a widget could scroll but it would make it very very limited
[Android Apps and Games] demod_oz:
Sorry, wasn't clear there - got a bit carried away - I was thinking more a manual scroll, where you scroll text up/down etc by sliding your finger. Just like the bookmark widget that you slide up/down when it has more than the widget can fit. This would probably be better than an animation to think of it.
[Android Apps and Games] frankmonza:
This is not possible in a widget, the bookmark widget is a list of items and can do that but KWGT cannot
[Android Apps and Games] ewa12321:
Hmm i made in GLOBAL a LIST named VIEW with options: BEST, TODOTDY, NEXTE.

In ROOT i have 3 Overlay Groups with in VISIBILITY formulas: $if(gv(view)=BEST, "ALWAYS", "NEVER")$ other ones should react to two others.

In ROOT i have rectangle shape that after tap changes to next variable in LIST. I can see change in preview but in desktop i can see only layer with BEST and others are blank. Why is this?

I created text item that shows state of LIST and it changes well on tap.

Request: more text to write in name field in globals. If text is long some way to show whole name?

Life is poker, risk being happy
[Android Apps and Games] frankmonza:
The formula should work, please check twice, also remove the quotes (not needed), and try to write the formula from scratch if you copied/pasted it, if its still not working please share a super minimal example with only the issue and i will check it (but no one reported this issue so it might be some extra non visible char in the formula)

Yeah its mainly an UI thing, i have no space :)
[Android Apps and Games] ewa12321:
Idk why it doesnt work. State of visibility changes, variable changes.. In editor it works but not in homescreen.

https://www.dropbox.com/s/f6vjis745uevjvh/Test.kwgt.zip?dl=0

Life is poker, risk being happy
[Android Apps and Games] frankmonza:
Apparently Kustom is not removing the leading spaces from list items when splitting the values, so "second" is " second" (with a space at start), just edit your list and use "first,second,third" instead of "first, second, third"

I will add a todo item to fix this in next release
[Android Apps and Games] chalid:
Thanks for adding dawn times in the new beta :good:

Though the sunrise times aren't correct. It shows 6:03 for dawn-sunrise no matter which definition (astrominical, civil, nautical) is chosen.

It should be:

astronomical	04:50

nautical 05:25

civil 06:01

Dusk-sunset is correct for all definitions.
[Android Apps and Games] frankmonza:
So just Sunrise is broken and Sunset works? In which area do you live in? Will test.
[Android Apps and Games] chalid:
Yes, exactly. I'm from Austria. Location is set manually though. Even if I change it to something else (Berlin or London for example) the problem remains.

$df("hh:mma", [...] )$ -> ai(asunrise), ai(csunrise) and ai(nsunrise) always return the same value (6:03 for today at my location).

ai(sunrise) is correct as are all sunset-variables.
[Android Apps and Games] LtriX:
have issue with new beta.

in Editor:

the preview Window doesn´t snap in by scrolling to next/prev Screen..

so you have to play arround by hand to fix the preview screen..

[IMG="preview issue"]http://www.ltrix.de/more/S4/klwp_fittoscreen.png[/IMG]
[Android Apps and Games] frankmonza:
Fixed in next beta, thanks for reporting.

Also ai(sunrise) was a bit off but it was less noticeable than the others.
[Android Apps and Games] frankmonza:
I am trying to fix that, problem is that i cannot find a way to reproduce the issue so its kind of frustrating.

Anyway, please report beta bugs in the G+ community, i do not track beta bugs here (this was already reported btw).

Thanks!
[Android Apps and Games] ew:
Thanks. Hopefully you have also noted that ai(nsunrise) & ai(nsunset) used to be next sunrise/sunset. In fact the editor still uses that syntaxt in an example, but the result is incorrect.

I opened a bug for that on the g+ site.
[Android Apps and Games] frankmonza:
Good catch! Didn't see that, changed to usunrise and nusunrise for nautical sunrise and next nautical sunrise, thanks!
[Android Apps and Games] ew:
Thanks - so is it now going to be:

$ai(sunrise) = sunrise for today

$ai(nsunrise) = next sunrise

$ai(usunrise) = nautical sunrise for today

$ai(nusunrise) = next nautical sunrise

and same for sunset.

I am just confirming that I understand your response.

Once corrected, you will want to mark the G+ bug as resolved.

I have also experienced the incorrect sunrise times, but didn't see the need to create duplicate reports.

Kustom keeps getting better and better - my thanks to you - and for the great support.
[Android Apps and Games] chalid:
Hate to say it, but the problem is still there with the current version (3.14b606717beta) :(

It's the same as before: ai(asunrise), ai(csunrise) and ai(nsunrise) show the exact same value, which now seems to be the nautical dawn. Again, weather provider and location don't matter. Even if I change both, the value for all three variables is exactly the same.

The sunset settings on the other hand are correct.

Thanks for your work nonetheless :D KWGT is really the best widgetmaker out there. After using it a few weeks I'm also happy to say that it's 100% reliable in updating the clock.
[Android Apps and Games] frankmonza:
Yeah just realized that issue was still there, next version should have the fix, sorry got some git branch merging issues
[Android Apps and Games] Rhodesgod:
Is this possible to add klwp animations to kwgt ?!
[Android Apps and Games] frankmonza:
No, this is not technically feasible
[Android Apps and Games] Rhodesgod:
So i can't use global switch and global text variable for show and hide items like klwp ?

or i have to use other ways ? ( that i dont know )
[Android Apps and Games] frankmonza:
Yes absolutely you can do that, you cannot just do animations but everything else is available.
[Android Apps and Games] Rhodesgod:
So may youu pls explain this for me?

I set a gobal toggle switch.then in animation tab i set it when i press that button my items fade in.now when we dont have animation tab how to do something like this?!

Animations don't matter.i want just a way to apear and disapear items with one click.

TY.
[Android Apps and Games] frankmonza:
You can use formulas anywhere in Kustom, so, for example, just put everything in an OverlapGroup or Komponent, then select the Layer -> Visibility option, press Calculator and set formula to "$if(gv(myglobal), ALWAYS, NEVER)$" so the komponent will hide then global is off.

Or you can use it in the opacity of an image using $if(gv(myglobal), 100, 0)$ or anywhere :)
[Android Apps and Games] BigDomTheFirst:
Evening all, I'm kind of new to this app but have been an avid user of zooper for a while..... I moved to this app because zooper is unable to let me make a basic wifi toggle on 6.0. I've tried with KWGT for the past 3 hours to accomplish this but just cannot. I've tried implementing a variable through tasker but it just doesn't respond. Any help and/or instruction would be wonderful

Thanks in advance :)
[Android Apps and Games] frankmonza:
You cannot toggle wifi on Kustom, i will add that feature on 3.15 probably.

You can definitely do that via tasker, check the G+ community i am sure a lot of users already did that.
[Android Apps and Games] BigDomTheFirst:
Thanks for getting back. I've tried doing it through tasker but to no success. I've set KWGT as a plugin and added the wifi as a toggle. Added the variables %wifi and followed all the instructions..... set the toggle inside KWGT as a tasker shortcut but then when I tap the toggle, nothing happens. I had the same problem with zooper. Bluetooth toggles work, airplane mode works fine, just not wifi. Am I doing something wrong?
[Android Apps and Games] frankmonza:
I don't know, i am not a tasker expert and this looks like a tasker issue, you'd better ask in the G+ community
[Android Apps and Games] demod_oz:
Hey frank, Just noticed this typo in one of your pre-sets.

If you add a "DateAndAlarm" preset, the numerical date formula is $df(hh)$ should be $df(dd)$. Not a biggie.. Thought you might like to know!
[Android Apps and Games] frankmonza:
Oops, will fix, thanks :)
[Android Apps and Games] demod_oz:
me again :)

I can't seem to enable wrapping text - see attached? I have a string that is a 5-600 characters long. It does eventually wrap, but I think it might be the text having a newline char? I read somewhere to put it in a container and change the mode setting, but it doesn't work with any setting. Am I missing something?
[Android Apps and Games] frankmonza:
Inside the Text module you have an option called "type" set it to "fixed width"
[Android Apps and Games] demod_oz:
That did it.. Thanks. My little project is now complete! Its actually way better than I imagined when I started. Thanks for the awesome app.. I bought the paid version within 10 mins of trying it!
[Android Apps and Games] frankmonza:
Cool! Do not forget to rate :)
[Android Apps and Games] [DAO]:
1. Is there any way to change visual reaction on tap? Because when I tap on text it highlights a big square under instead of highlighting text itself. The same for icons.

2. If I change desktop size from base 5x5 to 7x5 (Nova Launcher) and try to resize widget it doesn't fit by width however i tap on widget after resize... Widget size are 3x5 on 5x5 screen and 4x5 on 7x5 screen
[Android Apps and Games] frankmonza:
1. Not currently, not easy

2. If you pressed "padding" after long pressing on the widget in Nova and its still not working its a Nova bug
[Android Apps and Games] [DAO]:
1. Then can you totally remove visual effect of pressing? Is it possible to add option that I can untick (like vibration feedback)? :D

2. Yes actually issue is solved after restart. It seems that it was Nova fail.
[Android Apps and Games] frankmonza:
Will add a todo item to my list to remove that
[Android Apps and Games] :
nice work ;)
[Android Apps and Games] rphlfjrd:
What is the formula to hide something if Y app is playing instead of X app or Z app or A app?

X app = Google Play Music

Y App = SoundCloud

Z App = YT Music

A App = YouTube

What I want to happen is

X app shows

Title

Artist

Album

Y app shows

Title

hide artist

Album

Z app

Title

Artist

hide album

A app

Title

hide artist

hide album

Look the the screen shots below for more sense of the problem I'm facing.

Blind Talk - Google Play music

The Afternoon - SoundCloud

Jumpman - YT Music

Kiiera Gold - YouTube
[Android Apps and Games] frankmonza:
You can use $mi(package)$, so e $if(mi(package) = foo, do something, something else)$
[Android Apps and Games] faartsen4spam:
I have been playing a bit, but can not verify whether or not it is possible to set the value of a global switch based on the content of a variable.

Or is this only possible via a (touch) action?
[Android Apps and Games] frankmonza:
You can switch a global switch based on a formula (see auto switch formula on / off) or you can use a text global and make it return 0/1
[Android Apps and Games] creeve4:
Does KWGT have the ability to ellipsize text based on width (e.g. width in DP) rather than character count?

I have found ellipsizing based on character count insufficinent as most fonts are not fixed width, thus I end up with text outside the boundary of my widget.
[Android Apps and Games] frankmonza:
No this is not posible as of now because the widget length is not known by the underlying function parser (means, ellipsize is a text thing while getting the length of the text in pixels is a graphic thing which is done later as it depends on the font being used + scaling plus a lot more things).

Only thing you could do is use fixed width PLUS max lines set to 1 but this won't give you the ellipsizing
[Android Apps and Games] RidleyofZebes:
Is there a way to create curved progress bars like we could in Zooper? I'm only seeing options for straight and round...?
[Android Apps and Games] frankmonza:
You can currently create flat curved progress bars using the shape module, just do this:

Add a Shape, set type to ARC

Go into FX, set Texture to Sweep Gradient

Set width to 1

Select the "offset" option and turn it into a formula

Enter any formula that returns 0 to 100

I will add native curved progress bars to the progress module soon
[Android Apps and Games] ewa12321:
It is possible to make all list remember their position? Ex when I go to Fonts list where are all fonts to choose from, choose one ex Walkway and go back to widget, if I want to choose ex to Walkway Bold (next on list) go to Fonts list list opens not near Walkway font but on beginning and I have to scroll alot. Could lists remember previous position where I was choosing or editing something? Same applies to UI ex Globals or Root.

Gesendet von meinem GT-I9295 mit Tapatalk
[Android Apps and Games] frankmonza:
Yeah that's something i need to fix, i will add a todo item to 3.17
[Android Apps and Games] cormanthor:
I saw (and greatly appreciate) where I can display events from a single calendar. Is there any way to do the opposite? I'd like to display another calendar with events from all other calendars. I can't just exclude it from the settings menu as I still wish to display that calendar too.
[Android Apps and Games] frankmonza:
The "calendar" field can be a regular expression so you can try using this ".*((?!calendarname).)*.*" to make it NOT match that name, a bit tricky i know, not sure if it works actually
[Android Apps and Games] cormanthor:
I tried what you have listed, specifically:

$df(EEE hh:mm, ci(start,0,.*((?!Shift).)*.*))$ $ci(title,0,.*((?!Shift).)*.*)$

Unfortunately it loads from all calendars still. And trying to use just the Shift calendar also pulls from all calendars.
[Android Apps and Games] frankmonza:
If you want to put a calendar name you need to put a date also, so it would be:

$df(EEE hh:mm, ci(start, 0, a0d, Shift))$ $ci(title, 0, a0d, Shift)$

To pull from calendar Shift (and this has to work)

And

$df(EEE hh:mm, ci(start, 0, a0d, ".*((?!Shift).)*.*")$ $ci(title, 0, a0d, ".*((?!Shift).)*.*")$

To pull from everything except Shift. I am not sure the second works however, i will test it
[Android Apps and Games] cormanthor:
The first code sample works beautifully, thank you!

The second code sample still pulls from the Shift calendar (once the extra parenthesis is added for the $df field). I even tried duplicating the first formula to pull individually from Work (which functioned) and Phone (which did not).

According to Google Calendar, the settings for the Shift and Phone calendars are the same. I will have to dig some more info Google to see if the problem is on my end.

Odd that it would still pull from Shift with the "not" operator in there...
[Android Apps and Games] frankmonza:
Yeah well that's quite a complex (and not tested) regexp, i need to dig it further to understand how it can be done, i can try to see if i can make it easier (maybe prepending with a ! to not match)
[Android Apps and Games] cormanthor:
I stumbled onto a regexp that seems to work, but I think it's lost in so far as the date is concerned. Here is the new entry:

$df(M/d hhmm, ci(start, 0, a0d, "^(?!Shift).*"))$ $ci(title, 0, a0d, "^(?!Shift).*")$

While this does effectively ignore the Shift calendar, it pulls (with sequential index numbers) yesterday's midnight shift (2300-0700) and today's midnight shift (2300-0700), but won't go any farther, complaining about invalid dates. Those entries are the only ones that occur in this 24 hour period, so I think the a0d entry is killing it.

The only solution I can think of would be to allow the calendar entry without the optional date field.
[Android Apps and Games] frankmonza:
Yeah i need to provide a specific way to negate the field and also i need to add a way to provide a range of dates instead of just one single day
[Android Apps and Games] cormanthor:
I tried using a blank variable for the date (start, 0, , Shift). Maybe you can just check for blanks to get around it. Either that or import the whole calendar (or pertinent section thereof) and parse it on the device.

Thanks for taking the time to work with me on these requests. I'll definitely be purchasing KLWP soon.
[Android Apps and Games] frankmonza:
I will probably add a new field, lets see
[Android Apps and Games] RidleyofZebes:
Thank you so much for your reply. This really is fantastic, almost a complete replacement for the abandoned Zooper project.

Do you have any plans to add a mobile data/wifi usage meter?
[Android Apps and Games] frankmonza:
Mobile data / wifi usage stats are already available via the ts() function, examples inside the app or here:

https://kustom.uservoice.com/knowledgebase/articles/478938-ts-traffic-stats-download-upload-speed

You can easily use it to make progress bars
[Android Apps and Games] RidleyofZebes:
Oh wow, that's embarrassing! I can't believe I didn't see that. Thank you again!
[Android Apps and Games] New-Bee:
Hi,

I would like to show the next date of a special Event, e.g. trash empty.

This Events are in a sub-calender of my calendar.

The Name of the Event can be hard coded.

Something like

Date of the first (next) Event in the calendar Müll where title = Glas﻿

Is this possible?
[Android Apps and Games] frankmonza:
No, you can select a calendar but you cannot select an event right now, a query like filter would be nice but i dont know how to add it honestly, i plan to add some features to the ci() function but this might a bit complex to implement
[Android Apps and Games] creeve4:
I am using the following code. When none of the "if" statements is true, the widget still displays a " - " symbol. What is wrong with my code?

$if(df(Hmm, ci(start, e0, a0d)) > df(Hmm), tc(ell, ci(title, e0, a0d), 36) + " - " + df("h:mm", ci(start, e0, a0d)),
if(df(Hmm, ci(start, e1, a0d)) > df(Hmm), tc(ell, ci(title, e1, a0d), 36) + " - " + df("h:mm", ci(start, e1, a0d)),
if(df(Hmm, ci(start, e2, a0d)) > df(Hmm), tc(ell, ci(title, e2, a0d), 36) + " - " + df("h:mm", ci(start, e2, a0d)),
if(df(Hmm, ci(start, e3, a0d)) > df(Hmm), tc(ell, ci(title, e3, a0d), 36) + " - " + df("h:mm", ci(start, e3, a0d)),
if(df(Hmm, ci(start, e4, a0d)) > df(Hmm), tc(ell, ci(title, e4, a0d), 36) + " - " + df("h:mm", ci(start, e4, a0d)))))))$
[Android Apps and Games] frankmonza:
Hi! So, first two tips/suggestions:

you using df(S) to compare dates instead of df(Hmm), the capital S is seconds since epoch, its must better

You can nest ifs without repeating the function, so you can use $if(condition, something, condition, somethingelse, condition....)$

That said the formula looks ok, it should not return anything if none is true, can you try to just add a "" so an empty string at the end as a default?
[Android Apps and Games] Bob80808:
Array

Maybe someone already ask for that, sorry if it has.

Could it be possible to add some sort of array for components?

Example: textarray(0 to 4) and in a function field I could enter something like: $"Textbox #" + index$

Example 2: textarray(0 to 4) could have a value of: $ci(title, index)$

Understand?

Maybe it's too complicated, maybe it's not feasible...

A potential easy workaround: be able to get the components' name in a function field and name them "0, 1, 2, ..."
[Android Apps and Games] frankmonza:
You can do this with global lists, so do the following:

Create a List Global

Enter your values, like "one,two,tree" (it can be a formula)

Access them via $gv(global, index)$

Hope it helps!
[Android Apps and Games] Bob80808:
Yes and no. What I'd like to do:

Textbox(0) = $ci(title,0)$

Textbox(1) = $ci(title,1)$

Textbox(2) = $ci(title,2)$

Textbox(3) = $ci(title,3)$

But, instead of writing the function on EACH of the textboxes, I'd like to have an array of textboxes and simply write Textbox(index) = $ci(title,index)$ ONCE so if I choose to modify my function, I won't have to repeat the modification everytime.

As I said, an easy workaround would be to be able to get the textbox name as a variable and set it to a number, for example: Textbox = $ci(title,getname)$

Thanks a lot Frank!
[Android Apps and Games] frankmonza:
Ah now i see what you are asking, you want to be able to define some sort of function templates, i was thinking to provide some stuff like that so you could define your own function and then use it but unfortunately this is not possible (yet). What you can do is chain 2 text globals, so you can define global 1 called index as your number and then define a text global called "title" with $ci(title, gv(index))$ and then use that around as $gv(title)$ this however might not work and just render the formula.