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 3 of 3 FirstFirst 123
Results 31 to 38 of 38

Thread: Front Panel Icons Fixed.

  1. #31

    Title
    Moderator
    Join Date
    Jul 2010
    Posts
    4,684
    Thanks
    1,205
    Thanked 2,524 Times in 1,349 Posts
    save your time decompiling code, all the source code is available on github.

    https://github.com/OpenViX/enigma2
    Vu Ultimo4K, OpenViX 5.0, 8xdvb-c, 8xdvb-s2, 2xdvb-t2
    Vu Solo4K, OpenViX 5.0, 8xdvb-s2
    Dreambox DM900, OpenViX 5.0, 2xdvb-s2, 2xdvb-c/t2
    Terrestrial, Cable, Fixed 28.2e + Unicable2 LNB

  2. #32
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,858
    Thanks
    239
    Thanked 1,673 Times in 1,318 Posts
    Quote Originally Posted by rossi2000 View Post
    save your time decompiling code, all the source code is available on github.

    https://github.com/OpenViX/enigma2
    Except the code I want to see is the changes posted in post #2 to this thread.
    I already have the git repositories downloaded.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  3. #33
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,541
    Thanks
    6,517
    Thanked 9,224 Times in 6,287 Posts
    Search for
    Easy Python Decompiler v1.2.7z

  4. #34
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,858
    Thanks
    239
    Thanked 1,673 Times in 1,318 Posts
    Quote Originally Posted by abu baniaz View Post
    Search for
    Easy Python Decompiler v1.2.7z
    Except that seems to be a Windows-only build - which might not of much use to a Linux user like me....
    I'll try
    Code:
    https://github.com/gstarnberger/uncompyle
    or
    Code:
    http://ltops9.wordpress.com/2014/04/17/decompyle-a-great-python-dissasemblerdecompiler/
    Last edited by abu baniaz; 26-11-14 at 01:37. Reason: no live links please
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  5. #35
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,541
    Thanks
    6,517
    Thanked 9,224 Times in 6,287 Posts
    here you go.
    Attached Files Attached Files

  6. The Following User Says Thank You to abu baniaz For This Useful Post:

    birdman (26-11-14)

  7. #36
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,858
    Thanks
    239
    Thanked 1,673 Times in 1,318 Posts
    Here is a patch against the Enigma2 v1001 (== Apollo.096 == current) version of RecordTimer.py that implements the changes which Leader made (slightly different - it uses try/except to simplify the assignment lists of the original).

    This strikes me as doing the right thing in the right place, namely in getting the icon settings to be changed by the same code functions which actually start and stop recordings.
    It's been working fine., although it does also need to have the symbol set to 0 at boot-up, as otherwise it remembers teh last state (whcih might not be "off"). That can be done with a /etc/rcS.d script or, ideally, enigma2 should ensure that when it start up.

    Any chance of getting this included as part of the standard git code? (with the comments removed)
    RecordTimer.py.patch.zip

    (It's zip'ed, as the uploader seems to be unhappy with uploading a text file...)
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  8. #37

    Title
    Member
    Join Date
    Dec 2013
    Posts
    86
    Thanks
    30
    Thanked 9 Times in 8 Posts
    Quote Originally Posted by birdman View Post
    Here is a patch against the Enigma2 v1001 (== Apollo.096 == current) version of RecordTimer.py that implements the changes which Leader made (slightly different - it uses try/except to simplify the assignment lists of the original).

    This strikes me as doing the right thing in the right place, namely in getting the icon settings to be changed by the same code functions which actually start and stop recordings.
    It's been working fine., although it does also need to have the symbol set to 0 at boot-up, as otherwise it remembers teh last state (whcih might not be "off"). That can be done with a /etc/rcS.d script or, ideally, enigma2 should ensure that when it start up.

    Any chance of getting this included as part of the standard git code? (with the comments removed)
    RecordTimer.py.patch.zip

    (It's zip'ed, as the uploader seems to be unhappy with uploading a text file...)
    Hi Birdman,
    just looked at your patch and I tryed it that way when i wrote the code myself, but it wouldn't work h = int(f), cause on the f=open is looked as a complete file and not as a single character as I did myself think it would be looked at by the code the same as you are thinking here too, but when compiled and run it crashes out. That why I had to use all the if statements to get a integer. The code will just crash out if your patch is used.
    Last edited by Leader; 04-12-14 at 23:45.

  9. #38
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,858
    Thanks
    239
    Thanked 1,673 Times in 1,318 Posts
    Quote Originally Posted by Leader View Post
    Hi Birdman,
    just looked at your patch and I tryed it that way when i wrote the code myself, but it wouldn't work h = int(f), cause on the f=open is looked as a complete file and not as a single character as I did myself think it would be looked at by the code the same as you are thinking here too, but when compiled and run it crashes out.
    It's working fine for me (I had two simultaneous recordings running tonight and so I looked for the icon changing when the first stopped, and it did what we expect).
    And test scripts to see what happens if the file is empty, contains a non-numeric text, or contains multiple lines of text all work OK too. It just reads the first line, and if it isn't a number it ends up as 0.

    I did apply this patch to the git source code, rather than the decompiled code of the *.pyo file. When I did the latter my Graphical EPG data disappeared (no, I don't understand that at all either...)
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  10. The Following User Says Thank You to birdman For This Useful Post:

    Leader (05-12-14)

Page 3 of 3 FirstFirst 123

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.