Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Non-English Discussions > Deutsches Forum > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 05-13-2011, 01:57 AM   #106
Ararat
Junior Member
Ararat began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2011
Device: Pocketbook PRO 603
Quote:
Originally Posted by fortwienix View Post
ich hab mal für den 20:15 Uhr feed ein Script geschrieben. Du kannst das Script ggf kopieren, um auch andere feeds von klack.de zu holen. Die Kombination der feeds wie beim demorgen ist vermutlich nicht praktikabel weil im fertigen Dokument die Sendungen dann nicht mehr chronologisch sortiert sind.

Grüße, fortwienix
Danke
Ararat is offline   Reply With Quote
Old 05-13-2011, 05:09 PM   #107
fortwienix
Enthusiast
fortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watch
 
Posts: 47
Karma: 10848
Join Date: Mar 2011
Device: 902
Quote:
Originally Posted by alfredo87 View Post
could you do one for the Guardian.co.uk?
Script attached, please also look for the progressb.app in this thread and place it in a tools folder below the applications folder.

Best regards, fortwienix
Attached Files
File Type: zip guardian.zip (925 Bytes, 272 views)

Last edited by fortwienix; 05-13-2011 at 05:27 PM. Reason: update script
fortwienix is offline   Reply With Quote
Advert
Old 05-20-2011, 02:59 AM   #108
alfredo87
Junior Member
alfredo87 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2011
Location: Limousin France
Device: PocketBook Pro 603
Thumbs up danke vielmals

Quote:
Script attached, please also look for the progressb.app in this thread and place it in a tools folder below the applications folder.

Best regards, fortwieni
x


vielen Dank: funktioniert grossartig

WELL DONE
alfredo87
alfredo87 is offline   Reply With Quote
Old 10-07-2011, 02:44 PM   #109
fortwienix
Enthusiast
fortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watch
 
Posts: 47
Karma: 10848
Join Date: Mar 2011
Device: 902
Wen es interessiert: in Beitrag #94 hab ich das FAZ rss Script aktualisiert, da die FAZ einen neuen Webauftritt hat und daher das alte Script nicht mehr ging.
fortwienix is offline   Reply With Quote
Old 12-07-2011, 08:58 AM   #110
soundsosound
Junior Member
soundsosound began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2011
Device: PocketBook Pro 603
mehrsprachige Feeds der DW mit Bildern

Hallo zusammen,

ich habe mich noch einmal des Skriptes von review angenommen und meine eigene Version gebastelt. Sie ist speziell auf die RSS-Feeds der deutschen Welle zugeschnitten.
Die DW bietet zahlreiche Feeds in 30 Sprachen an. Ich habe mal die Feeds für deutsch, englisch und russisch direkt in das Skript eingefügt. Es müssen nur die Kommentarzeichen # entfernt werden.
Es können aber noch weitere DW-Feeds hinzugefügt werden. (siehe www.dw-world.de)

Die Nachrichten werden (auf Wunsch mit JPGs) heruntergeladen und im Verzeichnis mynews abgelegt.

Um die Fortschrittsanzeige zu sehen, muss die progressbar.app unter /mnt/ext1/system/bin/ abgelegt werden.

Viel Spaß und beste Grüße,
Markus
Attached Files
File Type: zip dw.zip (2.1 KB, 256 views)

Last edited by soundsosound; 12-07-2011 at 10:28 AM.
soundsosound is offline   Reply With Quote
Advert
Old 01-09-2012, 09:23 AM   #111
kami51
Connoisseur
kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.
 
kami51's Avatar
 
Posts: 67
Karma: 101031
Join Date: Apr 2011
Device: 2 xPB 611, Tolino Shine
Hallo,
wünsche allen ein gesundes Neues Jahr!
Ich besitze seit Weihnachten ein PB 611, und bräucht von Euch Experten mal Unterstützung.
Das PB 611 hat ja die Pocket News app, meine geliebte Tageszeitung :
http://nachrichten.lvz-online.de/rss...chland-rss.xml
kann ich lesen, aber nur online !
Ich habe mich in diesen Forum durch gelesen und die angebotenen Programme, apps instaliert.
Das sind die indic2, sowie die heise, klack, stern u.a. das funktioniert einwandfrei!
Das PB 611 verbindet sich (WLAN) lädt die gewünschte rss runter, schaltet wifi ab.
Ich kann zu jeder Zeit die Nachrichten lesen, ohne online zu sein.
Kenntnisse bzgl. der Programmierung von Feeds habe ich nicht!
der Versuch z.Bsp. die stern.app zu editieren und statt der url des stern die meiner Tageszeitung: http://nachrichten.lvz-online.de/rss...chland-rss.xml
einzugeben, schlug fehl.?
Auch die lvz.recipe (Calibre) geht nicht.
Wer kann mir helfen ?
Dank im Voraus.

