1 2 12
1 20 21

:

  1. #1
    Fedora 20
    X11

    Feb 2009
    14
    13
    Thanked 1 Time in 1 Post




  2. #2
    Ubuntu 11.10
    Unity

    Jan 2012
    14
    7
    23 7




    :
    S 10719000 V 27500000 3/4
    S 10727000 H 30000000 5/6
    S 10757000 V 27500000 3/4
    S 10776000 H 27500000 3/4
    S 10795000 V 27500000 3/4
    S 10815000 H 27500000 5/6
    S 10834000 V 27500000 2/3
    S 10853000 H 27500000 3/4
    S 10872000 V 27500000 3/4
    S 10891000 H 27500000 3/4
    S 10921000 V 27500000 3/4
    S 10930000 H 27500000 3/4
    S 10949000 V 27500000 3/4
    S 10971000 H 27500000 3/4
    S 10992000 V 27500000 3/4
    S 11034000 V 27500000 3/4
    S 11156000 V 20000000 3/4
    S 11219000 H 27500000 3/4
    S 11227000 V 27500000 3/4
    S 11257000 H 27500000 3/4
    S 11276000 V 27500000 2/3
    S 11295000 H 27500000 3/4
    S 11315000 V 27500000 3/4
    S 11334000 H 27500000 3/4
    S 11353000 V 27500000 5/6
    S 11372000 H 27500000 2/3
    S 11391000 V 27500000 3/4
    S 11411000 H 27500000 2/3
    S 11430000 V 27500000 5/6
    S 11449000 H 27500000 5/6
    S 11487000 H 27500000 3/4
    S 11526000 H 27500000 3/4
    S 11564000 H 27500000 3/4
    S 11602000 H 27500000 3/4
    S 11641000 H 27500000 3/4
    S 11679000 H 27500000 3/4
    S 11727000 H 27500000 5/6
    S 11746000 V 27500000 5/6
    S 11765000 H 27500000 5/6
    S 11785000 V 27500000 3/4
    S 11804000 H 27500000 3/4
    S 11823000 V 27500000 5/6
    S 11843000 H 27500000 5/6
    S 11862000 V 27500000 2/3
    S 11881000 H 27500000 3/4
    S 11900000 V 27500000 5/6
    S 11919000 H 27500000 5/6
    S 11938000 V 27500000 3/4
    S 11958000 H 27500000 3/4
    S 11977000 V 27500000 5/6
    S 11996000 H 27500000 2/3
    S 12015000 V 27500000 5/6
    S 12034000 H 27500000 3/4
    S 12054000 V 27500000 5/6
    S 12073000 H 27500000 2/3
    S 12092000 V 27500000 5/6
    S 12111000 H 27500000 5/6
    S 12130000 V 27500000 5/6
    S 12149000 H 27500000 3/4
    S 12168000 V 27500000 3/4
    S 12188000 H 27500000 5/6
    S 12207000 V 27500000 3/4
    S 12226000 H 27500000 3/4
    S 12245000 V 27500000 3/4
    S 12265000 H 27500000 2/3
    S 12284000 V 27500000 3/4
    S 12303000 H 27500000 3/4
    S 12322000 V 27500000 3/4
    S 12341000 H 27500000 3/4
    S 12360000 V 27500000 3/4
    S 12379000 H 27500000 3/4
    S 12398000 V 27500000 3/4
    S 12417000 H 27500000 3/4
    S 12437000 V 27500000 3/4
    S 12467000 H 27500000 3/4
    S 12476000 V 27500000 3/4



    ##usr/share/dvb/dvb-s
    ##usr/share/kde4/apps/kaffeine ... + f ..

    ...


    .. ..
    .. ..

    .." "
    :
    #!/usr/bin/env python
    
    
    import urllib
    urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=7.0W&fkhz=0",'3530.ini')
    
    
    
    
    
    
    the_file = open('3530.ini','r')
    the_line = 0
    last_transponder = 0
    
    
    for i in range (1,20):
    	the_line = the_file.readline()
    #	print the_line
    	if the_line.find('0=') != -1:
    		last_transponder = int (the_line.lstrip('0='))
    		break
    	
    for j in range (1,(last_transponder+1)):
    	the_line = the_file.readline()
    	x = the_line.split(',')
    	N = x[0].find('=')
    	#print x
    	print 'S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1]
    
    
    the_file.close()
    http://paste.ubuntu.com/851111/




  3. #3
    Fedora 20
    X11

    Feb 2009
    14
    13
    Thanked 1 Time in 1 Post



  4. #4
    Ubuntu 11.10
    Unity

    Jan 2012
    14
    7
    23 7




    :
    sudo gedit /usr/share/dvb/dvb-s/Nilesat101+102-7.0W

    VDR




    :
    sudo gedit /usr/share/kde4/apps/kaffeine/scanfile.dvb





  5. 2 cyfer :


  6. #5
    :: ::
    Fedora 20
    KDE

    Jan 2009
    982
    2,771
    1,692 671


    http://en.kingofsat.net/dl.php?pos=26e&fkhz=0

    3340.ini
    Traceback (most recent call last):
    File "./badr-26e", line 29, in <module>
    print 'S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1]
    IndexError: list index out of range


  7. #6
    .: :.
    16
    GNOME3

    Jun 2009
    5,697
    6,898
    7,212 3,170
    1


    :
    #!/usr/bin/env python2
    
    import urllib, os
    # sate: url, fn
    # Nile sat: "http://en.kingofsat.net/dl.php?pos=7.0W&fkhz=0", '3530.ini'
    # Arab sat: "http://en.kingofsat.net/dl.php?pos=26e&fkhz=0", '3340.ini'
    
    sat_url = "http://en.kingofsat.net/dl.php?pos=26e&fkhz=0"
    sat_fn = '3340.ini'
    
    # if local file exist esxape download
    if not os.path.isfile(sat_fn):
        urllib.urlretrieve(sat_url, sat_fn)
    
    the_file = open(sat_fn,'r')
    the_line = 0
    last_transponder = 0
    
    for i in range (1,20):
        the_line = the_file.readline()
        #    print the_line
        if the_line.find('0=') != -1:
            last_transponder = int (the_line.lstrip('0='))
            break
        
    for j in range (1,(last_transponder+1)):
        the_line = the_file.readline().strip()
        x = the_line.split(',')
        N = x[0].find('=')
        #print x
        if len(x) < 2 : continue
        try:
            print 'S {:0<8} {} {:0<8} {}/{}'.format(x[0][N+1:], x[1], x[2], x[3][0], x[3][1])
        except IndexError:
            print 'S {:0<8} {} {:0<8} auto'.format(x[0][N+1:], x[1], x[2])
    
    the_file.close()

    *-* *-* *-* Toolbar


  8. 3 :


  9. #7
    .: :.
    X11

    Jun 2009
    5,849
    6,351
    6,739 2,826
    1

    ʺ ʿ
    !


    --
    IRC: Fakhouri



  10. :


  11. #8
    :: / ::
    35
    GNOME

    Mar 2007
    4,865
    14,239
    6,003 2,041
    45

    ... .... ...

    .....
    kaffeine 1.2.2 kaffeien 7
    8.8
    !!
    o.O islamux O.o
    :::
    " ..( :30)

    || ||

    ...
    ******

    " "
    identi.ca |
    Facebook | Tweeter . DISPORA | GooglePlus




  12. #9
    :: / ::
    35
    GNOME

    Mar 2007
    4,865
    14,239
    6,003 2,041
    45

    ... ...
    o.O islamux O.o
    :::
    " ..( :30)

    || ||

    ...
    ******

    " "
    identi.ca |
    Facebook | Tweeter . DISPORA | GooglePlus




  13. #10
    .: :.
    X11

    Jun 2009
    5,849
    6,351
    6,739 2,826
    1

    vlc Ǻ !
    ɡ !
    ǡ !
    + .
    !


    --
    IRC: Fakhouri



  14. #11
    :: / ::
    35
    GNOME

    Mar 2007
    4,865
    14,239
    6,003 2,041
    45

    vlc Ǻ !
    ɡ !
    ǡ !
    + .
    .. ... ... mplayer ...
    o.O islamux O.o
    :::
    " ..( :30)

    || ||

    ...
    ******

    " "
    identi.ca |
    Facebook | Tweeter . DISPORA | GooglePlus




  15. #12
    .: :.
    X11

    Mar 2008
    1,924
    1,188
    1,504 584

    .. ... ... mplayer ...
    me-tv , Klear

    ɿ
    Simplification is not simplicity, I chose the Simplicity

    => ,


  16. :


  17. #13
    .: :.
    X11

    Mar 2008
    1,924
    1,188
    1,504 584

    ɿ
    :



    Simplification is not simplicity, I chose the Simplicity

    => ,


  18. 2 :


  19. #14
    .: :.
    X11

    Jun 2009
    5,849
    6,351
    6,739 2,826
    1

    :



    !
    ڿ
    !


    --
    IRC: Fakhouri



  20. :


  21. #15
    Ubuntu 11.10
    Unity

    Jan 2012
    14
    7
    23 7



    :
    #!/usr/bin/env python
    
    import urllib
    Nilesat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=7.0W&fkhz=0",'3530.ini')
    Badrsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=26.0E&fkhz=0",'0260.ini')
    Arabsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=30.5E&fkhz=0",'0305.ini')
    
    the_file = open(Arabsat[0],'r')
    the_line = 0
    last_transponder = 0
    
    for i in range (1,20):
        the_line = the_file.readline()
    #    print the_line
        if the_line.find('0=') != -1:
            last_transponder = int (the_line.lstrip('0='))
            break
        
    for j in range (1,(last_transponder+1)):
        the_line = the_file.readline()
        if the_line.strip() == '':
            break
        else:
            x = the_line.split(',')
            N = x[0].find('=')
            #print x
            print 'S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1]
    
    
    the_file.close()
    http://paste.ubuntu.com/1451655/

    .. Nilesat[0] Badrsar[0]


    .. ..



    : S2

  22. 2 cyfer :


  23. #16
    Ubuntu 11.10
    Unity

    Jan 2012
    14
    7
    23 7

    S2 +

    :
    #!/usr/bin/env python
    # written by Mohab Gamal
    # 20 Dec 2012
    # matawfeek2@yahoo.co.uk 
    # sat Feeds not implemented !
    #import pygtk
    import gtk
    import os
    import urllib
    ##########################################################################################################
    def WinToLinux(satellite):
        if satellite == 0:
            Nilesat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=7.0W&fkhz=0",'3530.ini')
            the_file = open(Nilesat[0],'r')
        elif satellite == 1:
            Badrsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=26.0E&fkhz=0",'0260.ini')
            the_file = open(Badrsat[0],'r')
        elif satellite == 2:
            Arabsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=30.5E&fkhz=0",'0305.ini')
            the_file = open(Arabsat[0],'r')
            
        the_line = 0
        last_transponder = 0
    
        for i in range (1,20):
            the_line = the_file.readline()
            if the_line.find('0=') != -1:
                last_transponder = int (the_line.lstrip('0='))
                break
        
        for j in range (1,(last_transponder+1)):
            the_line = the_file.readline()
            if the_line.strip() == '':
                break
                
            else:
                x = the_line.split(',')
                N = x[0].find('=')
                
                if x[4] == 'DVB-S':
                    print 'S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1]
                elif x[4] == 'S2':
                    print 'S2' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1]
                #elif len(x) == 3:
                    
    
        the_file.close()
    ###########################################################################################################
    
    Satellites = {"Nilesat 7W","BadrSat 26E","ArabSat 30.5E"}
    
    ################ define the Window ###########
    win = gtk.Window(gtk.WINDOW_TOPLEVEL)
    win.set_title("WinToLinux Transponder")
    win.connect("delete_event", gtk.main_quit)
    win.set_size_request(280,80)
    
    fixed = gtk.Fixed()
    combo = gtk.combo_box_new_text()
    for i in Satellites:
        combo.append_text(i)
    combo.set_active(0)
    
    ############################################ define the window function
    def Clicked(self):
        print (combo.get_active_text())
        if combo.get_active_text() =='Nilesat 7W':
            WinToLinux(0)
        elif combo.get_active_text() =='BadrSat 26E':
            WinToLinux(1)
        elif combo.get_active_text() =='ArabSat 30.5E':
            WinToLinux(2)
        
    ############################################
    
    Label = gtk.Label('Satellite Name :')
    btn_Download = gtk.Button('Download & convert to linux')
    btn_Download.connect("clicked",Clicked)
    
    fixed.put(Label,6,8)
    fixed.put(combo,116,4)
    fixed.put(btn_Download,40,45)
    
    
    win.add(fixed)
    win.show_all()
    
    
    gtk.main()
    http://paste.ubuntu.com/1451918/

    - py
    example : WinToLinux.py

    -

    :
    python WinToLinux.py

  24. cyfer :


  25. #17
    :: ::
    Fedora 20
    KDE

    Jan 2009
    982
    2,771
    1,692 671

    cyfer
    S2 +

    :
    #!/usr/bin/env python
    # written by Mohab Gamal
    # 20 Dec 2012
    # matawfeek2@yahoo.co.uk 
    # sat Feeds not implemented !
    #import pygtk
    import gtk
    import os
    import urllib
    ##########################################################################################################
    def WinToLinux(satellite):
        if satellite == 0:
            Nilesat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=7.0W&fkhz=0",'3530.ini')
            the_file = open(Nilesat[0],'r')
        elif satellite == 1:
            Badrsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=26.0E&fkhz=0",'0260.ini')
            the_file = open(Badrsat[0],'r')
        elif satellite == 2:
            Arabsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=30.5E&fkhz=0",'0305.ini')
            the_file = open(Arabsat[0],'r')
            
        the_line = 0
        last_transponder = 0
    
        for i in range (1,20):
            the_line = the_file.readline()
            if the_line.find('0=') != -1:
                last_transponder = int (the_line.lstrip('0='))
                break
        
        for j in range (1,(last_transponder+1)):
            the_line = the_file.readline()
            if the_line.strip() == '':
                break
                
            else:
                x = the_line.split(',')
                N = x[0].find('=')
                
                if x[4] == 'DVB-S':
                    print 'S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1]
                elif x[4] == 'S2':
                    print 'S2' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1]
                #elif len(x) == 3:
                    
    
        the_file.close()
    ###########################################################################################################
    
    Satellites = {"Nilesat 7W","BadrSat 26E","ArabSat 30.5E"}
    
    ################ define the Window ###########
    win = gtk.Window(gtk.WINDOW_TOPLEVEL)
    win.set_title("WinToLinux Transponder")
    win.connect("delete_event", gtk.main_quit)
    win.set_size_request(280,80)
    
    fixed = gtk.Fixed()
    combo = gtk.combo_box_new_text()
    for i in Satellites:
        combo.append_text(i)
    combo.set_active(0)
    
    ############################################ define the window function
    def Clicked(self):
        print (combo.get_active_text())
        if combo.get_active_text() =='Nilesat 7W':
            WinToLinux(0)
        elif combo.get_active_text() =='BadrSat 26E':
            WinToLinux(1)
        elif combo.get_active_text() =='ArabSat 30.5E':
            WinToLinux(2)
        
    ############################################
    
    Label = gtk.Label('Satellite Name :')
    btn_Download = gtk.Button('Download & convert to linux')
    btn_Download.connect("clicked",Clicked)
    
    fixed.put(Label,6,8)
    fixed.put(combo,116,4)
    fixed.put(btn_Download,40,45)
    
    
    win.add(fixed)
    win.show_all()
    
    
    gtk.main()
    http://paste.ubuntu.com/1451918/

    - py
    example : WinToLinux.py

    -

    :
    python WinToLinux.py





    WinToLinux.desktop


  26. #18
    Ubuntu 11.10
    Unity

    Jan 2012
    14
    7
    23 7

    v 0.2
    18


    ""
        . 

