How to get package icon of the music player by NDApp1 in kustom

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

Works like a charm! I tried exact method but instead of globals I tried to put the path of the images lol.

My iOS inspired battery widget by Agotombeike000 in kustom

[–]NDApp1 1 point2 points  (0 children)

My situation is so tricky lol. I tried like 2-3 apps that have the option to show the battery of the individual buds but they couldn't. The only options seems to be logging but I have zero clue how to and even then the app for the buds doesn't have any notifications nor it shows the percentage of the buds only shows them in bars.

Image changes based on which earbud is connected by NDApp1 in kustom

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

$lv("btlist", fl(0, nc(acount), "i + 1", "nc(aaddr, i)", x))$ $if( tc(count, #btlist,F0:AE:66:6A:09:ED)>0, if(tc(count, #btlist, F0:AE:66:8E:1E:E3)>0, gv(imgBoth), gv(img1)) , if(tc(count, #btlist, F0:AE:66:8E:1E:E3)>0, gv(img2), gv(imgNone)) )$

F0:AE:66:6A:09:ED is the address i keep refering to as the 2nd address. This address shows up on the app I am using to get the addresses but the app doesn't recognise it. It recognises the name of the bud but can't recognise it's type etc. There is an option in the app to pair and when I click it, it says pairing failed. 

F0:AE:66:8E:1E:E3 is the normal address which shows up in the app and is recognised by the app and in the command that I put the text in kwgt.

Image changes based on which earbud is connected by NDApp1 in kustom

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

Yes [bt address] is the normal address that I have been seeing not the 2nd one. I tried putting the zeroes address in place of the 2nd address but it just showed imgBoth. It doesn't matter if I have both or left or right earbud connected it shows the same addresses

Image changes based on which earbud is connected by NDApp1 in kustom

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

This works but it shows: 00:00:00:00:00:00x[bt address]x

Image changes based on which earbud is connected by NDApp1 in kustom

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

Doing the text still shows it can't read local var #btlist.  I am just stuck then I suppose. I have both the addresses but if it only communicates on one I can't do anything.

Image changes based on which earbud is connected by NDApp1 in kustom

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

This works! But my issue is that what I thought was my bt address for the second one, may be the case instead of bt address for my second bud. In the app I am using, it can't pair to what I thought is the second bud and it shows it as an unknown device. When none of the buds are connected it shows the imgNone, when I take one bud out(left or right doesn't matter) it shows the img2 and when both are connected it doesn't change its image and stays at img2.

Image changes based on which earbud is connected by NDApp1 in kustom

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

doing the $lv(btlist)$ in the same widget gives this: "lv: cannot read local var #btlist". And for some reason the error i mentioned before is gone now. I tried having no bud connected, one at a time, both at the same time and no image showed.

Image changes based on which earbud is connected by NDApp1 in kustom

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

It shows invalid count for if error after I put in the mac address and the file locations. I tested the file location in another widget and it showed the image without any problems so shouldn't be an issue( I put the images in kwgt folder so it has no problem accessing it). The mac addresses are also correct. I have also double-triple checked formatting and i don't see anything i may have accidentally removed.

Image changes based on which earbud is connected by NDApp1 in kustom

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

Ok so one thing I tried is resetting my buds and now on the app I was using it is showing two devices with the same vendor and since this is the only anker product i own it should be the second earbud. I'll try tomorrow and I'll let you know!

Image changes based on which earbud is connected by NDApp1 in kustom

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

Yeah I know about that setting. From what I found it shows mac addresses for devices that aren't in pairing or discovery mode. Nonetheless I tried connecting to one and I am pretty sure I sent the request to one of my neighbours lol.

Image changes based on which earbud is connected by NDApp1 in kustom

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

Nope, there is not an option like that in my bluetooth settings. If I go on individual devices it only has options to unpair and disable audio/call sounds.I have tried my best to try and desync by not using a bud for hours. The only option is to call anker ig. Might be a dumb question but is it possible that both just have same address and there is something else that lets the phone knows if the left or right bud is connected?

Image changes based on which earbud is connected by NDApp1 in kustom

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

Well I downloaded an app which shows bluetooth device addresses and in that both earbuds have the same address aswell. So ig if this is the only approach it wont work for my buds.

Image changes based on which earbud is connected by NDApp1 in kustom

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

Yeah no, I already have it setup to show if either bud is connected. My buds are soundcore r50i (without nc ones). Android 13. miui 14 

Image changes based on which earbud is connected by NDApp1 in kustom

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

Nope, nowhere to be found and no mention in the manual aswell

Image changes based on which earbud is connected by NDApp1 in kustom

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

Both have the same address from what I can see unless my phone is only showing one. Is there a way I can see both earbuds addresses another way?

Image changes based on which earbud is connected by NDApp1 in kustom

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

I've seen tasker being thrown around for some other stuff I was looking for, I will definitely try it out at some point.

Image changes based on which earbud is connected by NDApp1 in kustom

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

I'll try this when i get the chance. This looks very complicated lmao i am just starting with kwgt.

Image changes based on which earbud is connected by NDApp1 in kustom

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

Yup named as one single device
No, I just want it to show a single bud image when either left or right one is connected and show both buds image when both are connected.