hmmm i cant get it to work... the code is where i am failing, as i have weather in iCal... can you help me a little more?
I'll see what i can do
😉 after everything I figured out from this group I feel good paying it back.
ok so let's start from the top...
I'll assume you are sure you see weather in your calendar... but just in case and for others following along...
You can get the link by going to
http://www.wunderground.com then search your zip code on the page that gets displayed to the right of the page you will see links for iCal and RSS click iCal this will prompt you to add a calendar in iCal name it something obvious and helpful like weather
😉
You should now see weather forecasts in iCal
Next up you will need to install iCalBuddy from
http://hasseg.org/icalBuddy/
I'll dissect what iCalbuddy will be asking for from my example
Code:
usr/local/bin/icalBuddy -ic "YOUR CALENDAR NAME HERE" -iep "datetime,title" -ps "| |" -nc -po "datetime,title" -df "%a" -nrd -b "" eventsToday+3
-ic tells iCalbuddy you want to use a specific calendar I opted to use the ID of the calendar you can also use the name of the calendar as well
-iep tells iCalbuddy the specific properties I want returned I only want the date and title (you could also include notes it has a longer forecast description)
-ps changes the separator between the date and the title
-nc removes the calendar title from the list item (i don't need to know it's in the weather calendar)
-po tells iCalbuddy the order to display the items in
-df is the date format (we only need the date and nothing more)
-nrd tells it to use numeric dates instead of relative dates such as today tomorrow
-b "" changes the bullet I left it blank to not use a bullet at all
eventsToday+3 tells it to return today plus the next 3 days
that's about all you should need to get it to return the data the only other thing I have done in a cofig file is set the colors to use so I turn on ansi color for the item.
Let me know if that's helps
I'm still figuring it out myself ;-) I don't know sed, and grep as well as many here so I am not sure how to pull just the next day our of the info returned however I am positive there IS a way to do that using sed or grep
once you've done this then you can start pulling all sorts of info from your calendars since there are other things you can subscribe to in iCal as well
Cheers
Edward