Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17

Thread: How do I create a plugin?

  1. #16
    pooface's Avatar
    Title
    V.I.P
    Join Date
    Jun 2010
    Posts
    9,731
    Thanks
    1,904
    Thanked 4,791 Times in 1,951 Posts
    Quote Originally Posted by nezzeo View Post
    The script now has evolved into a button thats listed under the plugins. When clicked it downloads my latest bouquets/services from some personal webspace, replaces the current ones, tidies up after itself and reboots the box for the changes to take effect (ideally I'd like it so that it just restarts Enigma instead) but no luck with that so far.
    Congrats in to getting the script finished

    As for getting it to just restart enigma not the whole box, issue the following command:

    Code:
    killall -9 enigma2
    You might get occurrences where the sound does not come with the picture, but if you just change channel, then it will come back...

    hth
    Rules can be found HERE
    Support our sponsor, World-Of-Satellite HERE
    Follow us on Twitter HERE
    -----
    Vu+ Ultimo (ViX Beta), Vu+ Solo (ViX Beta), CT ET9000 (ViX Beta)
    Dark Motor Superior with Inverto Ultra Black Twin LNB
    85cm Gibertini Aluminium Dish

  2. The Following User Says Thank You to pooface For This Useful Post:

    nezzeo (09-11-10)

  3. #17
    andyblac's Avatar
    Title
    Administrator
    Donated Member
    Join Date
    Apr 2010
    Posts
    12,699
    Thanks
    2,607
    Thanked 11,096 Times in 4,733 Posts
    Quote Originally Posted by nezzeo View Post
    I got past this in the end, problem was my script had some funky ^M chars on the end of each line.

    I've finished my script, except for any minor tweaks along the way.
    The script now has evolved into a button thats listed under the plugins. When clicked it downloads my latest bouquets/services from some personal webspace, replaces the current ones, tidies up after itself and reboots the box for the changes to take effect (ideally I'd like it so that it just restarts Enigma instead) but no luck with that so far.

    The reason for this script? I have a couple of friends with boxes, completely non-technical that I dont fancy visiting only to ftp over my latest files every time sky decide to move a chan or 2. Instead they click a button and job done!
    is it a enigma2 plugin ?, if so execute this command,

    place this in the top of the plugin
    Code:
    from Screens.MessageBox import MessageBox
    place at the end of you current def:
    Code:
            message = 'GUI needs a restart to apply the changes !!!\nDo you want to restart GUI now ?'
            ybox = self.session.openWithCallback(self.restBox, MessageBox, message, MessageBox.TYPE_YESNO)
            ybox.setTitle('Restart box.')
                        
        def restBox(self, answer):
            if answer is True:
                self.session.open(TryQuitMainloop, 3)
            else:
                self.close()
    it will poup a message box asking do you want to restart gui
    D I S C L A I M E R
    My right to post information is protected under the rights for freedom act. In all instances, information discussed here on my posts are either hypothetical in nature, out of general curiosity, common knowledge, public knowledge, or role-play. Any use of the collective descriptions and shared knowledge from any of my posts are at the sole discretion of the reader. I am not responsible for what you do with it!

    Release notes can be found in the About screen by pressing epg/info
    Rules can be found HERE - Support our sponsor World-Of-Satellite HERE

  4. The Following User Says Thank You to andyblac For This Useful Post:

    nezzeo (15-11-10)

Page 2 of 2 FirstFirst 12

Tags for this Thread

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.