Bouquets downloadable via Plugin or Script

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RuberDuck
    Banned
    • Sep 2010
    • 1724

    #16
    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; 7 February, 2011, 12:01.

    Comment

    • RuberDuck
      Banned
      • Sep 2010
      • 1724

      #17
      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

      ================
      Attached Files
      Last edited by RuberDuck; 8 February, 2011, 00:22.

      Comment

      • RuberDuck
        Banned
        • Sep 2010
        • 1724

        #18
        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
        Attached Files

        Comment

        • girovend
          Top Poster
          • Sep 2008
          • 158

          #19
          Anything for enigma 1 yet

          Comment

          • reddevil157
            DK Veteran
            • Jan 2010
            • 1427

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

            Comment

            • RuberDuck
              Banned
              • Sep 2010
              • 1724

              #21
              Originally posted by girovend
              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

              Comment

              • RuberDuck
                Banned
                • Sep 2010
                • 1724

                #22
                Originally posted by reddevil157
                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.

                Comment

                • jfish
                  DK Veteran
                  • Sep 2008
                  • 799

                  #23
                  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:[email protected]/cgi-bin/reloadSettings
                  wget -qO - http://root:[email protected]/cgi-b...adUserBouquets
                  rm -rf /var/etc/ver.txt
                  mv /tmp/remotever.txt /var/etc/ver.txt
                  else
                  exit;
                  fi
                  Attached Files
                  Last edited by jfish; 8 February, 2011, 23:23.

                  Comment

                  • rossi2000
                    Junior Member
                    • Jun 2010
                    • 37

                    #24
                    nice way to check if downloads needed jfish, thx

                    Comment

                    • SGTFlipFlop
                      V.I.P. Member
                      • Sep 2009
                      • 1002

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

                      Comment

                      • jfish
                        DK Veteran
                        • Sep 2008
                        • 799

                        #26
                        Originally posted by SGTFlipFlop
                        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
                        Last edited by jfish; 10 February, 2011, 17:50.

                        Comment

                        • jfish
                          DK Veteran
                          • Sep 2008
                          • 799

                          #27
                          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
                          Last edited by jfish; 13 February, 2011, 18:21.

                          Comment

                          • SGTFlipFlop
                            V.I.P. Member
                            • Sep 2009
                            • 1002

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

                            Excellent work again jfish

                            Comment

                            • jfish
                              DK Veteran
                              • Sep 2008
                              • 799

                              #29
                              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.

                              Comment

                              • jfish
                                DK Veteran
                                • Sep 2008
                                • 799

                                #30
                                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

                                Comment

                                Working...