Closed Bridouz closed 6 years ago
I use nextcloud news everyday, so it really works.
You don't need to run elfeed-protocol-owncloud-update
manually, just press G
to fetch articles in elfeed search view like usual.
(use-package elfeed-protocol)
(setq elfeed-use-curl t)
(elfeed-set-timeout 36000)
(setq elfeed-curl-extra-arguments '("--insecure"))
(require 'elfeed-protocol)
(setq elfeed-feeds '("owncloud+https://username:password@raspbridouz.duckdns.org/nextcloud"))
(elfeed-protocol-enable)
then M+x elfeed
and G
(or elfeed-update
) and it says:
elfeed-protocol-no-auth-url: Wrong type argument: stringp, nil
Looks you didn't setup elfeed-feeds
correctly, maybe your username/password format is a little different, you could toggle-debug-on-error
and catch the full error trace again. And how about to run following code in *scratch*
:
;; format 1, prefer result: ("owncloud+https://username:password@raspbridouz.duckdns.org/nextcloud")
(let* ((elfeed-feeds '("owncloud+https://username:password@raspbridouz.duckdns.org/nextcloud")))
(elfeed-protocol-feed-list))
;; format 2: prefer result: ("owncloud+https://username@raspbridouz.duckdns.org/nextcloud")
(let* ((elfeed-feeds '(("owncloud+https://username@raspbridouz.duckdns.org/nextcloud" :password "password"))))
(elfeed-protocol-feed-list))
I ran the followings code and debug was :
;; format 1
Debugger entered--Lisp error: (void-variable owncloud+https://justin:password)
eval(owncloud+https://justin:password nil)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
;; format 2
Unvalid function
My password has ! and ? in it, maybe it can cause some issues ?
Yes, so just use format 2, and delete your secret info in past comment ;)
Oh, format 2 show 'Unvalid function'... What that mean?
I guess format 2 should works for you, please have a try.
OK I tried format 2 un a scratch buffer again ans I have
error: (void-variable owncloud+https://justin)
eval(owncloud+https://justin nil)
emmm, your error looks strange.. Please ensure (elfeed-protocol-enable)
before such test:
;; prefer result: "owncloud+https://raspbridouz.duckdns.org/nextcloud"
(let* ((elfeed-feeds '(("owncloud+https://username@raspbridouz.duckdns.org/nextcloud" :password "password:!\?"))))
(elfeed-protocol-no-auth-url (nth 0 (elfeed-protocol-feed-list))))
I just think it's really easy.
Maybe we should skip such testing in scratch. Believe me, use format 2 in your elfeed-feeds
settings and everything will be fine.
Thanks, working now :) I do not know what I missed.
Thanks again
Hi,
Just tried your
elfeed-protocol
package with my Nextcloud instance and can't find how it work.I installed
elfeed-protocol
and configured it. When I launchM+x elfeed
I tryM+x elfeed-protocol-owncloud-update
and then the minibuffer promptsProtocol Feed:
.What am I suppose to type there ?
Thanks