Beiträge von hotbaws11

    finally got it working... no idea what I did wrong but just checked there and testzap file has been created :smiling_face:


    Any idea what phython/web command I can use to identify which satellite the new channel is on (i.e. 28E, 13E etc). Otherwise I'd be changing the channel on my other box every time I change the channel on the DM800???


    Also, does anyone know if there is a similar function on the DM500 that tracks channel changes so that I can customise this on my DM500 as well?


    cheers for the help so far :thumbs_up:

    I'm very confused about the ChannelSelection.py script :confused_face: :confused_face: :confused_face:


    I've updated the zap function to the following so that it writes a text file in temp every time its called. However nothing happens when I change channel though. I've restarted enigma and the box but no difference. What am I doing wrong here... help :loudly_crying_face:



    note the function is properly indented however its not showing it above.

    just an update to say that I tried the above without restarting the box and I managed to create the pyc file. I modified the zap function to write a temp file (just a test) but it didn't seem to work. Note sure what I did wrong... possibly I need to restart the box before it takes effect?????


    any additional pointers would be appreciated.

    you have to restart enigma2 on your box after you made changes to *.py files. E2 will compile them to *.pyo files then on restart

    is there any way to compile the modified py file without restarting? I think I read I could create a new py file that has an import statement for the modified file (i.e. import ChannelSelection.py) and by executing the new py file, python would compile ChannelSelection.py as part of that.


    Any idea if this will cause any issues as I've prefer not to restart my box at the moment.


    btw thanks for all the help so far...

    In ChannelSelection.py - there is a zap function. You can run a script from there. But - depending on the script - this may slow down your zapping between channels.




    Cheers, pcd.

    All I want to do is check if the satellite has changed. If it has then make a call to my other dreambox (through web) to change to a channel on that satellite. So hopefully there isn't any real delay to changing to channels on the same satellite as its just making a quick check to see what satellite is selected.


    I opened up ChannelSelection.py and had a look. Seems interesting... is it correct that if I replace ChannelSelection.py with a modified version and reboot my box, the new pyc file will automatically be created? Is it as simple as this to get this to work???

    thanks for the suggestion... very detailed :smiling_face:


    I did think about a script running in the background and checking old/new channel etc but just wondered if there was something that fires in the background whenever a channel changes. That's why I have a manual script at the moment. Obviously for the motorised setup, enigma must call something to move the satellite and I was holding out for hope that I could modify one of the files to call an additional script :confused_face:


    For your script below, I can see that you are basically getting the channel info etc from getcurrent, however what command would I need to call to get the satellite? For example, if the current channel is on 13e, then I would like to change the channel on my other dreambox to BBC World (i.e. not just changing to the same channel that I've selected on my DM800). The manual script I have at the moment just changes to the channel to match that of my DM800.

    Hi,


    Is there any way that I can execute a script automatically every time the channel is changed on either the DM500 or DM800?


    I can think of many uses for this but the main one at the moment is to tell my other sat dreambox (which is hooked up to a motor) to move the satellite if needed. I already have a script that I can execute manually from the Niablo scripts menu (on DM800) to move to another satellite but hoping that there is a clever way to automate this.


    Cheers.