Thread: ticket 9031
View Single Post
Old 12-08-2011, 05:04 AM   #12
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
Well after some search and head scratching I got a solution using the CLI.

If anyone else has the same scenario : own a kindle(with net access), own a device such as sony connected via usb. Require news download in mobi and epub and automatic send to usb device, kindle downloads via dropbox.

Set your calibre library into your dropbox folder.
Save any news recipes you want as a .recipe file (no spaces etc) example Cosmopolitan UK becomes cosmo.recipe.
Save these files in your calibre folder (where ebook-convert.exe is located).
create DOS batch file with the following (or similar) in it. I named mine mobinews.bat
Alter the destination path to your own. For daily stuff you only need the first line repeated.
The other stuff hopefully downloads wired once a week.(This code uses UK clock setting)


Spoiler:


Code:
start /wait ebook-convert Cosmo.recipe D:\Dropbox\calibre\calibre\cosmo.mobi
start /wait ebook-convert metro.recipe D:\Dropbox\calibre\calibre\metro.mobi
start /wait ebook-convert mirror.recipe D:\Dropbox\calibre\calibre\mirror.mobi

setlocal

for %%i in (01,07,14,21,28) do (
    
    if "%date:~0,2%"=="%%i" goto Weekly
)

:NO
echo No
goto EOF

:Weekly
start /wait ebook-convert wired.recipe D:\Dropbox\calibre\calibre\wired.mobi


:EOF
endlocal


now download "wakeuponstandby" program and put that in the calibre folder.
In calibre set default output to epub.
Schedule news to download at 5:15am
Leave calibre open.
Run WUOStanby.
Set (1)PC to wake at 5:00am tomorrow (set repair network)
Set (2)program to run mobinews.bat
Set (3)WUOS to "simply wait" for 30 mins
Set (4)repeat every day (or what ever you want)
Set (5) to go.

Put your pc to sleep.

At 5:00am tomorrow pc will wake.
network will be "repaired"
the batch file should download news into mobi files.
After 15 mins main calibre program downloads news in epub format
If sony (or other) is connected via usb calibre auto sends to device.
If dropbox running in background all files synced with online folder (for kindle to fetch online)
After 30 mins pc goes back to sleep
scissors is offline   Reply With Quote