Gruß Jürgen
kami51 is offline   Reply With Quote
Old 01-10-2012, 04:15 PM   #112
fortwienix
Enthusiast
fortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watch
 
Posts: 47
Karma: 10848
Join Date: Mar 2011
Device: 902
Quote:
Originally Posted by kami51 View Post
Das PB 611 hat ja die Pocket News app, meine geliebte Tageszeitung :
http://nachrichten.lvz-online.de/rss...chland-rss.xml
kann ich lesen, aber nur online !
Die vorhandenen Scripte funktionieren immer nur für eine Zeitung, da jede webseite eine andere Struktur hat. Ich hab eines mal auf die LVZ angepasst. Sollte halbwegs funktionieren, auch wenn die Formatierung nicht optimal ist.

Das Script einfach zu den anderen dazu entpacken. Die progressb.app wird im Unterverzeichnis tools innerhalb von applications erwartet. Wenn die bei Dir woanders ist, dann passe bitte den Pfad in Zeile 32 an.

Grüße, fortwienix
Attached Files
File Type: zip lvz.zip (1.2 KB, 213 views)
fortwienix is offline   Reply With Quote
Old 01-11-2012, 04:28 AM   #113
kami51
Connoisseur
kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.
 
kami51's Avatar
 
Posts: 67
Karma: 101031
Join Date: Apr 2011
Device: 2 xPB 611, Tolino Shine
Hallo fortwienix,
juhu super vielen Dank, habe soeben die aktuelle LVZ runtergeladen!

Habe gleich noch eine andere Frage :
Erstmals habe ich eine app geschrieben, welche ein epub (von den Server meiner HP) als tatsächliche Datei epub in das Verzeicnis myrss-tmp des Readers ablegt (mit den Minibrowser des PB legte bzw.hat das PB die epub als zip abgelegt).
Unter anderen mit den Befehl bzw. der Zeile:

wget http://www.xyz.de/buch/abc.epub

das funktioniert auch!
Aber wenn ich z.Bsp. vier epubs mit dieser app runterladen möchte,
muß für jedes epub der Befehl wget http... eingeben werden, oder
eine Befehlschleife angeben ?, keine Ahnung.
Ein weiterer wunsch meinerseits währe, ein script von der Bildzeitung/Leipzig??
Vielen Dank
Gruß Jürgen

Nachtrag: bzgl. der epubs, habe die befehlszeilen wget h...um die entsprechende Anzahl der Bücher erweitert, was auch nun auch super funktioniert.

Last edited by kami51; 01-11-2012 at 03:19 PM.
kami51 is offline   Reply With Quote
Old 01-12-2012, 09:01 AM   #114
kami51
Connoisseur
kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.
 
kami51's Avatar
 
Posts: 67
Karma: 101031
Join Date: Apr 2011
Device: 2 xPB 611, Tolino Shine
Hallo,
ich habe die befehlszeilen wget h...um die entsprechende Anzahl der Bücher erweitert, was auch nun auch super funktioniert, aber wifi schaltet sich nicht automatische ab.
Meine Fragen zu diesen script.
Fehlt ein Befehl, desweiteren wird der Download-Fortschrittsbalken nicht angezeigt.Hier mal das script:
------------------------------------------------------------
#!/bin/sh
/ebrmain/bin/netagent connect
cd /mnt/ext1/
agency=buch-$(date +%Y-%m-%d)

if [ -d myrss-tmp ]; then
rm -rf myrss-tmp;
fi

mkdir myrss-tmp;
cd myrss-tmp;

echo '<html><body>' > $agency.html

wget http://xx.de/buch/eins.epub
wget http://xx.de/buch/zwei.epub
wget http://xx.de/buch/drei.epub
wget http://xx.de/buch/vier.epub
done
echo '</body></html>' >> $agency.html
mv $agency.html /mnt/ext1/applications/tools/progressb.app
cd ..
rm -rf myrss-tmp
/ebrmain/bin/netagent disconnect

------------------------------------------------------

Welche Literatur oder welches Buch bzgl. der Programmierung von apps für das PB könnt Ihr mir empfehlen ?

Gruß Jürgen

Last edited by kami51; 01-12-2012 at 12:04 PM.
kami51 is offline   Reply With Quote
Old 01-13-2012, 03:35 AM   #115
fortwienix
Enthusiast
fortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watch
 
Posts: 47
Karma: 10848
Join Date: Mar 2011
Device: 902
Hallo Jürgen,

die Scripte sind für eine sogenannte Shell programmiert. Wenn Dich das Thema interessiert, dann such nach "Bash Programmierung" o.ä. Das ist ein guter Einstieg. Um selbst zu programmieren empfielt sich ein Linux oder auch Cygwin (für Windows) was eine entsprechende Umgebung zur Verfügung stellt.
Zu beachten ist, das auf dem Pocketbook keine bash sondern eine sh (eine andere Shell) verwendet wird. Auch der Befehlsumfang ist deutlich reduziert.
Auf dem Rechner kannst Du Dein Script dann aber mit: "sh scriptname" testen, das benutzt dann die sh zu ausführen.

Zu Deinem Script mach ich mal Kommentare rein, immer mit --> angefangen:

Quote:
Originally Posted by kami51 View Post
Hallo,
------------------------------------------------------------
#!/bin/sh
/ebrmain/bin/netagent connect
cd /mnt/ext1/
agency=buch-$(date +%Y-%m-%d)
--> brauchst Du hier nicht, die Variable wird später nicht sinnvoll verwendet.

if [ -d myrss-tmp ]; then
rm -rf myrss-tmp;
fi

mkdir myrss-tmp;
cd myrss-tmp;

echo '<html><body>' > $agency.html
--> kann auch entfallen

