sonologic / SpaceState

Android app and widget showing hackerspace status
6 stars 14 forks source link

ICS/RSS/ATOM Feeds #4

Closed brimstone closed 12 years ago

brimstone commented 12 years ago

How about a "ics", "rss", and/or "atom" keys in either the main or contact namespace?

sonologic commented 12 years ago

In addition, received by email:

I'd like to propose an addendum to the SpaceAPI, an array of RSS feeds that the space has available, a la:

"feeds" : [{"name" : "Blog",
            "url"  : "http://www.heatsynclabs.org/feed/"},
           {"name" : "Photos",
           "url"  :

"http://api.flickr.com/services/feeds/photos_public.gne?id=60827818@N07&lang=en- us&format=rss_200"}]

This would go along nicely with the other contact Metadata we provide over SpaceAPI and keep it extensible for uses other than, say, a blog or photo stream. I currently have this implemented in HeatSync Labs's 23b-SpaceAPI implementation and is available on the script's github: https://github.com/rrix/23b-spaceapi

brimstone commented 12 years ago

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 That's not a bad idea either. I'm worried that the type of feed isn't included. Auto detection will add increased processing time and may even fail depending on the data. Perhaps also add some like 'type: "text/atom"' ?

matt


Sent from my Android phone with K-9 Mail. Please excuse my brevity. -----BEGIN PGP SIGNATURE----- Version: APG v1.0.8 iG4EAREIAC4FAk8JuYYnHE1hdHQgUm9iaW5zb24gPGJyaW1zdG9uZUB0aGUubmFy cm8ud3M+AAoJEMWiHbqnuw1wIt8An3JZEpqs4dAlSdKndhTRYZAZgzuIAJ9y1Jgm 6Jrh3ORoDvB6jLy7141lnA== =/1iv -----END PGP SIGNATURE-----

brimstone commented 12 years ago

N/m I didn't see that they were only using this for RSS. I'd like to incorporate ICS and Atom feeds as well.

rrix commented 12 years ago

I would have no problems extending the "feeds" entry to also contain ICS links, though, I think in that case "feeds" is the wrong term for that part of the API, I wouldn't really consider ICS files to be a "feed".

brimstone commented 12 years ago

What is an rss or atom feed, just a list of previous blog post, even if they talk about future events, where as an ICS feed just has metadata about the events, future or past. It's cool if you only want "news" type feeds in this key. I'd still like ICS style feeds referenced somewhere.

rrix commented 12 years ago

Like I said, I think it's great, just wondering if we have better verbiage than "feeds". But the more I think about it, the more it does work.

sonologic commented 12 years ago

I think they're all feeds, i use the term 'ical feed' and whether or not that is correct, google suggests more people do so.

I'm not sure if the type of the feed belongs in the api blurp, as people may get it wrong and depending on that may prove tricky. Resulting in having to auto-detect anyway. Detecting an ical feed is easy since the first line should always be BEGIN:VCALENDAR. Discriminating between atom, rss and what have you is then left as an excercise for the particular library one uses to parse feeds.

Does this make sense?

brimstone commented 12 years ago

Let's put a stamp on it and call it 0.12 then!

sonologic commented 12 years ago

added to 0.12