Hi there,

I’ve been using icalbuddy to populate my weekly Kanban, and in principle it works fine, but it HAS to be run on a Monday or all the dates are out…I was wondering if you’re weekly overview allows for a more dynamic interpretation of which dates to choose, but it gives me the entire month of October

Is this supposed to be a ‘relative’ Monday? As in the closest to now?

I’d like to be able to run the common on a Sunday or Monday or Tuesday, but still get this weeks dates. Any ideas?

icalBuddyFixed.zip (54.1 KB)

Hi there,

I also struggled to get this to work. And I found a “fixed” version of iCalBuddy that seems to work when you call it from automation. I don’t know what’s different there but it works.

Maybe one step in the troubleshooting process cloud also be to just rund the command on the console without obsidian in between.

1 Like

Yes this -v+monday should theoretically work just like you want it. At least for me it works. But I know that the dates Command works different on macOS and Linux. Are you also on macOS?

“fixed” makes me a bit nervous - this is a company laptop…
Do you have a source for that? Preferably with the source code…

Edit: If it’s the same version as here, that seems fine.

Yes it is exactly that. I just could not find the source any more and directly uploaded it.

1 Like

Hi again,

I am - and unfortunately it didn’t - I get the entire month!

I just tried it again, and this simplified version seems to work (have to try it tomorrow to see…)

/usr/local/bin/icalBuddy -npc -nrd -iep “title,datetime” -b “-” eventsFrom:“date -v+monday” to:“date -v+1w”

Hey,

no worries. Maybe we can figure it out together. Can you post the output of the following two commands?

date -v+monday

and

date -v+1w

Thanks! Both of those are working just fine!

And the simplified version I pasted above, also works today - yay! It’s all I need, though I may fiddle with a per day version:

Wednesday:
/usr/local/bin/icalBuddy -npc -nrd -iep “title,datetime” -b “-” eventsFrom:“date -v+wednesday” to:“date -v+wednesday”

and for all those coming here as noobs like I did, make sure there are no curly quotes in your terminal command! :slight_smile:

I get the output in one line – any guesses as to what I’m doing wrong?

can you post the command you are using?

Oh, crap… I really should have done that unprompted ;p

icalBuddy -npn -nrd -df "" -nc -b "- " -ps "|\t|" -po "datetime,title" -iep "datetime,title" eventsToday

Note that this is what I use right now in a bash script where I automatically put it in the clipboard for pasting - I’ve used the from: to: syntax when I was using it with templater.

Anyway, the command gives me one task on each line, but with templater they all get squished into one line.

Not that I’m an expert but can you try swapping out your -ps string for this:

I’m guessing you need a ‘\n’ new line somewhere…

I tried that. It didn’t work. It just adds an extra newline when I run it in the terminal, but both get removed in Obsidian.

Hi all,

I’ve integrated my Outlook calendr using templater and a python script:

4 Likes

whoa! impressive!

How did you do that?

I was wrong, I’m now back at my computer and have no new lines in my command either and it works fine. is it possible that it’s a setting in Obsidian itself? Like, maybe turn off the setting ‘strict line breaks’ in settings>editor ?

1 Like

Hi Kabo,

I’ll create a Github repository to share my scripts, including this one…

Regards

1 Like

That was it! Strict linebreaks was the villain, and turning it off made everything work!

1 Like

Yay! :partying_face:

Hey! Wondering if there is a link you could share to this repo? I’d love to be able to integrate my calendar as you have. Thank you!

1 Like