Reeder (iOS) integration with TT-RSS (via Fever API)

Post plugins and custom CSS snippets here
User avatar
ZeGuigui
BANNED_USERS
BANNED_USERS
Posts: 19
Joined: 15 Mar 2013, 17:30
Location: In the cloud!
Contact:

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby ZeGuigui » 25 May 2013, 03:16


morsedl
Bear Rating Trainee
Bear Rating Trainee
Posts: 13
Joined: 24 May 2013, 02:02

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby morsedl » 25 May 2013, 03:48

(Odd, I posted this already, but it didn't show up, so trying again...)

@ZeGuigui:

My tt-rss installation is at https://xxxxx.xxxxxxx.com/reader/

I didn't have SSLCertificateChainFile configured in Apache 2, but I downloaded CAcert_chain.pem from cacert.org and added:

SSLCertificateChainFile /etc/ssl/certs/CAcert_chain.pem

to the right place in my Apache mod_ssl config (i.e., /etc/apache2/sites-enables/ikrg-ssl), but still no joy (same login failed error).

Thanks again so much for your assistance! And thank you VERY much for confirming that this CAN work.

I wondering what I'm doing wrong or what I am I missing?

Doug
Last edited by morsedl on 25 May 2013, 07:06, edited 1 time in total.

User avatar
LifeWOutMilk
Bear Rating Disaster
Bear Rating Disaster
Posts: 52
Joined: 02 Apr 2013, 21:57

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby LifeWOutMilk » 25 May 2013, 04:24

Considering the guys at cacert.org can't even get it right, I'm not surprised.



Edit: Why not go to StartSSL.com and get a cert that will actually work in current browsers instead of this broken cacert.org nonsense?

morsedl
Bear Rating Trainee
Bear Rating Trainee
Posts: 13
Joined: 24 May 2013, 02:02

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby morsedl » 25 May 2013, 07:05


whatiris
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 26 May 2013, 18:02

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby whatiris » 26 May 2013, 18:09

Hullo! I have figured out the problem with the fever plugin and postgresql, I think. The PHP postgres handler returns "t" and "f" instead of 1 and 0 for boolean fields.

This means getUnreadItemIds() needs to be edited to handle the case of "t" instead of 1

if ($line["unread"] == "t")
$unreadItemIdsCSV .= $line["ref_id"] . ",";

and getItems() needs to handle the case of "f" when checking unread status

"is_read" => ($line["unread"] == "f" ? 1 : 0),

I am not much of a developer so I don't know how to submit a patch but as far as I can see those two changes are the only thing required to support postgres. The setItem type functions specify the boolean true in the query so they should work I think. I haven't tested this much beyond basic sanity checking.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby fox » 26 May 2013, 18:19

functions.php, sql_bool_to_bool()

whatiris
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 26 May 2013, 18:02

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby whatiris » 26 May 2013, 18:30

Ah cool, can wrap in that function instead.

And yes, obviously I'm talking about the functions in fever_api.php I forgot to mention that.

Anyway, hope this helps, DigitalDJ.

IvanRaide
Bear Rating Trainee
Bear Rating Trainee
Posts: 9
Joined: 10 May 2013, 06:40

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby IvanRaide » 26 May 2013, 23:34

Seeing the above working for morsedl I decided to try it as well (but am much less qualified I believe to actually accomplish it).

I got an express cert from StartSLL, which was a p12 file. I noticed that all the apache2 ssl settings required pem files in the examples above, so I ran the following...
openssl pkcs12 -in StartSSL.p12 -out StartSSL.pem -nodes

I then ran:

a2enmod ssl
a2ensite default-ssl
service apache2 restart


Now when I go to the tt-rss website it came up with untrusted cert (which makes sense, I believe its using that snake-oil cert).
I copied over the StartSSL.pem file to /etc/ssl/certs and changed the following 3 lines in default-ssl to:

SSLCertificateFile /etc/ssl/cert/StartSSL.pem
SSLCertificateKeyFile/etc/ssl/cert/StartSSL.pem
SSLCertificateChainFile /etc/ssl/cert/StartSSL.pem

but when trying to restart apache it fails. My assumption was that pem are a concatenation of all the info required, but honestly, I don't know very much about openssl,ssl etc, so I'm sure that assumption is wrong.
if that assumption is wrong, how do you get the necessary files from StartSSL ? I guess, "am I close, or am I so far off the mark that I should just give up"

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby fox » 26 May 2013, 23:35

Last I checked you were posting on a tt-rss forum, not "plz halp I can't apache".

morsedl
Bear Rating Trainee
Bear Rating Trainee
Posts: 13
Joined: 24 May 2013, 02:02

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby morsedl » 27 May 2013, 00:34


DigitalDJ
Bear Rating Disaster
Bear Rating Disaster
Posts: 58
Joined: 18 Apr 2008, 12:46

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby DigitalDJ » 27 May 2013, 03:04


whatiris
Bear Rating Trainee
Bear Rating Trainee
Posts: 8
Joined: 26 May 2013, 18:02

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby whatiris » 27 May 2013, 05:19

Yep, I did make the changes myself and have been using it in Reeder successfully since yesterday. I'll give your 1.2 a go later today.

Edit: I have updated to 1.2 now and was able to successfully refresh in Reeder, and mark an item read which updated correctly in the web interface.

Looking at the changes you've made, they're pretty much exactly what I did which has been fine so should be all good.

vasechka
Bear Rating Trainee
Bear Rating Trainee
Posts: 9
Joined: 20 Feb 2008, 23:19

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby vasechka » 02 Jun 2013, 06:34

Absolutely great plugin.
I tried to get it working with ReadKit on OS X. And didn't go - ReadKit will crash after requesting groups list. Just FYI.
Oh, btw, got it working on https - had to install my own CA certificate onto iOS device.

morsedl
Bear Rating Trainee
Bear Rating Trainee
Posts: 13
Joined: 24 May 2013, 02:02

Re: Reeder (iOS) integration with TT-RSS (via Fever API)

Postby morsedl » 02 Jun 2013, 09:10


pendor
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 18 Jun 2013, 19:39

Chill Pill support?

Postby pendor » 18 Jun 2013, 19:44



Return to “Themes and plugins”

Who is online

Users browsing this forum: Google [Bot] and 5 guests