Beiträge von pcd

    Thank you very much. It works. :smiling_face:


    Example code :-


    Code
    def main(session, **kwargs):
            print "In main"
            delay = Test(session, None)
            f = delay.starttimer()
            session.openWithCallback(test, MessageBox, _("Test-Messagebox2?"), timeout = 10)
            f = delay.stoptimer()       
            session.openWithCallback(test, MessageBox, _("Test-Messagebox1?"), timeout = 10)


    It is interesting that the first command has to be listed second !


    Regards, pcd.

    Obviously this does not work for time delay between two commands e.g. :-


    Code
    self.actionA
    time.sleep(5)
    self.actionB


    What is the simple alternative ? Any code examples reference please ?


    Regards, pcd.

    Media2ts

    An Enigma2 plugin for assisting cifs streaming of video (e.g. mpeg, divx, dvd) from pc to dreambox.


    Procedure :-


    (1) VLC :- Download and install VLC mediaplayer 0.8.6 from http://www.videolan.org/. Configure VLC by Settings > Preferences > Interface > Main Interfaces > Advanced options > select 'Extra interface modules' HTTP. Next expand Main Interfaces and in HTTP Host Address insert :8080. Close VLC.


    (2) Cifs :- Ftp to dreambox and make a new folder /media/hdd/movie. Next edit file /etc/init.d/bootup to insert, after the line "mount -at nfs,smbfs,cpfs 2>/dev/null", this line:


    mount -t cifs -o ro,soft,username=user,password=pass123 //pc-ip/dream /media/hdd/movie.


    Insert the pc-ip and the share folder name (e.g. dream) where you should save the temporary .ts file (see later).
    This will automount cifs after every reboot.


    (3) Plugin :- Unzip the attached and Ftp the folder Media2ts to folder /usr/lib/enigma2/python/Plugins/Extensions and the file Media2ts.conf to folder /etc. Insert the pc-ip and other items including the destination folder for the .ts file required in Media2ts.conf.


    (4) Operation :- The plugin converts remotely using VLC any video file or dvd to a temporary .ts file which can be streamed to the dreambox and watched 'on the fly'. Reboot dreambox. Restart VLC. Put the files to be streamed in the stream source folder named in Media2ts.conf. The divx file type should be named as .divx . Start the plugin and you will see the list. Select file and exit from the window. On the remote, press 'video' and you should see the saved .ts file. Select it to view. To close press 'tv' button on the remote.


    More Info :-


    As the playback is through cifs, it is not necessary to keep VLC running once the .ts file is made. The resulting .ts file can also be kept for future viewing.


    Regards, pcd.

    The channel list facility does not work. The channel must already be open on the dreambox.


    After setting the option and (recording) Destination, only Preview or Record buttons should be used.


    The ip problem is strange. Try to select Preview without closing the program. If still not ok, perhaps you should unregister the filter and register again.


    This ip problem should have nothing to do with the dreambox, it is a pc issue. The Option window is the filter's property. If you have Graphedit in your system (a free utility comes with Windows) you can see if the filter and its properties are registered properly.


    Regards, pcd.

    Greetings !


    Attached is a modified version of TuxVision adapted for Enigma2. If you at present have problem watching tv from dreambox on pc or recording on pc using Enigma2 images, please try this.


    Checked with a DM600pvr for kBits/s of above 4500, with wireless lan, no problem. It should also be ok with other dreamboxes.


    It is simple to install, instructions in the Readme file.


    The Enigma1 version TuxVisionR is still available here :-


    Watch and record tv on pc with TuxVisionR


    Regards, pcd.

    At present, I can run a script by telnet or at start-up. But is it possible to do it at the box (like the script plugin or type 3 plugin in E1) ?


    Regards, pcd.

    Zitat

    Originally posted by Cassiopeia2000
    checkout Enigma2 as Head please. Release Branch doesn't compile.


    See under


    [Enigma 2 als Head auschecken??]Klick[/EMAIL]


    I deleted ;tag=${TAG} from this line in enigma2.bb :-


    Code
    SRC_URI = "cvs://anonymous@dreamboxupdate.com/cvs;module=enigma2;method=pserver;date=${SRCDATE} \


    and done again :-


    cd $HOME/tuxbox-cvsE2/build
    source ./env.source
    bitbake -cclean enigma2
    bitbake enigma2

    Still the same 'configure' error. :frowning_face: .Do I need to build mipsel-linux ? How ?

    Sorry for writing in English>
    (1) I used the folder where I built a E1 OE image for the 600pvr.


    (2) Added the attached E2_600_.diff.patch to /openembedded/packages/enigma2 and patched enigma2.bb as :-


    Code
    SRC_URI = "cvs://anonymous@dreamboxupdate.com/cvs;module=enigma2;method=pserver;tag=${TAG};date=${SRCDATE} \
               file://enigma2.sh \
    	   file://oe_enigma2_diff.patch;patch=1;pnum=1"


    (3) I have also patched /openembedded/packages/images/dreambox-image.bb as :-


    Code
    # now machine specific:
    OPENDREAMBOX_COMMON_MACHINE_dm600pvr += "${OPENDREAMBOX_V2_ONLY} ${OPENDREAMBOX_EXPERIMENTAL}"
    OPENDREAMBOX_COMMON_MACHINE_R_dm600pvr += "${OPENDREAMBOX_EXPERIMENTAL_R}"
    OPENDREAMBOX_COMMON_MACHINE_D_dm600pvr += ""


    (4) Next when I did :-


    cd $HOME/tuxbox-cvsE2/build
    source ./env.source
    bitbake -cclean enigma2
    bitbake enigma2


    after some time I got this error :-


    Code
    NOTE: package enigma2-2.2cvs20070420: started
    NOTE: package enigma2-2.2cvs20070420-r0: task do_configure: started
    ERROR: function do_configure failed
    ERROR: see log in /home/pcd/tuxbox-cvsE2/build/tmp/work/enigma2-2.2cvs20070420-r0/temp/log.do_configure.30899
    NOTE: Task failed: /home/pcd/tuxbox-cvsE2/build/tmp/work/enigma2-2.2cvs20070420-r0/temp/log.do_configure.30899
    NOTE: package enigma2-2.2cvs20070420-r0: task do_configure: failed
    ERROR: TaskFailed event exception, aborting
    NOTE: package enigma2-2.2cvs20070420: failed
    ERROR: Build of enigma2 failed
    [pcd@localhost build]$


    logfile :-



    python2.4 is in /build/tmp/staging/i686-linux/bin/python. But no build/tmp/staging/mipsel-linux/. Obviously I missed out a step ! :frowning_face:


    Any advice please ?


    Regards, pcd.