wget http://xx.de/buch/eins.epub
wget http://xx.de/buch/zwei.epub
wget http://xx.de/buch/drei.epub
wget http://xx.de/buch/vier.epub
--> das sind 4 Befehle, die nacheinander ausgeführt werden und zahl.epub ins aktuelle Verzeichnis (myrss_tmp) herunterladen. Wenn es eine solche Datei schon gibt (weil das Script bereits einmal gelaufen ist, wird die neue Version in zahl.epub.1 gespeichert.

done
--> kenzeichnet ein Schleifenende, hier ist aber keine Schleife vorhanden, kann also weg.
echo '</body></html>' >> $agency.html
--> brauchst Du hier auch nicht
mv $agency.html /mnt/ext1/applications/tools/progressb.app
--> hier wird die Datei $agency.html ($agency ist die Variable, die oben definiert wird) in die progrssb.app im angegebenen Verzeichnis verschoben, die progrssb.app wird überschrieben. Das ist sicher nicht was Du willst. Die Zeile kann also weg.

cd ..
rm -rf myrss-tmp
/ebrmain/bin/netagent disconnect

------------------------------------------------------

Welche Literatur oder welches Buch bzgl. der Programmierung von apps für das PB könnt Ihr mir empfehlen ?
Das Dein Script die Netzverbindung nicht trennt, liegt sicher an dem überflüssigen done was dann zu einem Scriptabbruch führt und daher die restlichen Befehle auch nicht mehr ausführt.

Der Progressbar Balken funktioniert so: das progrssb.app bekommt als Argument eine Zahl übergeben also z.B. progrssb.app 10 um einen Balken von 10% zu zeichnen.
In den hier verwendeten Scripten siehst Du am Anfang sowas:
tail -f percent| /mnt/ext1/applications/tools/progressb.app &
Hier wird aus der Datei percent die Ganzzahl gelesen, die dann von progressb.app verwendet wird. Das passiert ständig (das & schiebt den Prozess in den Hintergrund der dort weiterläuft). Wenn nun die einzelnen Dateien aus dem xml rss feed heruntergeladen werden, wird die neue Prozentzahl in die percent Datei geschrieben. Das passiert in einer Schleife, in der dien einzelnen Artikel heruntergeladen werden:
current=$((current+1));
echo $current $total|awk '{printf "%.0f\n",$1*100/$2}' >> percent
Vorher wird noch ermittelt wieviele Links überhaupt vorhanden sind (zähle alle Links in der feed.xml) und in der Variable total gespeichert.

Anbei auch das Script für Die Bild. Das sollte mehr oder weniger mit allen Bild feeds funktionieren. In der Schleife ist nur der Leipzig feed, andere kann man aber hinzufügen. Wichtig ist das in jeder Zeile eine feed URL steht und das jede Zeile (außer die letzte) mit einem Backshlash endet.

Grüße, fortwienix
Attached Files
File Type: zip billd.zip (1.3 KB, 203 views)
fortwienix is offline   Reply With Quote
Old 01-13-2012, 09:21 AM   #116
kami51
Connoisseur
kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.
 
kami51's Avatar
 
Posts: 67
Karma: 101031
Join Date: Apr 2011
Device: 2 xPB 611, Tolino Shine
Hallo fortwienix,
erstmal vielen Dank für Deine Mühe und Geduld mit mir.
Ja Literatur werde ich mal googln und mir zulegen.

Nochmal zu mein script



wget http://xx.de/buch/eins.epub
wget http://xx.de/buch/zwei.epub
wget http://xx.de/buch/drei.epub
wget http://xx.de/buch/vier.epub
-----------------------------------------------------
Ich habe folgendes geändert; zu wget http://xx.de/buch/01.epub, diesen Befehl insgesamt acht mal
bis zu wget http://xx.de/buch/08.epub eingesetzt.
Das funktioniert auch, weil ich die hinterlegten epub im Verzeichnis /buch als 01 bis 08. epub umbenannt habe.
Das --done --- weggelassen, aber wifi schaltet nicht ab.

--------------------------------------

Gruß Jürgen
kami51 is offline   Reply With Quote
Old 01-15-2012, 08:29 AM   #117
fortwienix
Enthusiast
fortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watch
 
Posts: 47
Karma: 10848
Join Date: Mar 2011
Device: 902
Hi Jürgen,

in post #93 sind ein paar Möglichkeiten aufgeführt, wie Du Dein Script debuggen kannst. Ich lass es immer erst am Rechner laufen und kommentiere die Befehle aus, bzw. mach ein echo davor, um die ausgegebene Zeile zu sehen, die auf dem Rechner sowieso nicht funktionieren können (in diesem Fall sind das die Netzwerkverbinung aufzubauen und zu trennen, sowie der Aufruf der progrssb.app).

Grüße, fortwienix
fortwienix is offline   Reply With Quote
Old 01-16-2012, 08:24 AM   #118
kami51
Connoisseur
kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.kami51 is the One.
 
kami51's Avatar
 
Posts: 67
Karma: 101031
Join Date: Apr 2011
Device: 2 xPB 611, Tolino Shine
Hallo fortwienix,
danke nochmals, ich werde mich nun intensiver mit der Bash Programmierung befassen, bin mit den anpassen von Zeitungen/Nachrichten Feeds auch weiter gekommen.

Gruß Jürgen
kami51 is offline   Reply With Quote
Old 01-18-2012, 01:40 AM   #119
hamagubur
Junior Member
hamagubur began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: Pocketbook 903
Genial! Herzlichen Dank! (Der RSS Reader ist leider unbrauchbar, aber so geht das bestens!)

* Wie macht man, dass die html-Seite in einen anderen Ordner kommt (z.B. Deutsch/news/Spiegel..)
* Kannst Du so ein script für den tagesanzeiger.ch und die nzz.ch machen? -> Danke!

GRUSSMAX
hamagubur is offline   Reply With Quote
Old 01-21-2012, 08:20 AM   #120
fortwienix
Enthusiast
fortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watchfortwienix is clearly one to watch
 
Posts: 47
Karma: 10848
Join Date: Mar 2011
Device: 902
Hallo,

Quote:
Originally Posted by hamagubur View Post
* Wie macht man, dass die html-Seite in einen anderen Ordner kommt (z.B. Deutsch/news/Spiegel..)
Bei den meisten Scripten gibts ziehmlich weit oben eine Zeile ala:
agency=SuedeutscheZeitung-$(date +%Y-%m-%d
In der Variable acengy wird der Dateiname gespeichert wo die Artikel hineingeschrieben werden. Ziemlich am Ende wird die Datei dann irgenwo hingeschoben:
mv $agency /mnt/ext1
Nach /mnt/ext1 kannst Du die entsprechenden Verzeichnisse anhängen, in die die Datei hineingeschrieben werden soll, anstatt das Hauptverzeichnis zun nutzen. Die Verzeichnisse solltest Du vorher anlegen.

Quote:
* Kannst Du so ein script für den tagesanzeiger.ch und die nzz.ch machen? -> Danke!
NZZ ist fertig.

Grüße, fortwienix
Attached Files
File Type: zip nzz.zip (2.2 KB, 233 views)
fortwienix is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PocketBook Pro 603 and 903 are available edwin1001 PocketBook 31 01-08-2011 04:32 AM
PB 903/603 question onesome PocketBook 4 12-08-2010 07:51 AM
Videos, Fotos, Informationen über neue Modelle (602,603,902,903,IQ) Forkosigan PocketBook 9 12-06-2010 06:34 AM
New five: Pocket Book-Pro 602, 603, 902, 903 & IQ-701 jonsbjons PocketBook 8 11-07-2010 04:24 PM
Pocketbook 602/603 wreiner PocketBook 1 11-02-2010 07:16 AM


All times are GMT -4. The time now is 05:55 AM.


MobileRead.com is a privately owned, operated and funded community.