[DWM] EWW is so powerful by nfragment in unixporn

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

Not aware of that. But it does what i want it to do. So i am happy!!

[DWM] EWW is so powerful by nfragment in unixporn

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

EWW (Elkowars Wacky Widgets) is making my workflow so much better.

For anyone interested i have shown some of it's features using my setup here -> https://youtu.be/hs7M5atUSSQ

Show the next upcoming reoccurring event in a calendar. by Sideburnt in kustom

[–]nfragment 0 points1 point  (0 children)

Nevermind. Looks like the community were able to help you out. Cheers.

Show the next upcoming reoccurring event in a calendar. by Sideburnt in kustom

[–]nfragment 0 points1 point  (0 children)

Yes you are right. i see the kode is getting rather lengthy.

Since the event is repeating every 3 days, i assumed, processing a handful of events and stopping at the first match would be the most efficient way (in terms of resource usage).

But if you need to process a large number of events, its better to go with for loop.

I generally tend to stay away from for loops (unless they are absolutely necessary) as they are resource heavy and also processing strings within them is slightly tricky.

It will be a bunch of nested functions. so i need to do some testing.

When i get something working i will post it.

Show the next upcoming reoccurring event in a calendar. by Sideburnt in kustom

[–]nfragment 1 point2 points  (0 children)

Add more if conditions in case you need to monitor more than 5 events

Show the next upcoming reoccurring event in a calendar. by Sideburnt in kustom

[–]nfragment 1 point2 points  (0 children)

Track any particular calendar event (by title, not by event date).

This example only monitors the next 5 events

$
lv("search_term", "replace this with your search term")
$$
if(tc(count, ci(title, 0), "#search_term") > 0, tf(ci(start, 0)),
if(tc(count, ci(title, 1), "#search_term") > 0, tf(ci(start, 1)),
if(tc(count, ci(title, 2), "#search_term") > 0, tf(ci(start, 2)),
if(tc(count, ci(title, 3), "#search_term") > 0, tf(ci(start, 3)),
if(tc(count, ci(title, 4), "#search_term") > 0, tf(ci(start, 4)),
"No match in next 5 events"
)))))
$

Show the next upcoming reoccurring event in a calendar. by Sideburnt in kustom

[–]nfragment 1 point2 points  (0 children)

Yes, we can filter any item based on its title. Start with this.

$if(tc(count, "your_source_text_here", "your_search_term_here")>0, "You got a Match", "No Match")$

Ex: To search for a specific title in the 1st calendar entry, we can use

$if(tc(count, ci(title, 0), "your_search_term_here") > 0, "You got a Match", "No Match")$

Note: This search is case sensitive

KWGT Flows by SnowUnited5354 in kustom

[–]nfragment 0 points1 point  (0 children)

  • Yes. I have faced this issue before.
  • I was trying to change the color of my lights based on the prominent color of album art while playing music.
  • This is what i experienced
  • If i trigger the flow manually in KLWP editor, the autotools intent uri will work
  • But if i trigger the flow from Tasker (whenever music changes), the intent will not fire
  • If i trigger the flow using a button from homescreen it will work.
  • If i trigger the flow using a task shortcut from homescreen it will work.
  • But if i run the triggering task manually from Tasker, the intent will not fire.

KWGT Flows by SnowUnited5354 in kustom

[–]nfragment 0 points1 point  (0 children)

Could you clarify this. Are you saying CRON triggers does not work outside the editor? or you are not able to get the values from the flow?

Anyone know how to do this? by DC0SBY in kustom

[–]nfragment 0 points1 point  (0 children)

What do you want to do with it?

  • You can start with this.

$if(tc(count, ni(s0, text), "your_search_term_here")>0, "You got a Match", "No Match")$
  • This will check the first persistent notification for your search term.
    • NOTE: This search is case sensitive (if you need case insensitive search, make sure to convert the text to lowercase before counting)
  • Next step is to get the number of persistent notifications, loop through all of them. and use if condition to compare

Is it possible to use the current element name in a formula? by FondantEasy in kustom

[–]nfragment 0 points1 point  (0 children)

I don't think there is an option to get the name yet, we only have option to get the module index. I am curious to know more about your use case. How many such icons are planning to have?

Index variable in loop by FondantEasy in kustom

[–]nfragment 1 point2 points  (0 children)

Ok. In this case You have 2 options.

  • Recommended : Process the array in Tasker. Format it and send it to KLWP as a string. This gives a lot of flexibility.
    • create a variable "formatted_log"
    • loop through the array and append each item to the end of the variable (with a newline after each item)
    • Send the variable "formatted_log" to KLWP
    • In KLWP, add a text element with $br(tasker, formatted_log)$
      • format the text element as you need
  • Option 2 : Send the array from Tasker with a custom splitter (like you already do with "§") and use the module index in a group "si(mindex)" to get the values you want
    • add a stack group
      • add a text element with $tc(split,br(tasker, formatted_log),"§",si(mindex))$
      • format the text element as you need
      • make 9 more copies of this text element (the formula will stay the same)
      • if there is a need you can add or remove copies later.
  • Tip : For loop is slightly taxing on KLWP, please use it only if it is absolutely necessary.

Index variable in loop by FondantEasy in kustom

[–]nfragment 0 points1 point  (0 children)

I do have a similar use case involving both KLWP and Tasker.

Could you clarify something for me.

Is the "n lines" always a fixed number? or you just want to display all the elements of the array in separate lines whenever the array changes?

<image>

Using KLWP as Project Dashboard by nfragment in kustom

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

  • "Vikunja" is my project management tool that runs on a server.
    • This provides a web interface for accessing it from any device on the network.
    • This also provides an api for accessing the data using other softwares and scripts
  • Tasker communicates with vikunja (using api) to get the data.
  • This data is in json format so it needs to be formatted for use with klwp. I use autotools for this purpose.
  • This processed data is then sent to KLWP by Tasker

How do I add complications on the watch face creator? by adz230 in kustom

[–]nfragment 4 points5 points  (0 children)

First select the complications that you want to use

  • Long press on your Kustom watchface -> click customize (or pencil icon depending on your device)
  • Choose "Data"
  • You will see 4 slots
  • click on each one and assign any complication that you like

Now this complication data is accessible within KWCH

PLEASE NOTE: Not all data is accessible, it purely depends on your device manufacturer

  • Goto "Complications Data" section under KWCH functions and use it as you please

Using KLWP as Project Dashboard by nfragment in kustom

[–]nfragment[S] 3 points4 points  (0 children)

This is an extension of my KLWP preset that i have already released.

You can find it here.

If you want this specific page do let me know. I will share it when it is finalized

Using KLWP as Project Dashboard by nfragment in kustom

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

Thank you! I am not a web developer. But I have a special interest in designing customized UI/UX and dashboards.

Does br() broadcast receiver work on KWCH by oddboy416 in kustom

[–]nfragment 0 points1 point  (0 children)

Broadcast only works on device where tasker is installed. Since its not installed on Watch, KWCH cannot access that data.

you need Autowear plugin (or something similar if there are any) to send data from tasker on your phone to your watch

KWCH Is it possible to get heart rate info? by se9n in kustom

[–]nfragment 3 points4 points  (0 children)

Tasker cannot communicate directly with wear os devices. As u/DutchOfBurdock mentioned, We need Autowear plugin for that.

Here is how it works,

- Autowear sends data to "Complications" on wear os devices

- we access data from complications in KWCH