Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 27    Views: 131

trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
04/26/13 06:30 AM (12 years ago)

RSS plugin - google calendar?

I've been trying to get the RSS plugin to read my google calendar's feed unsuccessfully. Anyone tried and got it working?
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/26/13 08:17 AM (12 years ago)
i love playing around with rss.. send me a pm of the feed or post it here and i'll take a look
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
04/26/13 08:25 AM (12 years ago)
I have never tried this, but; Make sure your calendar is shared to public. (Google says it could take up to 24 hours). Add ?alt=rss to the end of your feed. I just made my calendar public, so I too will give it a try later today.
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/26/13 08:59 AM (12 years ago)
its public. i can red it in other rss reader ok. Thought this would make a great interim events list https://www.google.com/calendar/feeds/lpfdphhsi8o7fftdnp13cfvsrs%40group.calendar.google.com/public/basic
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/26/13 09:18 AM (12 years ago)
this keyboard is less than a week old and the A button is already intermittent. FML
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/26/13 10:37 AM (12 years ago)
I have it working :D So the first problem are the extra characters in the feed (%40). It should be like this: https://www.google.com/calendar/feeds/[email protected]/public/basic XML Points Story XML Element: entry Description XML Element: summary Title XML Element: title Everything else you can keep as default have fun!
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/26/13 10:56 AM (12 years ago)
Oh you little stud muffin! Now all I need to do is fill in the calendar entries, and get frustrated that the feed puts them in the order I entered them instead of in calendar order!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/26/13 11:14 AM (12 years ago)
lol -- you can change the sorting i believe. search google for sorting api in the google calender. its there i just dont remember
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/26/13 11:45 AM (12 years ago)
Lol! Didn't work! Could it be because I'm launching the plugin from a tab?
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/26/13 11:48 AM (12 years ago)
what didn't work? it should work. delete app from the simulator and make sure your config is refreshed. it works for sure i tested it :)
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/26/13 12:24 PM (12 years ago)
Jeez I'm such a di*k!! This device was loaded from Xcode without the plugin. I'm so embarrassed!
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/26/13 11:18 PM (12 years ago)
ok, its kinda working... i get the list, and the background is white - correct! :o) but clicking on an item loads the item on a clear background, which doesnt work because scringo behind it :o/ if i cant fix that, id be happy for the click to be disabled
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/26/13 11:24 PM (12 years ago)
Back o the net!! in RD_customURL.m, i changed this block of text: self.webView.scalesPageToFit = NO; [self.webView setOpaque:NO]; self.webView.backgroundColor = [UIColor whiteColor]; changes there are scalePagesToFit = NO (was yes), and UIColor whiteColor (was UIColor clear) now the google calendar link fits sweet on my device - hope that helps anyone else wanting a workaround for calendar :o) thankyou mysps for your help, and sorry i was a numpty and forgot the plugin!
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/27/13 02:32 AM (12 years ago)
I'm happy you got it working :)
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
04/27/13 07:59 AM (12 years ago)
wow, great stuff here. Need to test this out for sure. I don't think this is a "workaround", I think it's a great use of the RSS to get a calendar feed. I've picked at a few github google cal projects and they all involve some type of parser int he equation. They usually display it in a table view and the row tap leads to a detail page. I need to try this out today to see what that detail page looks like. But it's a similar flow. I like a table view better than a ios calendar view with dots to indicate an event exists on that day. I think the feed item count is the only downside here vs a more custom control - but to get the most recent items in a quick cal feed, this is great. RD RSS is good stuff with tons of uses. Thanks for sharing this!
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/27/13 08:07 AM (12 years ago)
well, heres some screenshots. As you can see, the list isnt in date order as id like, but in the order which i added to calendar. Which could be issue as i have maybe 100 events to add from various sources... https://www.dropbox.com/sh/hvb0wvdqm1flr7j/q19XXz2_cj?m#f:2013-04-27%2016.00.34.png
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
04/27/13 08:29 AM (12 years ago)
Thanks again - I can see where that is an issue. Sorting/Display is critical. But that detail view is exactly what I would expect and hope for. One would have to duplicate this plugin then and mod it. You'd probably have to mod the parser somehow and get it to sort by event date. Google spits out calendar data in JSON too which is more flexible, it might work better with the SBJSON parser... That would be a lot of hours of coding, so this is why i like this quick solution you have here :)
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/27/13 08:48 AM (12 years ago)
well i have found modifers to the query such as https://www.google.com/calendar/feeds/[email protected]/public/basic?orderby=starttime&sortorder=descending&max-results=5&start-index=1&futureevents=true will show a maximum of 5 upcoming events. Unfortunately, orderby=starttime doesnt seem to change anything and neither does sortorder=descending
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/27/13 08:51 AM (12 years ago)
EDIT! yes! that works! https://www.google.com/calendar/feeds/[email protected]/public/basic Followed by, for next 10 events, in date order starting from the soonest :o) ?orderby=starttime&sortorder=ascending&max-results=10&futureevents=true
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
04/27/13 09:23 AM (12 years ago)
Great stuff guys! I will be submitting my 1st update for review next week. RD simple RSS will have image XML tag setting, header image, font size and color options, and row color options now. Maybe I can learn from everyone's tweaks and build more in. Thank you for your support.
 
trouty
I hate code!
Profile
Posts: 338
Reg: Mar 26, 2013
London Outskirt...
4,830
like
04/27/13 09:43 AM (12 years ago)
Put up a screenshot, I might want to pinch some of your mods! I'm on day 6 of 'waiting for review'... Most infuriating, and leaves me not wanting to experiment too much in the meantime
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
04/27/13 09:49 AM (12 years ago)
Hey Trouty. I will PM you tomorrow with the new file. Can you test the new mods and let me know if something doesn't work?
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
04/27/13 11:18 AM (12 years ago)
Six days waiting for review is normal right now. You will probably be gold on Monday. http://reviewtimes.shinydevelopment.com/
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
04/27/13 11:20 AM (12 years ago)
@atrain and @mysps. Would you guys mind testing my updates too?
 
ATRAIN53
Code is Art
Profile
Posts: 1755
Reg: Nov 17, 2011
Chicago
26,450
like
04/27/13 12:17 PM (12 years ago)
Happy to. I have that post you made to add the image bookmarked and was planning to dig into it soon. Those customizations sound awesome. I'm looking at some image tap code for the header myself. Nice work. I'm looking at some image tap for screen code myself. PM or send email s k o m p d e v @ s k o m p . n e t Anxious to test these feeds. There is a definate art form to generating them. Having these shares for key ones like Facebook, Twitter, YT and now Google cal is mint. Thanks again trouty! I still need a good Twitter one with the image, they keep making it hard to get that RSS. ps - That YT playlist plugin has a nice parser built into it as well RD. Code well worth exploring and a nice plugin.
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
04/27/13 01:15 PM (12 years ago)
Image tap to load screen is built in. I will send you the new index.php tomorrow. Gotta get my chores done today.
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
like
04/27/13 02:07 PM (12 years ago)
sure @red dog i can test it! send me a pm
 
Red Dog
buzztouch Evangelist
Profile
Posts: 805
Reg: Jun 16, 2011
Southern Califo...
18,800
like
04/29/13 09:29 AM (12 years ago)
ALL; Sent you the new file. Let me know if you did not receive it. Thank you.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.