Beiträge von laith.said

    Hello,


    How can I get help on how to use enigma2 calls? for example I have made a plugin that has a list, and I want my code to return the filename the cursor is standing on so that I can use it in an os.system call. I tried to use self.getSelection but it is causing my box to crash :P, here is the piece of code I have (based on FileManger plugin):

    Code
    def ok(self):
    		selection = self["list"].getSelection()
    		if selection[1] == True:
    			self["list"].changeDir(selection[0])
    		else:
                            if isinstance(selection, eServiceReference):
                                    selection = selection.getPath()
                            cmd = "/usr/bin/ctorrent -E 0 " + selection
    			res = os.system(cmd)
    			return (res >> 8)


    Thanks in advanced.

    You are welcomed m8 :o)


    I use codewright, but it is not something form of the shelves so I do not expect that you would just have it. Sorry for that.


    Else try winvi (freeware). I did not use it myslef, but some use it.


    good luck.

    Yes, good point floh.


    digger556, you need a linux editor not a windows one, else you need to run dos2unix command in the box (I know you cannot if you cannot teknet).


    one other think is that you need to restart the box before the changes takes effect.


    If both not work, but your 2 files and tell me the port. I will fix it for you and post it back.


    regards,

    Mate,


    So what tmbinc was telling, is that becuase we are using inetd, we do not need to write the -p thing in the /etc/inetd.conf


    Nothing is to be done in inetd.conf file. Only change in the /etc/services from:

    Code
    telnet 23/tcp


    To:

    Code
    telnet 1234/tcp

    So normally you can change the following line in /etc/inetd.conf file:

    Code
    telnet    stream    tcp    nowait    root    /usr/sbin/telnetd    telnetd


    To:

    Zitat

    telnet stream tcp nowait root /usr/sbin/telnetd telnetd -p 2323


    And include the following line in /etc/servioces file:

    Zitat

    telnet 2323/tcp


    The problem that it seems that telnetd software (which is a part of BusyBox) is not compiled with the -p option. The above should work if you re-compile busybox to include the -p option for telnetd.


    rgds.

    Hi,


    I have a DM7025. I'm making a script to let the dreambox automatically go on deep standby mode if it at a specific hour.


    I tried to use the shutdown command in Linux, that works but then I have to redefine my sat configuration when I startup.


    Can any body tell how I can force enigma2 to go on deep standby from a Linux script?

    Ok, but I though that I have to compile the plugin first! Should I not? just put the .py file? Where should I start the plugin from then? telnet to box? or from menu?

    Thanks,


    Ok, now I installed eclipse and pydev. I made a pydev project and added my simple plugin.py to it.


    I'm getting the following error:

    Python
    Traceback (most recent call last):
      File "F:\My Documents\Downloads\Dreambox Utilities\Own Packages\enigma2\lib\python\Plugins\DemoPlugins\OurSmallTest\plugin.py", line 1, in ?
        from Plugins.Plugin import PluginDescriptor
      File "F:\My Documents\Downloads\Dreambox Utilities\Own Packages\enigma2\lib\python\Plugins\Plugin.py", line 1, in ?
        from enigma import loadPNG
    ImportError: No module named enigma


    My plugin.py is very simple and looks as following:


    So it seems that enigma is missing from my path, but I could not find this file! Help please.

    Hi,


    I'm trying to make changes in streamts. I found the a package called tuxbox-stream in tuxbox directory but I'm not able to build this package.


    I'm typing: bitbake -b tuxbox-stream.bb in my openembedded/packages/tuxbox directory and I'm getting the following error:


    When I view the log file, it looks as following:



    Anyone can help.


    This obviously shows that I do not know much about bitbake and how compilation is happening, but I'm trying to understand these things.


    rgds.

    HI,


    It seems that Guzu.net have made hddtemp 0.3 beta 15 in uploaded it to there site, the matter that is causing a compilation error when compiling for DM7025 because it expects to download hddtemp 0.3 beta 14. How can change that or get it running? :confused_face:


    Please find the compile log below:


    ]