Beiträge von tracer

    Screen <class 'test_menu.TEST'>((), {}): <type 'exceptions.TypeError'>
    Traceback (most recent call last):
    File "/usr/lib/enigma2/python/mytest.py", line 214, in create
    return screen(self, *arguments, **kwargs)
    File "/usr/lib/enigma2/python/Screens/test_menu.py", line 86, in __init__
    list.append(TestEntry(__("Test", "test.png")))
    TypeError: getText() takes exactly 1 argument (2 given)


    Error :frowning_face:


    in code:


    list.append(TestEntry(__("Test", "test.png")))



    :frowning_face:



    Can you tell how this menu should start ?? Is it in Autostart mode ??

    Code
    File "/usr/lib/enigma2/python/Screens/myplugin_1.py", line 686, in entitlements
        self.session.open(Message, "Could not read informations.")
      File "/usr/lib/enigma2/python/mytest.py", line 278, in open
        raise "modal open are allowed only from a screen which is modal!"
    modal open are allowed only from a screen which is modal!
    (PyObject_CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0x2eee1238>>,('WizardActions', 'ok')) failed)



    this bug i get when i update cvs to newer one. Could you helpe me ?

    enigma2 has got somethink strange...


    Code
    #!/bin/ash
    SERVICE= wget "http://127.0.0.1/web/subservices" -O- | grep e2servicereference | cut -f8 -d"e" | cut -f1 -d"<" | cut -c2-
    
    
    wget "http://127.0.0.1/web/zap?sRef=$SERVICE" -O-
    
    
    exit 0


    This Script Must works, but it doesn't Reset to current Channel - is it enigma2 bug ??


    Or??


    Mayby is there diffrent way to reset channel via connection to socket?

    Seems it is not working well.


    I was trying also to zap it via WebInterface, but i can not see output, as in enigma1 in www addres poll.


    When I Kill enigma2 and rcS, enigma2 starts itslef, and i always run it twice..


    And nothink...no ZAP :frowning_face:

    Please help me... :frowning_face:


    I have already did a Message via http


    Code
    char cmd[200];
    	sprintf(cmd,"wget -O - \"http://127.0.0.1/web/message?text=%s&type=1&timeout=%d\" 2>/dev/null&", preparestring(caption).c_str(),timeout);
    	system(cmd);
    	return;



    How to Reset Channel - make ZAP ? via HTTP? or .listen.enigma.socket?

    Hi, is it possiable in enigma2 connect to socket and reset current channel in c++ ??


    This way we can make it in enigma1


    udsClient enigmasocket("/tmp/.listen.camd.socket");
    if(enigmasocket.open_connection())
    {
    enigmasocket.send_data("CA_ZAP",sizeof("CA_ZAP"));
    enigmasocket.close_connection();
    }




    Any idea how to in enigma2?