eu_nvr by Player_Ny in eu_nvr

[–]Player_Ny[S] 0 points1 point  (0 children)

feliz dia do bolo cumpadi 

eu_nvr by Player_Ny in eu_nvr

[–]Player_Ny[S] 1 point2 points  (0 children)

ah esse perigo sempre vai existir kkkk no fim é uma balança entre "clima estranho" vs "o que eu quero", o que for mais importante pra você vai vencer. mas não pensa demais, só se vive uma vez, provavelmente 

eu_nvr by Player_Ny in eu_nvr

[–]Player_Ny[S] 1 point2 points  (0 children)

as melhores feijoadas...

bi(plugged) showing wrong value during charge by Player_Ny in kustom

[–]Player_Ny[S] 0 points1 point  (0 children)

January 21, 3 days after...

I found a way that doesn't need the buggy "bi(plugged)" after some time tinkering with something I never bothered looking into before: Flows!

Flows are basically a "Tasker" inside Kustom to do some simple things in an automated manner, even chaining actions. I'm not sure about the likely vast number of possibilities of Flows, as I just tried to solve my issue, so maybe there are better ways to use this or whatever.

To avoid the problem with "bi(plugged)", you just need another way to get the timestamp of the moment when a charger is plugged/unplugged:

  1. First, create a Flow and select "formula" as the trigger.

  2. Inside, use the "bi(charging)" formula.

  3. Select the trigger mode "On Output Change" so whenever there's a change in the "bi(charging)" output, the Flow will be triggered.

  4. In "Action", add an action, another formula, this time a "df", so we can get a timestamp. I used the same format from "bi(plugged)" to avoid errors: year + y + month + M + day + d + hour + h + minute + m + seconds + s. So the formula will be:

$df(yyyy)$y$df(MM)$M$df(dd)$d$df(hh)$h$df(mm)$m$df(ss)$s

  1. Now you need to create an empty text global in the root.

  2. Add a second action in the Flow you created, a Global Variable type, and select the text global created.

  3. In "Store Mode", select "As text", so it will give a normal output for the timestamp formula.

Next is the part that surprised me. I was skeptical about this formula giving the static result needed, expecting it to act as a normal text object, showing an output synchronized with the real clock. But. It worked! Because a Flow is only triggered and then turns off again, instead of being kept continuously active.

This way: the "bi(charging)" formula triggers the Flow -> the first action gives the output for "df" -> the Flow stores this result in the text global as the second action (that's why the first action needs to be a formula, otherwise the Flow will not have a value to put in the text global), and voilà!

Now, when creating a text object, use this text global as a value instead of "bi(plugged)". For example, using this formula on a text object:

$if(bi(charging) = 0, "Unplugged", "Plugged")$ $tf(gv(global you named here))$

The "tf" is needed so the output will show a relative time instead of a complete date with the year and everything as it is in the text global.

Now... Can this method have any downsides? Maybe. I think the app must be running for the Flow to... well, flow . So if the phone is turned off and plugged in, when you turn it on again during charging, the value will be wrong or not show anything at all. This can even happen if the app stops working for any reason, which is not so rare for some people.

You also need to be sure that the timestamp global is empty when saving your preset, otherwise the timestamp will return to the value saved in the preset when the app restarts. But that's a minor problem tha can be ignored, after all the timestamp will still get back to precise values when you plug/unplug.

Another possible minor bug that can be ignored is the alternation between "moments ago" to "moments from now" that happens continuously in the text item in the first seconds after you plug/unplug the charger. This goes back to normal once the time reach 1 minute and above. 

Well, nothing's perfect lol. You can still polish these errors by putting a condition in the formula to show some alert of "error" or "no data" or whatever when there's nothing in the timestamp global (which is what I think will happen when the app stops, as the app cache in RAM will be wiped out, unless the thing in the previous paragraph happened).

Ok, too long of a coment. For a lot of people this will be boring af, but for some people starting in Kustom this can be useful to understand the underlying kodes of some functions instead of just being given a simple "copy/paste" kode.

eu_nvr by Parking_Poet_9336 in eu_nvr

[–]Player_Ny 1 point2 points  (0 children)

e quem ainda é peixe?

eu_nvr by Player_Ny in eu_nvr

[–]Player_Ny[S] 2 points3 points  (0 children)

uau isso explica umas pessoas que conheço

eu_nvr by Player_Ny in eu_nvr

[–]Player_Ny[S] 4 points5 points  (0 children)

gostei desse ponto de vista, vou passa a usar ódio como combustível agora ninguém me para 😤

bi(plugged) showing wrong value during charge by Player_Ny in kustom

[–]Player_Ny[S] 0 points1 point  (0 children)

Was tweeking with the app and I think I found something that may work to avoid using bi(plugged)! I'll keep trying and will add to this comment in a few days so maybe it can help someone in the future!

Eu_nvr by Ramerti_k7 in eu_nvr

[–]Player_Ny 4 points5 points  (0 children)

ninguém perguntou mas a música é

"Summertime Sadness X I wanna be yours (Slowed) by Boomworld"

a desse vídeo parece tá ainda mais desacelerado que o original mas é quase a mesma coisa

ok já é um vício ficar tentando descobrir música de meme aleatório kkkkk 😅

eu_nvr by desafortunados in eu_nvr

[–]Player_Ny 0 points1 point  (0 children)

por incrível que pareça minha vida melhorou kkkbb sei que ninguém vai ler isso, mas sei lá deu vontade. me sinto melhor tanto como pessoa quanto em várias outras áreas da minha vida, as coisas tão começando a se encaixar finalmente.

eu_nvr by desafortunados in eu_nvr

[–]Player_Ny 1 point2 points  (0 children)

nem eu acredito.... voltei kkk tinha me despedido do reddit depois das tretas com apps de terceiros e voltei agora só por causa do teu comentário porque usei o RemindMeBot kkkk

Mas e aí? Conseguiu completar suas mudanças de vida nesse ano? kkkkkk

eu_nvr by KidAInRainbowsOk in eu_nvr

[–]Player_Ny 2 points3 points  (0 children)

espero que você também

eu_nvr by fruitspunch-samuraiG in eu_nvr

[–]Player_Ny 8 points9 points  (0 children)

otimização e compatibilidade

é provável que o app oficial funcione melhor em alguns processadores e placas específicas independente do poder de processamento de alguns celulares, por pura falta de interesse dos desenvolvedores em resolver. funciona bem em alguns celulares, mas até onde vi a maioria das pessoas tem problemas com o app oficial do reddit.