Open mytelegrambot opened 7 years ago
Hi! First of all, just to so you know, the project is still relatively early stage. I'm not sure if you're familiar with the "semantic versioning" conventions, but the 1.0.0-rc.10
means that the project will soon be stable. I went into the release candidate (rc) stage a bit early though. Since I haven't posted the project anywhere, I'm a bit surprised that you found my project at all.
But anyways I'm happy that someone is using my software and would love to hear more feedback.
To your question: I actually had a similar use-case in mind at first and implemented it. So there is client-server mode where the polling of the RSS-feed is done on a server and managing feeds is done from your local computer. But it's intentionally not advertised in the README, since it can be a bit more cumbersome to install.
But it sound like it would be easier for you to have the solution you proposed. I think there's a pretty straight forward way to implement that. So I'll probably get to it tomorrow.
I'm interested in telegram rss bot. I wanted a bot that could be used personally, not a bot in the store.
Search in Google was pretty much. I found some bots ... I could not use it because I did not know how to install it on synology.
Fortunately, I have found your bot and can use it.
I received your commit feed about 2 hours and 20 minutes ago.
Recent Commits to rss-o-bot:master
chore(release) 1.0.0-rc.10: https://github.com/Kriegslustig/rss-o-bot/commit/1d6903960cfed93d21f835e7823dc20950de2458
chore(release) 1.0.0-rc.10 · Kriegslustig/rss-o-bot@1d69039
rss-o-bot - A FOSS RSS Bot alternative
However, other feeds are not available at all.
config.json
"interval": 30, = min? or second?
the "interval"
value is in seconds. So 30
would be a bit short. You might run into DDoS protection mechanisms (I did while testing). Could you run rss-o-bot list --columns=url,lastCheck --no-wrap
and post the output here? With --columns
option you can define what columns should be displayed in the resulting table. It's documented in the man-page (man rss-o-bot
). I'm wondring if some feeds maybe failed to be polled the lastCheck
column is set after the feed has been successfully polled.
If you're running RSS-o-Bot using pm2
, could you also show me the output of cat ~/.pm2/logs/rss-o-bot-error-0.log
. That file should contain error logs from RSS-o-Bot the file might be somewhere else on your machine, so tell me if you're having trouble finding it.
In the meantime I'll try and improve my test-cases when I have some time.
I received a feed once at 1.0.0-rc.9, and never received a feed after updating to 1.0.0-rc.10. Something is not good.
rss-o-bot list --columns=url,lastCheck --no-wrap
2016-11-22T07:58:06.000Z
2016-11-22T07:58:44.000Z
hmm. It is working. but I can't receive. I do not speak English well. I hope you understand.
Jup, got it! Looks like the updating mechanism works, but something must be wrong with the notification mechanism. Have you tried running cat ~/.pm2/logs/rss-o-bot-error-0.log
? If it works, could you also post the output (it might also output nothing)?
clean uninstall and re-install
rss-o-bot add https://github.com/Kriegslustig/rss-o-bot/commits/master.atom cat ~/.pm2/logs/rss-o-bot-error-0.log
I just received your commits feed. Thanks.
ah...How to update?
npm i -g rss-o-bot
is it?
I just received your commits feed. Thanks.
Good, rc.11 contains a fix for a bug that might have caused your issue. The problem was basically that the connection to telegram was slower than the connection to the RSS-feeds.
ah...How to update?
Correct.
hmm
now re-checke error.
[Error: Failed to load notifier telegram]
TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
at Object.subscribeToResult (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/util/subscribeToResult.js:45:27)
at CatchSubscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/operator/catch.js:61:33)
at SwitchMapSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at SwitchMapSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at SwitchMapSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at RetrySubscriber.Subscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:128:26)
at RetrySubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at RetrySubscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/operator/retry.js:56:47)
at DoSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/operator/do.js:95:30)
at DoSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
Hmm, it looks like this is probably an issue with the startup mechanism. I don't have time right now, I'll check it out later though.
Okay. I will just wait. thanks.
{ [Error: FAILED_TO_DOWNLOAD_FEED]
meta:
{ error: [Error: Request failed: http://www.itcle.com/feed/ with 500],
feed: 'http://www.itcle.com/feed/' } }
TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
at Object.subscribeToResult (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/util/subscribeToResult.js:45:27)
at CatchSubscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/operator/catch.js:61:33)
at SwitchMapSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at SwitchMapSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at SwitchMapSubscriber.Subscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:128:26)
at SwitchMapSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at MergeAllSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at DoSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/operator/do.js:95:30)
at DoSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at SwitchMapSubscriber.Subscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:128:26)
{ [Error: FAILED_TO_DOWNLOAD_FEED]
meta:
{ error: [Error: Request failed: http://www.itcle.com/feed/ with 500],
feed: 'http://www.itcle.com/feed/' } }
TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined
at Object.subscribeToResult (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/util/subscribeToResult.js:45:27)
at CatchSubscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/operator/catch.js:61:33)
at SwitchMapSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at SwitchMapSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at SwitchMapSubscriber.Subscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:128:26)
at SwitchMapSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at MergeAllSubscriber.OuterSubscriber.notifyError (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/OuterSubscriber.js:22:26)
at InnerSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/InnerSubscriber.js:26:21)
at InnerSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at DoSubscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/operator/do.js:95:30)
at DoSubscriber.Subscriber.error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:102:18)
at SwitchMapSubscriber.Subscriber._error (/usr/local/lib/node_modules/rss-o-bot/node_modules/rxjs/Subscriber.js:128:26)
http://www.itcle.com/feed/ The same error is repeated a lot.
The error formatting still needs some work. But the following line means that the server responded with a status code 500. Codes in the 500s (>= 500 and < 600) are errors mean that something went wrong with the server while it was trying to answer your request.
Error: Request failed: http://www.itcle.com/feed/ with 500
Most likely the site crashed/was down while rss-o-bot was requesting the feed.
I wonder why you do not use the command of telegram.
Yesterday evening (UTC+1), I built that into rss-o-bot-telegram. It's not released yet. The thing is that telegram messages sent from bots are restricted to a pretty short size. So I'll have to split the responses into multiple parts. Telegram's API documentation isn't great, so it'll take some more work, I might find a way around that restriction.
I am looking forward to it.
I'm using Synology as NAS. I don't know Linux well. I want to receive rss feeds by telegram. And eventually I found your rss-o-bot.
Installation is relatively easy and is in use now.
I wonder why you do not use the command of telegram. It would be more convenient if you could add, delete, and list view the feed on the telegram.