:	11.png 
:	107 
:	205.2  
:	18787

    http://paste.ubuntu.com/1456162/

    []
    :
    #!/usr/bin/env python
    # written by Mohab Gamal
    # 21 Dec 2012
    # mtawfeek2@yahoo.co.uk 
    # Edit Update 
    # better approach with while loop should be implemented 
    # reading the whole file into memory and "for line in lines" with DataFlow control
    # sat Feeds implemented --> HardCoded/Fragile Hack ! --------> Fixed !
    # ProgressBar will complete -----------> Fixed !
    # sat Feeds not implemented ! --> ProgressBar will not show 100% completion .
    # cluttered / repeated Code --> OOPit ! 
    # Delete the Downloaded File ??? --> os.remove(thefile)
    #import pygtk
    import gtk
    import os
    import urllib
    
    ################################### ProgressBar definition #####################################
    progressbar = gtk.ProgressBar()
    progressbar.set_orientation(gtk.PROGRESS_LEFT_TO_RIGHT)
    progressbar.set_size_request(260,18)
    progressbar.set_text("Progress\t!")
    progressbar.set_fraction(0.0)
    ################################### ScrollWindow and the TextView ##############################
    scrolled_window = gtk.ScrolledWindow()
    scrolled_window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
    scrolled_window.set_size_request(260,300)
    textview = gtk.TextView()
    textbuffer = textview.get_buffer()
    scrolled_window.add(textview)
    ##########################################################################################################
    def WinToLinux(satellite):
        if satellite == 0:
            Nilesat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=7.0W&fkhz=0",'3530.ini')
            the_file = open(Nilesat[0],'r')
        elif satellite == 1:
            Badrsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=26.0E&fkhz=0",'0260.ini')
            the_file = open(Badrsat[0],'r')
        elif satellite == 2:
            Arabsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=30.5E&fkhz=0",'0305.ini')
            the_file = open(Arabsat[0],'r')
        #####
        elif satellite == 3:
            Hispasat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=30.0W&fkhz=0",'3300.ini')
            the_file = open(Hispasat[0],'r')    
        elif satellite == 4:
            Eutelsat125W = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=12.5W&fkhz=0",'3475.ini')
            the_file = open(Eutelsat125W[0],'r')    
        elif satellite == 5:
            Eutelsat50W = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=5.0W&fkhz=0",'3550.ini')
            the_file = open(Eutelsat50W[0],'r')    
        elif satellite == 6:
            Astra4A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=4.8E&fkhz=0",'0048.ini')
            the_file = open(Astra4A[0],'r')
        elif satellite == 7:
            Eutelsat7A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=7.0E&fkhz=0",'0070.ini')
            the_file = open(Eutelsat7A[0],'r')    
        elif satellite == 8:
            Eutelsat9A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=9.0E&fkhz=0",'0090.ini')
            the_file = open(Eutelsat9A[0],'r')    
        elif satellite == 9:
            Eutelsat10A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=10.0E&fkhz=0",'0100.ini')
            the_file = open(Eutelsat10A[0],'r')
        elif satellite == 10:
            HotBird = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=13.0E&fkhz=0",'0130.ini')
            the_file = open(HotBird[0],'r')    
        elif satellite == 11:
            Eutelsat16 = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=16.0E&fkhz=0",'0160.ini')
            the_file = open(Eutelsat16[0],'r')
        elif satellite == 12:
            Astra1 = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=19.2E&fkhz=0",'0192.ini')
            the_file = open(Astra1[0],'r')
        elif satellite == 13:
            Astra3A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=23.5E&fkhz=0",'0235.ini')
            the_file = open(Astra3A[0],'r')
        elif satellite == 14:
            Astra2 = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=28.2E&fkhz=0",'0282.ini')
            the_file = open(Astra2[0],'r')
        elif satellite == 15:
            Eutelsat36 = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=36.0E&fkhz=0",'0360.ini')
            the_file = open(Eutelsat36[0],'r')
        elif satellite == 16:
            HellasSat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=39.0E&fkhz=0",'0390.ini')
            the_file = open(HellasSat[0],'r')
        elif satellite == 17:
            TurkSat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=42.0E&fkhz=0",'0420.ini')
            the_file = open(TurkSat[0],'r')
        #####
            
        the_line = 0
        last_transponder = 0
    
        for i in range (1,20):
            the_line = the_file.readline()
        #print the_line
            if the_line.find('0=') != -1:
                last_transponder = int (the_line.lstrip('0='))
                break
        
        for j in range (1,(last_transponder+2)):
            
            progressbar.set_fraction(float(j)/(last_transponder+1))
            while gtk.events_pending():
                gtk.main_iteration()    
            
            the_line = the_file.readline()
            if the_line.strip() == '':
                the_file.readline()
                
                #break
                
            else:
                x = the_line.split(',')
                N = x[0].find('=')
                if len(x) == 3:
                    dot = str(x[2]).split('\r\n')
                    textbuffer.insert_at_cursor('S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + str(dot[0]) + '000' + ' ' + 'AUTO' + '\n')
                else:
                #print x
                    if x[3] == 'Auto' and x[4] == 'DVB-S':
                        #if  x[4] == 'S2':
                        #textbuffer.insert_at_cursor('Got it  S1\n')
                        textbuffer.insert_at_cursor('S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + 'AUTO' + "\n")
                        continue
                    elif x[3] == 'Auto' and x[4] == 'S2':
                        #textbuffer.insert_at_cursor('Got it  S2\n')
                        textbuffer.insert_at_cursor('S2' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + 'AUTO' + "\n")
                        continue
                    
                    if x[4] == 'DVB-S':
                        textbuffer.insert_at_cursor('S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1] + "\n")
                    
                    elif x[4] == 'S2':
                    
                        textbuffer.insert_at_cursor('S2' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1] + "\n")
                #elif len(x) == 3:
                
    
        the_file.close()
    ###########################################################################################################
    #Path = '/usr/share/dvb/dvb-s'
    #Satellites = os.listdir(Path) 
    Satellites = ["Nilesat 7.0W","BadrSat 26E","ArabSat 30.5E",
                                "Hispasat 30.0W", "Eutelsat 12.5W", "Eutelsat 5.0W",
                                "Astra4A 4.8E" , "Eutelsat7A 7.0E", "Eutelsat 9A 9.0E", "Eutelsat10A 10.0E",
                                "HotBird 13.0E", "Eutelsat16 16.0E", "Astra1 19.2E", "Astra3A 23.5E", "Astra2    28.2E",
                                "Eutelsat36 36.0E", "HellasSat 39.0E", "TurkSat 42.0E"]
    
    ################ define the Window ###########
    win = gtk.Window(gtk.WINDOW_TOPLEVEL)
    win.set_title("WinToLinux Transponder")
    win.connect("delete_event", gtk.main_quit)
    win.set_size_request(280,440)
    win.set_resizable(False)
    
    fixed = gtk.Fixed()
    combo = gtk.combo_box_new_text()
    
    for i in Satellites:
        combo.append_text(i)
        
    combo.set_active(0)
    
    ############################################ define the Main function
    def Clicked(self):
        #combo_option = combo.get_active()
        progressbar.set_fraction(0.0)
        #print (combo.get_active_text())
        #print combo_option
        if combo.get_active_text() =='Nilesat 7.0W':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(0)
            os.remove('3530.ini')
        elif combo.get_active_text() =='BadrSat 26E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(1)
            os.remove('0260.ini')
        elif combo.get_active_text() =='ArabSat 30.5E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(2)
            os.remove('0305.ini')
        #####
        elif combo.get_active_text() =='Hispasat 30.0W':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(3)
            os.remove('3300.ini')
        elif combo.get_active_text() =='Eutelsat 12.5W':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(4)
            os.remove('3475.ini')
        elif combo.get_active_text() =='Eutelsat 5.0W':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(5)    
            os.remove('3550.ini')    
        elif combo.get_active_text() =='Astra4A 4.8E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(6)
            os.remove('0048.ini')
        elif combo.get_active_text() =='Eutelsat7A 7.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(7)        
            os.remove('0070.ini')
        elif combo.get_active_text() =='Eutelsat 9A 9.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(8)
            os.remove('0090.ini')
        elif combo.get_active_text() =='Eutelsat10A 10.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(9)
            os.remove('0100.ini')
        elif combo.get_active_text() =='HotBird 13.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(10)
            os.remove('0130.ini')
        elif combo.get_active_text() =='Eutelsat16 16.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(11)
            os.remove('0160.ini')
        elif combo.get_active_text() =='Astra1 19.2E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(12)
            os.remove('0192.ini')
        elif combo.get_active_text() =='Astra3A 23.5E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(13)    
            os.remove('0235.ini')
        elif combo.get_active_text() =='Astra2    28.2E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(14)
            os.remove('0282.ini')
        elif combo.get_active_text() =='Eutelsat36 36.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(15)
            os.remove('0360.ini')
        elif combo.get_active_text() =='HellasSat 39.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(16)
            os.remove('0390.ini')
        elif combo.get_active_text() =='TurkSat 42.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(17)
            os.remove('0420.ini')
    
        
    ############################################
    Label = gtk.Label('Satellite Name :')
    btn_Download = gtk.Button('Download & convert to linux')
    btn_Download.connect("clicked",Clicked)
    ############################################# start Packing elements ####################
    
    fixed.put(Label,6,8)
    fixed.put(combo,116,4)
    fixed.put(btn_Download,40,45)
    fixed.put(scrolled_window,10,100)
    fixed.put(progressbar,6,410)
    
    win.add(fixed)
    win.show_all()
    
    
    gtk.main()


    desktop ... ... Exectuable
    :
    chomd +x w2l.py
    ..

  27. #19
    :: ::
    Fedora 20
    KDE

    Jan 2009
    982
    2,771
    1,692 671

    cyfer
    v 0.2
    18


    ""
        . 

:	11.png 
:	107 
:	205.2  
:	18787

    http://paste.ubuntu.com/1456162/

    []
    :
    #!/usr/bin/env python
    # written by Mohab Gamal
    # 21 Dec 2012
    # mtawfeek2@yahoo.co.uk 
    # Edit Update 
    # better approach with while loop should be implemented 
    # reading the whole file into memory and "for line in lines" with DataFlow control
    # sat Feeds implemented --> HardCoded/Fragile Hack ! --------> Fixed !
    # ProgressBar will complete -----------> Fixed !
    # sat Feeds not implemented ! --> ProgressBar will not show 100% completion .
    # cluttered / repeated Code --> OOPit ! 
    # Delete the Downloaded File ??? --> os.remove(thefile)
    #import pygtk
    import gtk
    import os
    import urllib
    
    ################################### ProgressBar definition #####################################
    progressbar = gtk.ProgressBar()
    progressbar.set_orientation(gtk.PROGRESS_LEFT_TO_RIGHT)
    progressbar.set_size_request(260,18)
    progressbar.set_text("Progress\t!")
    progressbar.set_fraction(0.0)
    ################################### ScrollWindow and the TextView ##############################
    scrolled_window = gtk.ScrolledWindow()
    scrolled_window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
    scrolled_window.set_size_request(260,300)
    textview = gtk.TextView()
    textbuffer = textview.get_buffer()
    scrolled_window.add(textview)
    ##########################################################################################################
    def WinToLinux(satellite):
        if satellite == 0:
            Nilesat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=7.0W&fkhz=0",'3530.ini')
            the_file = open(Nilesat[0],'r')
        elif satellite == 1:
            Badrsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=26.0E&fkhz=0",'0260.ini')
            the_file = open(Badrsat[0],'r')
        elif satellite == 2:
            Arabsat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=30.5E&fkhz=0",'0305.ini')
            the_file = open(Arabsat[0],'r')
        #####
        elif satellite == 3:
            Hispasat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=30.0W&fkhz=0",'3300.ini')
            the_file = open(Hispasat[0],'r')    
        elif satellite == 4:
            Eutelsat125W = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=12.5W&fkhz=0",'3475.ini')
            the_file = open(Eutelsat125W[0],'r')    
        elif satellite == 5:
            Eutelsat50W = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=5.0W&fkhz=0",'3550.ini')
            the_file = open(Eutelsat50W[0],'r')    
        elif satellite == 6:
            Astra4A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=4.8E&fkhz=0",'0048.ini')
            the_file = open(Astra4A[0],'r')
        elif satellite == 7:
            Eutelsat7A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=7.0E&fkhz=0",'0070.ini')
            the_file = open(Eutelsat7A[0],'r')    
        elif satellite == 8:
            Eutelsat9A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=9.0E&fkhz=0",'0090.ini')
            the_file = open(Eutelsat9A[0],'r')    
        elif satellite == 9:
            Eutelsat10A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=10.0E&fkhz=0",'0100.ini')
            the_file = open(Eutelsat10A[0],'r')
        elif satellite == 10:
            HotBird = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=13.0E&fkhz=0",'0130.ini')
            the_file = open(HotBird[0],'r')    
        elif satellite == 11:
            Eutelsat16 = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=16.0E&fkhz=0",'0160.ini')
            the_file = open(Eutelsat16[0],'r')
        elif satellite == 12:
            Astra1 = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=19.2E&fkhz=0",'0192.ini')
            the_file = open(Astra1[0],'r')
        elif satellite == 13:
            Astra3A = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=23.5E&fkhz=0",'0235.ini')
            the_file = open(Astra3A[0],'r')
        elif satellite == 14:
            Astra2 = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=28.2E&fkhz=0",'0282.ini')
            the_file = open(Astra2[0],'r')
        elif satellite == 15:
            Eutelsat36 = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=36.0E&fkhz=0",'0360.ini')
            the_file = open(Eutelsat36[0],'r')
        elif satellite == 16:
            HellasSat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=39.0E&fkhz=0",'0390.ini')
            the_file = open(HellasSat[0],'r')
        elif satellite == 17:
            TurkSat = urllib.urlretrieve("http://en.kingofsat.net/dl.php?pos=42.0E&fkhz=0",'0420.ini')
            the_file = open(TurkSat[0],'r')
        #####
            
        the_line = 0
        last_transponder = 0
    
        for i in range (1,20):
            the_line = the_file.readline()
        #print the_line
            if the_line.find('0=') != -1:
                last_transponder = int (the_line.lstrip('0='))
                break
        
        for j in range (1,(last_transponder+2)):
            
            progressbar.set_fraction(float(j)/(last_transponder+1))
            while gtk.events_pending():
                gtk.main_iteration()    
            
            the_line = the_file.readline()
            if the_line.strip() == '':
                the_file.readline()
                
                #break
                
            else:
                x = the_line.split(',')
                N = x[0].find('=')
                if len(x) == 3:
                    dot = str(x[2]).split('\r\n')
                    textbuffer.insert_at_cursor('S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + str(dot[0]) + '000' + ' ' + 'AUTO' + '\n')
                else:
                #print x
                    if x[3] == 'Auto' and x[4] == 'DVB-S':
                        #if  x[4] == 'S2':
                        #textbuffer.insert_at_cursor('Got it  S1\n')
                        textbuffer.insert_at_cursor('S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + 'AUTO' + "\n")
                        continue
                    elif x[3] == 'Auto' and x[4] == 'S2':
                        #textbuffer.insert_at_cursor('Got it  S2\n')
                        textbuffer.insert_at_cursor('S2' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + 'AUTO' + "\n")
                        continue
                    
                    if x[4] == 'DVB-S':
                        textbuffer.insert_at_cursor('S' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1] + "\n")
                    
                    elif x[4] == 'S2':
                    
                        textbuffer.insert_at_cursor('S2' +' ' + x[0][N+1:] + '000' + ' ' + x[1]+ ' ' + x[2] + '000' + ' ' + x[3][0] + '/' + x[3][1] + "\n")
                #elif len(x) == 3:
                
    
        the_file.close()
    ###########################################################################################################
    #Path = '/usr/share/dvb/dvb-s'
    #Satellites = os.listdir(Path) 
    Satellites = ["Nilesat 7.0W","BadrSat 26E","ArabSat 30.5E",
                                "Hispasat 30.0W", "Eutelsat 12.5W", "Eutelsat 5.0W",
                                "Astra4A 4.8E" , "Eutelsat7A 7.0E", "Eutelsat 9A 9.0E", "Eutelsat10A 10.0E",
                                "HotBird 13.0E", "Eutelsat16 16.0E", "Astra1 19.2E", "Astra3A 23.5E", "Astra2    28.2E",
                                "Eutelsat36 36.0E", "HellasSat 39.0E", "TurkSat 42.0E"]
    
    ################ define the Window ###########
    win = gtk.Window(gtk.WINDOW_TOPLEVEL)
    win.set_title("WinToLinux Transponder")
    win.connect("delete_event", gtk.main_quit)
    win.set_size_request(280,440)
    win.set_resizable(False)
    
    fixed = gtk.Fixed()
    combo = gtk.combo_box_new_text()
    
    for i in Satellites:
        combo.append_text(i)
        
    combo.set_active(0)
    
    ############################################ define the Main function
    def Clicked(self):
        #combo_option = combo.get_active()
        progressbar.set_fraction(0.0)
        #print (combo.get_active_text())
        #print combo_option
        if combo.get_active_text() =='Nilesat 7.0W':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(0)
            os.remove('3530.ini')
        elif combo.get_active_text() =='BadrSat 26E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(1)
            os.remove('0260.ini')
        elif combo.get_active_text() =='ArabSat 30.5E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(2)
            os.remove('0305.ini')
        #####
        elif combo.get_active_text() =='Hispasat 30.0W':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(3)
            os.remove('3300.ini')
        elif combo.get_active_text() =='Eutelsat 12.5W':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(4)
            os.remove('3475.ini')
        elif combo.get_active_text() =='Eutelsat 5.0W':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(5)    
            os.remove('3550.ini')    
        elif combo.get_active_text() =='Astra4A 4.8E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(6)
            os.remove('0048.ini')
        elif combo.get_active_text() =='Eutelsat7A 7.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(7)        
            os.remove('0070.ini')
        elif combo.get_active_text() =='Eutelsat 9A 9.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(8)
            os.remove('0090.ini')
        elif combo.get_active_text() =='Eutelsat10A 10.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(9)
            os.remove('0100.ini')
        elif combo.get_active_text() =='HotBird 13.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(10)
            os.remove('0130.ini')
        elif combo.get_active_text() =='Eutelsat16 16.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(11)
            os.remove('0160.ini')
        elif combo.get_active_text() =='Astra1 19.2E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(12)
            os.remove('0192.ini')
        elif combo.get_active_text() =='Astra3A 23.5E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(13)    
            os.remove('0235.ini')
        elif combo.get_active_text() =='Astra2    28.2E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(14)
            os.remove('0282.ini')
        elif combo.get_active_text() =='Eutelsat36 36.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(15)
            os.remove('0360.ini')
        elif combo.get_active_text() =='HellasSat 39.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(16)
            os.remove('0390.ini')
        elif combo.get_active_text() =='TurkSat 42.0E':
            progressbar.set_text(combo.get_active_text() + '\t-->\t\t Done !')
            WinToLinux(17)
            os.remove('0420.ini')
    
        
    ############################################
    Label = gtk.Label('Satellite Name :')
    btn_Download = gtk.Button('Download & convert to linux')
    btn_Download.connect("clicked",Clicked)
    ############################################# start Packing elements ####################
    
    fixed.put(Label,6,8)
    fixed.put(combo,116,4)
    fixed.put(btn_Download,40,45)
    fixed.put(scrolled_window,10,100)
    fixed.put(progressbar,6,410)
    
    win.add(fixed)
    win.show_all()
    
    
    gtk.main()


    desktop ... ... Exectuable
    :
    chomd +x w2l.py
    ..




    wintolinux-1.0-4.1.noarch.rpm
    wintolinux-1.0-4.1.src.rpm


  28. :


  29. #20
    Ubuntu 11.10
    Unity

    Jan 2012
    14
    7
    23 7

    ... ...
    rpm

  30. cyfer :


: 1 (0 1 )

  1. []
    Rafik .: :.
    : 7
    : 06-10-2014, 02:00 AM
  2. [] vdr 1.7.x
    sami8519 .: :.
    : 1
    : 05-08-2011, 09:07 AM
  3. []
    .: :.
    : 2
    : 10-05-2009, 01:14 PM
  4. []
    .: :.
    : 3
    : 05-11-2008, 03:47 AM