Generate an oscam.srvid file based on KingOfSat packages and OScam Wiki

There are 5 replies in this Thread which was already clicked 9,948 times. The last Post () by MpOnyx.

  • Generate an oscam.srvid file based on KingOfSat packages and OScam Wiki#
    # Author: pr2
    #
    # Thanks to demosat for the tests and suggestions.
    #


    Introduction.


    The purpose of those scripts is to generate a file oscam.srvid based on packages available from:
    Packages - KingOfSat


    The CAID will be retrieved from OSCam Wiki page:
    OSCam/en/Config/oscam.provid


    This is linux standard shell script that should run on any Linux system.
    How to install.



    Simply unpack the srvidking.tgz file on your favorite location, be carefull that some temporary files
    will be created and the resulting file will be placed there too.


    Example:


    In telnet:


    Code
    mkdir /media/hdd/srvidking


    FTP the file srvidking.tgz to the folder /media/hdd/srvidking


    In telnet:


    Code
    cd /media/hdd/srvidking
    tar -xvzf srvidking.tgz


    As result you will get 3 files:



    1config.sh
    2srvidking.sh
    readme.txt




    How to use:



    Script: 1config.sh


    First you need to run the script: ./1config.sh this will generate a file called srvidking.cfg


    To run the script in telnet:


    Code
    cd /media/hdd/srvidking
    ./1config.sh


    Then edit the file srvidking.cfg and remove the # on the lines with the packages that you want to generate the oscam.srvid files.


    Script: 2srvidking.sh


    To run the script in telnet:


    Code
    cd /media/hdd/srvidking
    ./2srvidking.sh


    The resulting files will be oscam.srvid.PACKAGE


    If the CAID is not found in the Wiki page it will be replaced by UNKNOWN, so please check the resulting file.


    Please help us completing the missing CAID in this thread:
    Help us complete the CAID / providerID list in the wiki


    Enjoy,


    P.S.: Special thanks to Demosat for the tests and suggestions


    pd. three notes.


    1 that works perfectly in linux environment test is made by me and OK (azbox firm OPENSAT)


    I've added 2 º final telnet to connect to the oscam.srvid according to suppliers we use.

    Code
    cat oscam.srvid.* > oscam.srvid


    3 ° any errors in translation please pot you(cazuela) are attentive. thanks ..

    • Official Post

    [TOOL] Generate an oscam.srvid based on KingOfSat satellites info and OScam Wiki


    Update 16/10/11
    ###############################################################################
    # Author: pr2 for OSCam please wait ...
    #
    # Special thanks to all the beta-testers for the support and suggestions,
    # and Lightman33 for the iconv compilation.
    ###############################################################################


    This script will generate an oscam.srvid file to use with OScam web interface.


    Channel information will come from KingOfSat.net:
    KingOfSat - European Satellite Zapping & Directory for the channel informations
    CAID information will come from OSCam Wiki:
    OSCam/en/Config/oscam.provid


    How to install this pack.


    Copy the pack SrvidSatKing1_0.tgz into your Enigma2 STB internal HDD (or USB stick),
    the script will download and generate some temporary file so it needs space
    to work.
    Don't run it from the /tmp folder!


    Example:
    FTP the pack to /media/hdd/SrvidSatKing/SrvidSatKing1_0.tgz


    In telnet type:


    Code
    cd /media/hdd/SrvidSatKing
    tar -xvzf ./SrvidSatKing1_0.tgz



    This will generate you several files.


    See below the remark about iconv and how to install.


    Pre-requisite:


    Your Enigma2 STB needs to be connected to the Internet.
    It is advices, but not mandatory, to have iconv installed and running on your system.
    Since iconv is not standard in E2, an installation pack is provided from MIPS system (see below).


    How to use the scripts:



    1°) Run the script: ./1config.sh


    It will generate a configuration file with the list of all the possible satellite to grab information from.
    Edit the file: srvidsat.cfg


    And remove the # in front of the satellites than you want to generate an oscam.srvid file.


    2°) Run the script: ./2genpack.sh


    This will grab and prepare the satellite information from KingOfSat.net,
    you will get a file called: package.cfg


    Edit the file package.cfg to select the packages that you want in your resulting oscam.srvid


    If your package is splitted on several satellites, you need to select it for each satellite.
    That you receive.
    Example, if you have Telesat you need to select it on the satellites that you have:


    TELESAT | 13.0E |pos-13E
    TELESAT | 19.2E |pos-19.2E
    TELESAT | 23.5E |pos-23.5E


    3°) Run: ./3gensrvid.sh


    This script will generate your resulting oscam.srvid file (only valid packages will be placed in this file).
    Packages where the CAID is unknown will be sent to a file called: pos-XXXX.UNKNOWN where xxx is the satellite position,
    the caid will be replace by UNKN in this file.


    Since the OScam webif doesn't support UTF-8, then the resulting oscam.srvid will be
    converted thanks to iconv tool, it will be converted into CP1252 format
    (Microsoft ANSI format).


    Without conversion the resulting oscam.srvid file is usable but some special characters will be wrongly displaid in the Webif.


    Be carefull iconv is not standard on Enigma2 system so this pack provide a compiled version tested on OE1.6 MIPS system.
    iconv is standard in most Linux distribution.


    Please read the file: FAQ.txt


    -------------------------------------------------------------------------------
    Installation iconv on Enigma2 MIPS Open Embedded OE 1.6



    PLEASE DO NOT FOLLOW THIS TUTO ON OTHER SYSTEM THAN MIPS OE 1.6
    (Example: it won't work on SH4 processor the executable is not compatible!)


    Connect via telnet and go into the folder where you install the scripts and type:


    Code
    ./installiconv.sh


    How to test if iconv runs on your system:


    Code
    iconv -?


    Result is:


    root@MyBox# iconv -?
    Usage: iconv [-c] [-s] [-f fromcode] [-t tocode] [file ...]
    or: iconv -l
    Try `iconv --help' for more information.


    You can also test with:


    Code
    iconv -l



    Which will provide the list of all possible conversion formats.



    To discuss about this: [CHAT] Generate an oscam.srvid based on KingOfSat satellites info and OScam Wiki


    Current list of satellites:

  • master G

    Closed the thread.

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!