IndieFeed Gateway Thoughts

I am working with Bret Comnes in looking for a way to create a Atom feed gateway for microformat websites. Bret recently created a Heroku app to create an Atom feed for the IndieWebCamp IRC log. Here are some notes from the IRC log from this week’s Homebrew Website Club meetup in Portland:

  • bret: we have two examples to work off of/use already: http://waterpigs.co.uk/services/microformats-to-atom/ and http://h-reader.aws.af.cm/feed/atom?url=http://www.sandeep.io/
  •  andy: tried both with my site (andysylvester.com), Barnaby’s service works with my site (was able to subscribe to the feed URL), Sandeep’s did not return any entries.
  • andy:I took a look at Barnaby’s Github account, I did not see any projects there that looked like his MF to Atom service
  • bret: here is my idea, you trigger on some kind of new content event (like a new post or an edit) to send a webhook or webmention to the atom gateway. this parses your h-feed and generates the updated atom feed. when that is ready, ping the pubsubhubbub hub
  • andy: that sounds good, I assume this could be built to feed Barnaby’s service or another service

In my test of the first example, I entered my URL and got a full URL with query back in addition to the Atom feed (http://waterpigs.co.uk/services/microformats-to-atom/?url=https%3A%2F%2Fandysylvester.com). I then added this URL to my Selfoss feed reader, and was able to subscribe to the Atom feed.

Here are some possible user scenarios/stories:

  • If someone wanted to follow postings from a microformat website, and used a RSS/Atom feed reader, they could use the Barnaby Walters service to subscribe to that site.
  • If someone was publishing a microformats website, and wanted to provide an Atom feed to readers, they could use the Barnaby Walters service to get an Atom feed of the h-entry feed and then provide that to a PubSubHubBub hub, or provide a local copy of the Atom feed. Another option would be to provide a full query URL like the one I showed above for your site as part of a RSS feed link from your site.

Any other thoughts/ideas?

 

Checking out the IndieWebCamp IRC Feed

I noticed that Bret Commes has created an app to produce an Atom feed of the daily IRC log from the IndieWebCamp IRC channel. I tried adding the feed (http://iwc-log-feed.herokuapp.com/atom.xml) to my Selfoss feed reader, but it does not seem to show up, will have to look at the error log to see if there is a problem. I was able to read the feed from The Old Reader, so the app is working! Great job, Bret!

HOWTO – Setting up the Selfoss Feed Reader with microformats support

This post will show how to install the Selfoss feed reader with Aaron Parecki’s additions to support reading weblogs and websites that include support for microformats. This post assumes that you have a hosting account with PHP support.

To begin, download the Zip file for Aaron’s fork of the Selfoss reader (https://github.com/aaronpk/selfoss). You can either unzip the file locally and then upload the separate files, or upload the Zip file to your hosting account and unzip the file there (although the actual files are two levels down in the folder structure).

I decided to unzip the file locally. Next, I created a folder within the public_html folder of my hosting account (let’s use “selfoss” for this example, and assume that the URL of your reader will be http://yoursite.com/selfoss). Before I uploaded the files, I copied the file defaults.ini to config.ini and then uploaded all of the files to the selfoss folder. The Selfoss site says that you should be able to upload and go, and this is certainly the case. After uploading the files, I went to the URL for my site (https://andysylvester.com/selfoss/) and saw the main reader display:

Reader01

Now that the Selfoss reader is installed, it’s time to add some feeds from some Indieweb sites. I downloaded a subscription file from Amber Case by saving the file selfoss-subscriptions.xml from this post:

http://caseorganic.com/articles/2014/02/13/1/indiereader-subscribe-to-people-from-your-own-site

I then clicked on the cloud in the lower left hand corner and saw the following screen:

Reader02

 

I then clicked on the “import opml file” link at the top of the page, leading to this page:

Reader03

 

I clicked on the Choose File button, and got a dialog box for selecting a file:

Reader04

 

After I selected the file, I clicked on the “Deliver my OPML!” button. After a few seconds, the following screen appeared:

Reader05

 

I clicked on the “update now” link. After about 40 seconds, I saw the following screen:

Reader06

I then reloaded my reader site and saw some feeds!

Reader07

 

I then decided to try adding my website to the list. I clicked on the cloud icon in the lower left corner, then clicked on the “Add source” link on the next page and entered information for my site:

Reader08

 

I did an update by going to the update URL (https://andysylvester.com/selfoss/update), but I did not see any items. I then went back and changed it to read my RSS feed (https://andysylvester.com/feed/). After doing an update again and a refresh, I was able to see items from my site:

Reader09

Maybe the microformats plugins I am using aren’t effective enough in creating microformats. I’ll have to do some more testing….

The last step I did was to activate the username/password option, since with the default setup, anyone could change your subscriptions list. To set this up, first go to the password URL for your reader (http://andysylvester/selfoss/password/ for my reader):

Reader10

The Selfoss reader uses a hash of a your password as the password entry in the config.ini file. To get this hash, enter your password in the text field, then click the “generate password” button. The page will update with a long text string in the text field. Copy the contents of the text field to the password item in config.ini. It should look something like this:

password=fjkddspeignjgvklsnvlrsvnlsvndlsj54343njl433

Add an entry for the username in config.ini, like this:

username=myusername

Save config.ini, then upload it to the reader directory in your hosting account. Go back to the reader home page, you should then see a login screen like this:

Reader11

 

Enter your username and password, and you should see your feed reader again.

Reader12

 

You can now see two icons in the lower left corner. The cloud icon leads you to the page to add more feeds. The second icon (“person”) logs you out of the reader.

Enjoy!