[UPDATE] WebcamViewer DM7025 20070804

  • So, nachlangem Basteln ist es nun vollbracht: Der Webcam/Bilder Viewer von 3c5x9


    Vorrausetzung für den WebcamViewer ist die Python Image Library (PIL). Ohne diese ist das Plugin nicht ausführbar. Installiert werden kann PIL entweder über das angefügte IPKG oder automatisch über das Plugin. Dazu die entsprechende Frage mit JA beantworten und anschließend Enigma2 neu starten.


    Supportet werden folgende Bildformate:
    BMP|BUFR|EPS|FITS|GIF|GRIB|HDF5|IM|JPEG|JPG|MSP|PCX|PNG|PPM|TIFF|WMF|XMB


    Installation wie gehabt: das Tar-File per Hand auspacken und die Datein in die entsprechende Verzeichnisse kopieren.


    Der PictureViewer ist für lokale Dateien zuständig. Mit ihm kann die gesammte Dateistruktur nach Bildern durchstöbert werden und ggf. angezeigt werden. Dazu jeweils OK drücken, wenn ein Bild markiert ist.
    Es können Slideshowlisten angelegt werden, die anschließend als Datei mit der Endung .3ssl im Verzeichniss /media/hdd/slideshows/ liegen.
    Über das Menü kann die Zeit zwischen zwei Bilder eingestellt werden. Dazu noch den Modus in der Slideshow: normal (beendet die Slideshow wenn alle Bilder angezeigt wurden) und endlos (fängt immer wieder von vorne an).


    Der WebcamViewer liest eine Datei Namens webcam.xml aus dem Pluginverzeichniss ein ud wertet sie entsprechend dem Inhalt aus und generiert daraus das Menu mit den Webcams. Durch druck auf die OK-Taste auf einem Eintrag wird diese Webcam angezeigt. Wenn eine Webcam angezeigt wird und man die grüne Taste drückt, wird das Bild automatisch immer wieder nachgeladen und angezeigt. Dadurch kann eine Webcam dauerhaft betrachtet werden.


    ###########
    Dream english speaking User,
    don´t worry, but this is quite short:
    This plugin depends on Python Image Libary (PIL). Install it manual befor the plugin or do it with the plugin :winking_face:
    this Formats will be sopported: BMP|BUFR|EPS|FITS|GIF|GRIB|HDF5|IM|JPEG|JPG|MSP|PCX|PNG|PPM|TIFF|WMF|XMB


    laden=load,speichern=save, hinzufügen=add, alle hinzufügen= add all, Slideshow bearbeiten= edit slideshow, starte slideshow= start slideshow, Dateien=files, Slideshowmode Wartezeit= time between to images, Mode normal=ends after last image, Mode endlos= repeat until year 3000 :winking_face:


    Dir for Slideshowfiles with Extension .3ssl : /media/hdd/slideshows/


    The XML-File for the Webcams ist the webcam.xml in the Plugindir. Pressing the green button while showing an Webcam will reload it automaticly.


    schöne Grüße aus Hamburg
    best greetz from Hamburg
    3c5x9


    PS1.: Wünsche, Anregungen, Kritik immer herzlich willkommen
    PS2.: Ich habe nicht alle Formate testen können. Wenn jemand die exotischen Formate hat, möge er ein Feedback geben.
    imaging_1.0-r0_mipsel.rar (61,01 KB, 226 mal heruntergeladen)
    WebcamPictureViewer_Enigma2_Plugin_1-0.t ar.gz (15,27 KB, 224 mal heruntergeladen)

    Hier nun ein Update für die neuen 1.5 OE-Image´s.


    Gleichzeitig habe ich es so umgebaut, das die Bilder Fullscreen und schneller angezeigt werden. Außerdem ist die PIL nicht mehr von Nöten.

  • Hi, :):):)
    vielen Dank für das Plugin. Der WebcamViewer funktioniert einwandfrei. Der PictureViewer lässt Enigma neustarten, egal ob ich nur ein Bild (JPG, BMP) anklicke oder eine Slideshow erstelle und starte. Es kommt Screen "converting File" dann startet Enigma neu. Image ist Dreamville vom 22.06.06 mit akt. Update.
    dreg

    1x DreamBox 7025+ DVB-SS | 1x DreamBox 7025 DVB-SS | 1x DreamBox 500 DVB-S | LE-40F86BD | Synology DS107+ | Schwaiger 100er-Alu | Goldedition Quatro 0,3 dB | Kathrein EXR 508/T

  • Hallo,


    coole Idee. Ich hatte den PIP Programmierer schon mal gefragt, ob er sein Tool so anpassen kann, dass man eine Webcam als Babyüberwachung nutzen kann. Da gab es auch noch mehr Interessenten. Kannst du dein Plugin auch fuer die 7020 portieren (die betreibe ich hier)? Wäre dir zu 1000 Dank verpflichtet. Habe den X-compiler hier bei mir laufen.


    Gruß Mamba

    __________________________________
    Dreambox 800/7020, 250 GB HDD, 100 Mbit Lan

    Einmal editiert, zuletzt von mamba0815 ()

  • Zitat

    Originally posted by dreg
    Der PictureViewer lässt Enigma neustarten, egal ob ich nur ein Bild (JPG, BMP) anklicke oder eine Slideshow erstelle und starte. Es kommt Screen "converting File" dann startet Enigma neu. Image ist Dreamville vom 22.06.06 mit akt. Update.


    Kannst du mir nen Crashlog per PM zukommen lassen?


    mamba0815: Wenn du meinst, das das Plugin unter Enigma1 laufen soll, dann lautet die Antwort nein. Denn das Plugin setzt auf Enigma2 auf und besteht aus reinem Python. Bei den E2-Images für die 7020 müste es theoretisch laufen. Ich habe aber 'nur' eine 7025 und kann das nicht für dich testen. Das muste eben selber mal probieren.

  • @spinatnudel,
    leider kein crashlog auf hdd vorhanden. (komisch???)


    PS: Ich habe die Größe eines Bildes von 1,3 MB auf 95 KB geändert, hat aber nichts gebracht.


    PS: Hat sich, dank deines Tip's, nach "Updated list of available packages in /usr/lib/ipkg/lists/official" erledigt.
    Funktioniert prima, mit Dreamville, Danke noch einmal. :smiling_face:
    dreg

    1x DreamBox 7025+ DVB-SS | 1x DreamBox 7025 DVB-SS | 1x DreamBox 500 DVB-S | LE-40F86BD | Synology DS107+ | Schwaiger 100er-Alu | Goldedition Quatro 0,3 dB | Kathrein EXR 508/T

    4 Mal editiert, zuletzt von dreg ()

  • Ich habe nun schon von einigen CVS-Image-Benutzern gehört, das ihnen ein bestimmtes JPEG-Packet fehlt im Grundzustand. Sollte das Installieren des PIL über das Plugin nicht funktionieren, sollte man folgende zwei Befehle über Telnet auf der Konsole ausführen:


    ipkg update
    ipkg upgrade


    Dies aktualisiert die Installationsquellen und installiert fehlende bzw aktualisiert bestehende Software auf der Box. Sollten diese beiden Befehle fehlerfrei durchgeführt werden, anschließend die Installation des IPK-Paketes aus dem Anhang oben mit folgendem Befehl durchführen:


    ipkg install imaging_1.0-r0_mipsel.ipk



    Ich hoffe damit einigen Problemen vorzubeugen.

  • Zitat

    Originally posted by 3c5x9
    This plugin depends on Python Image Libary (PIL). Install it manual befor the plugin or do it with the plugin :winking_face:


    I tried to install the imaging_1.0-r0_mipsel.ipk, but it seems to be corrupt.
    the rar archive seems to be OK, but the ipk inside it is not?


    root@dm7025:/media/hdd/tmp# ipkg install imaging_1.0-r0_mipsel.ipk
    ipkg: Invalid magic
    ipkg: *** Couldnt kill old gunzip process *** aborting
    root@dm7025:/media/hdd/tmp# ar -t imaging_1.0-r0_mipsel.ipk
    debian-binary
    data.tar.gz
    ar: Invalid ar header


    There should be a "control.tar.gz" in a proper ipk file, but it is missing.
    Also the included "data.tar.gz" (actual content) is only partial:


    root@dm7025:/media/hdd/tmp# gzip -dc imaging_1.0/data.tar.gz |tar tvf -
    drwxr-xr-x 0/0 0 2006-06-21 21:21:22 .
    drwxr-xr-x 0/0 0 2006-06-21 21:21:21 ./usr
    drwxr-xr-x 0/0 0 2006-06-21 21:21:21 ./usr/bin
    -rwxr-xr-x 0/0 2602 2006-06-21 21:21:21 ./usr/bin/pilfile.py
    -rwxr-xr-x 0/0 1007 2004-10-06 08:55:29 ./usr/bin/pilfont.py
    -rwxr-xr-x 0/0 2369 2006-06-21 21:21:21 ./usr/bin/pilconvert.py
    ...
    -rw-r--r-- 0/0 4536 2006-06-21 21:21:21 ./usr/lib/python2.4/site-packages/PIL/ImageChops.pyc
    -rw-r--r-- 0/0 1926 2004-10-06 08:55:26 ./usr/lib/python2.4/site-packages/PIL/ImageGrab.py
    gzip: unexpected end of file


    The PIL source is of course available, but it would somebody have this ipk already compiled?

    Einmal editiert, zuletzt von tero_ ()

  • Hi, dein Plugin klingt vielversprechend - leider nicht für E1 machbar - wie du bereits geschrieben hat...


    Wirklich Schade - der Großteil der DM-Nutzer hat E1-Boxen...

    DM7000 - 80GB-HDD - 1GB-USB-Stick - 100Mbit-LAN
    DM600 - 20GB-HDD - 100Mbit-LAN

  • ähm, ich bin kein Experte, und lese nur so ein wenig in den Foren mit, aber wenn ich mich nicht ganz täusche gibt es ein solches / ähnliches Plugin schon laaaange für E1....


    Weiss nicht mehr in welchem Forum ich das gelesen habe, und auch nicht von wem das Ding ist, aber Google wird Dir hier sicher weiter helfen...


    Tode

  • Hi,


    ich würde das PlugIn auch gerne mal probieren, bekomme aber die gleichen Fehlermeldungen und Probleme wie toro. :loudly_crying_face:
    D.h. die freundlicherweise bereit gestellten Dateien scheinen leider nicht zu funktionieren.
    Gibt es noch die Chance auf eine Aktualisierung?


    Gruß

  • Hello 3c5x9,


    Would it be possible to make a new compilation of the Webcam for the current CVS-image (Boxman) using Python v2.5.1?


    If the existing Webcam plugin is installed to e.g. the 1.8.2007 version of Boxman, Enigma says that the *.pyc files have incorrect checksum. That must be due to the Python version change (Boxman uses now Python v2.5.1. The old images, e.g. the latest official Enigma release had Python v2.4.x).


    The other option would be, of couse, to release the Webcam sources, so that Enigma can compile the correct *.pyc files by itself :smiling_face:


    There is also an error in the imaging library installation:


    root@dm7025:/media/hdd/tmp# ipkg install imaging_1.0-r0_mipsel.ipk
    Installing imaging (1.0-r0) to root...
    Nothing to be done
    An error ocurred, return value: 1.
    Collected errors:
    ERROR: Cannot satisfy the following dependencies for imaging:
    libjpeg62 (>= 6b)

    I can make the installation by adding "-force-depend" option, but I don't know if that would work.
    /usr/lib has following:


    root@dm7025:/media/hdd/tmp# ls -l /usr/lib/*jpeg*
    lrwxrwxrwx 1 root root 17 Aug 1 05:17 /usr/lib/libjpeg.so.62 -> libjpeg.so.62.0.0
    -rwxr-xr-x 1 root root 171268 Jul 19 03:22 /usr/lib/libjpeg.so.62.0.0

  • Update, siehe erstet Posting.


    tero_:
    - Die .pyc laufen nun in OE1.5
    - PIL wird nicht mehr gebraucht, also auch keine Probs mehr mit dem Paket.


    tero_:
    - .pyc are compiled with a OE1.5
    - the PIL isnt needed anymore, so you dont have any problems with this package

    Einmal editiert, zuletzt von 3c5x9 ()

  • Thanks. It works OK now.


    Would it be possible to scale down too big pictures to fit into screen?

    Einmal editiert, zuletzt von tero_ ()

  • Hi 3c5x9.


    Many thanks for the update.


    As tero_ says: Would it be possible to scale down too big pictures to fit into screen?


    That would be ever so nice.


    Gaj1

    Regards: Gaj1
    Dreambox 7025ST+/ 800 HD-PVR mit Motor und warte auf die DM8000 :smiling_face: