Reset Current Channel

  • 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?

  • 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?


  • Now you can read the e2servicereference value. :grinning_squinting_face:

    MfG Ali

    DM8000 | DM8000 | DM500HD | DM500HD | DM7020S


    Bash
    #!/bin/sh
    while [ 1 ]
    do
    	echo "i love my dreams!!!"
    	sleep 1
    done

  • And nothink...no ZAP :frowning_face:

    Einmal editiert, zuletzt von tracer ()

  • wget "http://127.0.0.1/web/zap?sref=1:0:1:12C8:2E7C:13E:820000:0:0:0:" -O-


    Then try this


    No, this must work, because you already zap when you click on a servicename.
    When this also does not work, the start E2 in the console and zap via webif and have a look at the output.


    Im not at home, so i cant have a look at the correct url

  • 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..

    Einmal editiert, zuletzt von tracer ()

  • 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?

  • nothing strange there, e2 just does not rezap if the channel is already tuned :winking_face:


    you'd need to zap some other channel to be able to rezap (or implement one or two workarounds in e2)....


    *EDIT* see Navigation.playService for reference...

    Homescreen eurer Apple-Geräte noch nicht voll genug?


    dreaMote: Fernbedienung für Dreamboxen
    Mobile WOL: Wake-on-LAN Client für iOS mit optionalem Widget
    My Home Remote: Fernkontrolle für Homematic CCU/CCU2 optimiert für mobile Benutzung

    Einmal editiert, zuletzt von ritzMo ()