03-02-2010, 07:40 AM | #1 |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2010
Device: Kindle
|
Calibre trying to fetching news when I'm not online
I work on a laptop and I'm often not connected to the Internet.
Each morning Calibre goes on and fetches my news. This works great when I'm connected, but if I don't have an Internet connection I just get a lot of error messages and things that look as though they've downloaded, but then when I view them there is obviously no content. The problem would be easily fixed if I could just tell Calibre NOT to fetch content when there is no active connection to the Internet. How do I do this? Hope someone cane help as it is soooooo frustrating. |
03-02-2010, 12:15 PM | #2 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre currently can't detect the presence or absence of a network connection. I would suggest you just quit calibre after you have it fetch news in the morning.
|
03-03-2010, 08:39 AM | #3 |
Junior Member
Posts: 7
Karma: 10
Join Date: Mar 2010
Device: Kindle
|
I liked to have Calibre open ALL the time as I have it do lots of things through the day. And if I quit, I'd worry about forgetting to reload it.
I'm surprised that for an app that has so many AMAZING features and is such a technical work of art it can't do something as basic as just checking there's an Internet connection before it starts trying to fetch news. I thought that would have been a real simple test. Heck, even if it just pinged a server to check before getting going, that would work wouldn't it. Please, please, please add it in as soon as you can is it is soooo frustrating if you're on a laptop that's not always connected. I've donated before, but I'll gladly donate again if you can get this one thing in :-) |
03-03-2010, 12:39 PM | #4 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Open a ticket requesting the feature, so I don't forget. I guess I am just not used to the concept of ever being disconnected from the internet
|
03-03-2010, 12:51 PM | #5 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
@echo off ECHO Checking connection, please wait... PING -n 1 www.google.com|find "Reply from " >NUL IF NOT ERRORLEVEL 1 goto :SUCCESS IF ERRORLEVEL 1 goto :TRYAGAIN :TRYAGAIN ECHO FAILURE! ECHO Let me try a bit more, please wait... @echo off PING -n 3 www.google.com|find "Reply from " >NUL IF NOT ERRORLEVEL 1 goto :SUCCESS2 IF ERRORLEVEL 1 goto :TRYIP :TRYIP ECHO FAILURE! ECHO Checking DNS... ECHO Lets try by IP address... @echo off ping -n 1 216.239.37.99|find "Reply from " >NUL IF NOT ERRORLEVEL 1 goto :SUCCESSDNS IF ERRORLEVEL 1 goto :TRYROUTER :TRYROUTER ECHO FAILURE! ECHO Lets try pinging the router.... ping -n 2 192.168.1.1|find "Reply from " >NUL IF NOT ERRORLEVEL 1 goto :ROUTERSUCCESS IF ERRORLEVEL 1 goto :NETDOWN :ROUTERSUCCESS ECHO It appears that you can reach the router, but internet is unreachable. goto :FAILURE :NETDOWN ECHO FAILURE! ECHO It appears that you having network issues, the router cannot be reached. goto :FAILURE :SUCCESSDNS ECHO It appears that you are having DNS issues. goto :FAILURE :SUCCESS ECHO You have an active Internet connection pause goto END :SUCCESS2 ECHO You have an active internet connection but some packet loss was detected. pause goto :END :FAILURE ECHO You do not have an active Internet connection pause goto :END |
|
03-03-2010, 01:16 PM | #6 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Actually thinking about this some more, I don't think it's a very good idea. It would mean that calibre would be pinging a server (say google.com) every few seconds. Since calibre is now used by almost a million users, that will very quickly add up to some significant network traffic.
|
03-03-2010, 01:58 PM | #7 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
03-03-2010, 02:14 PM | #8 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No, I was talking about implementing a ping based connectivity check in the calibre new scheduler.
|
03-03-2010, 05:56 PM | #9 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
Personally I would never turn this option on. |
|
03-03-2010, 07:23 PM | #10 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No it's way too open to abuse. I guess at least for windows and linux I can check for an active network connection which should take care of the OPs problem without generating any network traffic.
|
03-03-2010, 07:50 PM | #11 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
03-03-2010, 07:52 PM | #12 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
03-03-2010, 07:59 PM | #13 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Yes, but I was thinking of things like monitoring network alive status, or watching a directory to automatically add books that appear there. I've been trying to come up with some code for merging records, and I keep running into little OS dependent bits you've added, like one that swaps '\' and '/' based on OS dependency.
|
03-03-2010, 08:12 PM | #14 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Well yes, if I could go back in time, the one thing I would do is dispose of whoever first invented DOS, then most of the world wouldn't be using an operating system designed with no knowledge of networking in the Internet age.
|
03-03-2010, 09:05 PM | #15 | |
Well trained by Cats
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
NETBUI was an add-on for MS-DOS 2.x(?) The network cards cost 100's of dollars (PC, PC-XT) and were BNC or AUI (to a transceiver) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fetching News and Email | emalvick | Calibre | 3 | 09-01-2010 04:31 AM |
Trouble fetching news | jpustin | Calibre | 6 | 06-28-2010 01:57 PM |
Fetching News In Calibre | Rootman | Calibre | 2 | 11-11-2009 07:06 PM |
Integrating Readability/TidyRead with calibre news fetching | strico | Calibre | 1 | 09-18-2009 12:54 PM |
Question about fetching the news | spoudaios | Sony Reader Dev Corner | 4 | 01-27-2008 05:01 PM |