Bouquets downloadable via Plugin or Script

Collapse
This is a sticky topic.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ziggycat
    Member
    • Nov 2009
    • 52

    #91
    Was going to code something like this myself, so thanks to jfish and everyone else who worked on this.

    Have this running nicely, using a AWS EC2 instance to host the bouquet files. DM500s runing PLI image, setup to use the yellow button to execute the script (and cron to run every 30 days).

    Originally posted by hatchet
    How would i change the script to upload cable bouquets and not sat ones?

    Ta.
    modify the script to copy the bouquet files to ==> /var/tuxbox/config/enigma/cable/
    Last edited by ziggycat; 25 March, 2012, 15:33.

    Comment

    • hatchet
      Top Poster
      • Jul 2008
      • 159

      #92
      As soon as i edit the file with the link to the url ( which is correct ) the script doesn't execute...

      How is that?

      Comment

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

        #93
        Originally posted by hatchet
        As soon as i edit the file with the link to the url ( which is correct ) the script doesn't execute...

        How is that?
        Have you chmod the file after you editted it?

        Comment

        • forbezy2010
          Newbie
          • Jul 2010
          • 12

          #94
          hey peeps n scripters
          can some one please rite a script for
          me for me dm500c (cable box)
          ive tried to edit the ones been posted
          but im lost
          please

          Forbezy

          Comment

          • hatchet
            Top Poster
            • Jul 2008
            • 159

            #95
            Originally posted by SGTFlipFlop
            Have you chmod the file after you editted it?
            Yes mate, ive even tried changing it to the link you sent me via PM and it refuses to execute

            Any ideas?

            Comment

            • ziggycat
              Member
              • Nov 2009
              • 52

              #96
              Originally posted by hatchet
              Yes mate, ive even tried changing it to the link you sent me via PM and it refuses to execute

              Any ideas?
              here's a cut down version of the script, give it a try.

              Code:
              #!/bin/sh
              # script to download latest channels lists
              # Jfish 1 Feb 2011
              
              pass="dreambox" # <== change this to your dreambox password (default is 'dreambox')
              ebq="e1.tar.gz" # <== your (compressed) bouquet list
              url="blah.blah.net" # <== your server 
              
              checkhost () {
              test=`ping -c 1 $url`
              [ "$?" -eq 0 ] || exit 1
              }
              
              download () {
              mkdir /tmp/bq
              cd /tmp/bq
              wget "http://$url/$ebq" 
              }
              
              extract () {
              chmod 755 /tmp/bq/$ebq
              tar -xzvf $ebq > /dev/null 
              rm -rf /var/etc/satellites.xml
              mv /tmp/bq/satellites.xml /var/etc/
              cd /var/tuxbox/config/enigma/cable
              rm -rf *.tv
              rm -rf *.epl
              rm -rf *.radio
              rm -rf *bak
              rm -rf bouquets
              rm -rf services
              rm -rf services.locked
              mv /tmp/bq/* /var/tuxbox/config/enigma/cable/
              rm -rf /tmp/bq
              }
              
              reload () {
                wget -qO - http://root:"$pass"@127.0.0.1/cgi-bin/reloadSettings  
                wget -qO - http://root:"$pass"@127.0.0.1/cgi-bin/reloadUserBouquets
              }
              
              checkhost # can we successfully ping our server ?
              download # download our compressed bouquet
              extract # copy bouquet files
              reload # reload bouquet files

              Comment

              • pk24
                Newbie
                • Jul 2009
                • 2

                #97
                this looks great , but where do you get the url to grab the files , I usually use sgtflipflops bouquets grabbed from here but not sure what url to put in to the script to auto update ... can anyone help


                thanks in advance

                Comment

                • del_piero_3
                  Newbie
                  • Mar 2010
                  • 12

                  #98
                  Originally posted by jfish
                  another update

                  this includes function to reload engima 2 bouquets
                  The script wont run the moment I change the URL, done CHMOD 755 on file. If I leave the URL as it is (kryten.dyndns.info), it will execute fine. My URL via web browser works fine.....am just lost....

                  Code:
                  Execution Progress:
                   
                  /bin/sh: usr/script/channelrefresh.sh: not found
                  Execution finshed!!
                  Last edited by del_piero_3; 18 April, 2012, 23:11.

                  Comment

                  • a8ree
                    Junior Member
                    • Nov 2010
                    • 31

                    #99
                    Has anyone managed to update this script to download SgtFlipFlops latest Multi sat each time?

                    Comment

                    • jfish
                      DK Veteran
                      • Sep 2008
                      • 799

                      #100
                      Originally posted by del_piero_3
                      The script wont run the moment I change the URL, done CHMOD 755 on file. If I leave the URL as it is (kryten.dyndns.info), it will execute fine. My URL via web browser works fine.....am just lost....

                      Code:
                      Execution Progress:
                       
                      /bin/sh: usr/script/channelrefresh.sh: not found
                      Execution finshed!!
                      I am suprised it even connects to that hostname, as its been down for a while now and since I re did my servers at home and due to other stuff never had time to update script again

                      Comment

                      • thospot
                        Newbie
                        • Jan 2009
                        • 18

                        #101
                        hi lads first thanks for the script it works ok with my technomate 500 but the script wont work with my dreambox 500s ,i have pli jads3 image on my dreambox. any ideas what i might be doing wrong .

                        Comment

                        • Jo-Jo
                          DK Veteran
                          • Jul 2009
                          • 511

                          #102
                          i have had a script work now for a while using yellow button and executing the script to download a channel list hosted on private web space although just wondering if the script can be executed every reboot of the box ?

                          this is the script i use

                          Code:
                          #!/bin/sh
                          set -x
                          exec > /var/script/Enigma1_Bouquet_Update.log 2>&1
                          #DESCRIPTION=Downloads, Installs & Reloads the latest Enigma1 Bouquets.
                          
                          #Change the URL to point to your Bouquet zip file
                          BQ="http://privatewebspace.tar.gz"
                          
                          cd /tmp/
                          
                          wget $BQ
                          chmod 755 /tmp/enigma1.tar.gz
                          tar -xzvf enigma1.tar.gz
                          
                          cd /tmp/enigma1
                          rm -rf /var/etc/satellites.xml
                          mv /tmp/enigma1/satellites.xml /var/etc/
                          
                          cd /var/tuxbox/config/enigma/
                          rm -rf *.tv
                          rm -rf *.radio
                          rm -rf *.epl
                          rm -rf bouquets
                          rm -rf services
                          rm -rf services.locked
                          
                          mv /tmp/enigma1/* /var/tuxbox/config/enigma/
                          
                          rm -rf /tmp/enigma1
                          rm -rf /tmp/enigma1.tar.gz
                          
                          #wget -q http://root:[email protected]/cgi-bin/reloadUserBouquets
                          reboot
                          and also have a config file

                          Code:
                          name=Enigma1 Bouquet Update
                          desc=
                          depend=
                          type=3
                          needfb=0
                          needrc=0
                          needlcd=0
                          Last edited by Jo-Jo; 2 August, 2012, 03:31.

                          Comment

                          • ASTROBOX
                            DK Veteran
                            • Jun 2010
                            • 163

                            #103
                            Originally posted by forbezy2010
                            hey peeps n scripters
                            can some one please rite a script for
                            me for me dm500c (cable box)
                            ive tried to edit the ones been posted
                            but im lost
                            please

                            Forbezy
                            Bro check this link


                            u need to edit the below in .sh script for it to work for cable box, I'm using 500C for SG use
                            rm -rf /var/etc/cables.xml
                            mv /tmp/enigma1/cables.xml/var/etc/
                            cd /var/tuxbox/config/enigma/cable/
                            mv /tmp/enigma1/* /var/tuxbox/config/enigma/cable/

                            Hope this can help u

                            Comment

                            • peds1988
                              Newbie
                              • Jan 2010
                              • 1

                              #104
                              hi guys,

                              I keep getting an error when I run the script, it keeps saying tar: invalid number ' 10141 ' ?

                              can anyone shed any light on this?

                              Comment

                              • sully085
                                Newbie
                                • Aug 2014
                                • 1

                                #105
                                hi lads I know this is an old tread but I always had my e1 bouguets downloading from dropbox but think its an error fro http to https has anyone got this from dropbox wget: not an http or ftp url: https://dl.dropboxusercontent.com/u/...xx/file.tar.gz
                                and if so do anyone know good http server that host .tar.gz files .cheers

                                Comment

                                Working...