Bouquets downloadable via Plugin or Script - Page 2
Register
Page 2 of 8 FirstFirst 1234567 ... LastLast
Results 16 to 30 of 107
  1. #16
    Banned
    Join Date
    Sep 2010
    Posts
    1,724
    Thanks Thanks Given 
    19
    Thanks Thanks Received 
    71
    Thanked in
    54 Posts

    Default

    one of the guys posted his own script to do just this a while ago.

    check this thread.
    Code:
    http://www.dreamboxuk.com/forums/showthread.php?1831-Script-to-Auto-Update-Bouquets-online.&highlight=script
    also check this thread
    Code:
    http://www.dreamboxuk.com/forums/showthread.php?2239-Enigma1-Bouquet-Update-Plugin&p=9939#post9939
    Last edited by RuberDuck; 7th February, 2011 at 12:01 PM.

  2. #17
    Banned
    Join Date
    Sep 2010
    Posts
    1,724
    Thanks Thanks Given 
    19
    Thanks Thanks Received 
    71
    Thanked in
    54 Posts

    Default

    ok first off i am not the author of this plugin, that honour goes to rossi2000 of DBUK. also i am posting this here in the DREAMBOX section but it will work with any E2 system.

    if you have any questions ask in a separate thread and reference this one and i will gladly pass them on for you. i will also keep this thread updated with future updates etc.

    ==================================================


    Enigma2 Bouquet & Picon Update Plugin

    thanks to silverfox and google for the assistance

    transfer the attached file to /tmp/ and manuallly install it.

    the ipk will automatically reboot your box after installation, it will now appear in the plugins menu (green button)

    edit the .sh script in /usr/lib/enigma2/python/plugins/systemplugins/E2_Bouquet_Picon_Update with your file locations


    enjoy

    ================
    Last edited by RuberDuck; 8th February, 2011 at 12:22 AM.

  3. #18
    Banned
    Join Date
    Sep 2010
    Posts
    1,724
    Thanks Thanks Given 
    19
    Thanks Thanks Received 
    71
    Thanked in
    54 Posts

    Default

    Enigma2 Bouquet & Picon Update Plugin
    thanks to silverfox and google for the assistance

    transfer the attached file to /tmp/ and manuallly install it.

    the ipk will automatically reboot your box after installation, it will now appear in the plugins menu (green button)

    this ipk will check if youve installed the previous version, if so, it will remove it and re-install the plugin and place a new script in /usr/script. if not, it will install as normal.

    edit the .sh script in /usr/script with your file locations

    UPDATED 08022011:-
    cleaned the plugin directory of unneeded files, altered some code.
    the script has now been moved to /usr/script, any script updates can be applied to this file, no need to re-install the plugin.
    log file of bouquet updates created in /var/log



    enjoy

  4. #19
    Top Poster girovend's Avatar
    Join Date
    Sep 2008
    Posts
    158
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    Anything for enigma 1 yet

  5. #20
    DK Veteran reddevil157's Avatar
    Join Date
    Jan 2010
    Location
    Ireland
    Posts
    1,427
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    1
    Thanked in
    1 Post

    Default

    Hey lads, could you elaborate for the not so technical minded, from the, edit the .sh part plz.

  6. #21
    Banned
    Join Date
    Sep 2010
    Posts
    1,724
    Thanks Thanks Given 
    19
    Thanks Thanks Received 
    71
    Thanked in
    54 Posts

    Default

    Quote Originally Posted by girovend View Post
    Anything for enigma 1 yet
    yes this.

    -------------

    Enigma1 Bouquet Update Plugin

    this is easier to run the script, rather than having to go into the script panel.
    it will appear in the plugins menu instead now.

    transfer both files into /var/tuxbox/plugins
    chmod the .sh script to 755

    now in the yellow button you will see Enigma1 Bouquet Update. click it to update bouquets
    remember to edit your http file location in the .sh file.
    Attached Files Attached Files

  7. #22
    Banned
    Join Date
    Sep 2010
    Posts
    1,724
    Thanks Thanks Given 
    19
    Thanks Thanks Received 
    71
    Thanked in
    54 Posts

    Default

    Quote Originally Posted by reddevil157 View Post
    Hey lads, could you elaborate for the not so technical minded, from the, edit the .sh part plz.
    open the .sh file with windows nopepad and look for this

    #Change the URL to point to your Bouquet zip file
    BQ="http://www.xxxx.co.uk/xxxx/enigma1.tar.gz
    change the url to the address where your hosting your .tar archive.

  8. #23
    DK Veteran
    Join Date
    Sep 2008
    Posts
    799
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post

    Default

    I have updated the script

    no point in checking say everyday and downloading the same channels list, so a version check is done to confirm.

    The version check is a text file on the remote server with a number for version (incremental integer value) and also a local version on the dreambox.

    The script will download the version file from the remote server, check to see if the server version is higher than the local version and then only run the update script.

    as a test, the local version is 1 and the server version is 2 - thus it will pull down the latest update and also copy the new version file to /var/etc

    The version file is stored in /var/etc and must exist in order for the script to update. Hopefully further updates will include check for file to see if it exists and if not, then perform an initial channel refresh.


    #!/bin/sh
    # script to download latest channels lists
    # Tested on Enigma 1 images (DM500s)
    # Jfish 1 Feb 2011
    # change log
    # v1 - initial release (1 Feb 2011)
    # v1.1 - remove of reboot at the end of script - no need for it now (6 Feb 2011)
    # v1.2 - check for version update and only update if new version exists

    cd /tmp
    wget "http://192.168.1.10/remotever.txt"
    localv=`cat /var/etc/ver.txt`
    remotev=`cat /tmp/remotever.txt`

    if [ $remotev -gt $localv ]; then

    cd /tmp
    mkdir bq
    cd bq
    wget "http://192.168.1.10/bq.tar.gz"
    chmod 755 /tmp/bq/bq.tar.gz
    tar -xzvf bq.tar.gz

    rm -rf /var/etc/satellites.xml
    mv /tmp/bq/satellites.xml /var/etc/
    rm -rf /tmp/bq/satellite.xml

    cd /var/tuxbox/config/enigma/
    rm -rf *.tv
    rm -rf *.epl
    rm -rf *.radio
    rm -rf bouquets
    rm -rf services
    rm -rf services.locked

    mv /tmp/bq/* /var/tuxbox/config/enigma/
    rm -rf /tmp/bq.tar.gz
    rm -rf /tmp/bq

    wget -qO - http://root:dreambox@127.0.0.1/cgi-bin/reloadSettings
    wget -qO - http://root:dreambox@127.0.0.1/cgi-b...adUserBouquets
    rm -rf /var/etc/ver.txt
    mv /tmp/remotever.txt /var/etc/ver.txt
    else
    exit;
    fi
    Attached Files Attached Files
    Last edited by jfish; 8th February, 2011 at 11:23 PM.

  9. #24
    Junior Member
    Join Date
    Jun 2010
    Posts
    37
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts

    Default

    nice way to check if downloads needed jfish, thx

  10. #25
    V.I.P. Member SGTFlipFlop's Avatar
    Join Date
    Sep 2009
    Location
    Scotland
    Posts
    1,002
    Thanks Thanks Given 
    2
    Thanks Thanks Received 
    97
    Thanked in
    20 Posts

    Default

    Can you show an example how the txt files look please?

  11. #26
    DK Veteran
    Join Date
    Sep 2008
    Posts
    799
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post

    Default

    Quote Originally Posted by SGTFlipFlop View Post
    Can you show an example how the txt files look please?
    the version text file (which is what one assumes you mean) will have a number for example

    1

    or

    2

    or

    25
    Attached Files Attached Files
    Last edited by jfish; 10th February, 2011 at 05:50 PM.

  12. #27
    DK Veteran
    Join Date
    Sep 2008
    Posts
    799
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post

    Default

    another update done

    change log

    - functions added in code to make it easer to read and it goods programming practice

    - A check for local version file is done initially, if it doesnt exist - then get a copy of the channels list is downloaded and copy version file over from server to local directory. If local version file does exist, then check to see if a a more up to date copy exist on the server if it doest download and copy it otherwise do nothing

    here is the logic of the script...

    lets start by checking for local version file (/var/etc/ver.txt)
    if it doesnt exist then
    download channel and boquets and copy over to dreambox
    copy version file over to /var/etc
    exit as nothing else to do really

    but if local version file exist then
    if remote server version file is more recent than the local copy then
    download channel and boquets and copy over to dreambox
    copy version file over to /var/etc
    exit as nothing else to do really

    if both version files are same then
    exist as nothing to do really
    Attached Files Attached Files
    Last edited by jfish; 13th February, 2011 at 06:21 PM.

  13. #28
    V.I.P. Member SGTFlipFlop's Avatar
    Join Date
    Sep 2009
    Location
    Scotland
    Posts
    1,002
    Thanks Thanks Given 
    2
    Thanks Thanks Received 
    97
    Thanked in
    20 Posts

    Default

    See 3 people downloaded it without saying thanks, Bad patter.

    Excellent work again jfish

  14. #29
    DK Veteran
    Join Date
    Sep 2008
    Posts
    799
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post

    Default

    I will be updating the script over the next few days.. I am going to get the script integrated into the Pli Jade 3 menu so can be called from box directly (as at the moment I run it via Telnet)

    may decide to host file on my webserver - so people who are using it can connect and download the boquets. May need to add some checking to ensure web server it available before performing the update.

  15. #30
    DK Veteran
    Join Date
    Sep 2008
    Posts
    799
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    1
    Thanked in
    1 Post

    Default

    another update

    The script now check to make sure the server is online before performing the update.

    I tried to integrate the script into Open PLI image menu, but it was hanging so need to do some debug to find out

    also the script now connects to my server - therefore if you try it out yourself, it will connect to my server and download the channel list.

    At the moment only executed via Telnet which is not ideal.

    if anyone knows how to integrate the script into the Menu then I would like to know. As PPanel is giving me problems.
    Attached Files Attached Files

 

 
Page 2 of 8 FirstFirst 1234567 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.