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 1 of 3 123 LastLast
Results 1 to 15 of 34

Thread: How to automate CatsEye Settings

  1. #1

    Title
    Forum Supporter
    Donated Member
    Join Date
    Mar 2012
    Posts
    173
    Thanks
    11
    Thanked 42 Times in 22 Posts

    How to automate CatsEye Settings

    All,

    I have written a script to automate the install of the latest CatsEye Settings. The attached script does the following:

    Connects to the catseye website
    Gets file name of the latest update
    Pulls down the latest update (if required)
    Installs the bouquets onto the receiver
    Reloads the settings

    The script requires unrar to be installed on the receiver. This can be done by running:

    opkg install unrar

    The script should be placed in /usr/script/

    The script has editable variables so that it can be customized for other users.

    - Settings name (choose between 28.2E / 75E to 45W)
    - Working directory (default set to /hdd/CatseyeSettings/)
    - Web URL (In case it changes)
    - Bouquets directory (/etc/enigma2/ for the VU Duo)

    I am going to set the script up to run daily, shortly followed by running AutoBouquetsMaker. This way I have all the latest satellite settings for my motorised set up along with nicely laid out bouquet for SKY.

    I hope others find this useful :-)

    catseye_import.zip

  2. The Following 11 Users Say Thank You to afc_rich For This Useful Post:

    + Show/Hide list of the thanked

    abu baniaz (08-10-13),constant (13-10-13),cwebb66 (09-10-13),gerrykiddy (09-10-13),jim bob (07-11-13),maver (15-10-13),seame (14-10-13),Sicilian (09-10-13),tagteam3283 (16-01-14),tinbin300 (08-10-13)

  3. #2
    Larry-G's Avatar
    Title
    V.I.P
    Donated Member
    Join Date
    May 2010
    Posts
    32,542
    Thanks
    7,824
    Thanked 22,935 Times in 12,378 Posts
    Nice work. Im sure others wll use it.

    May i suggest as part of the update process you find a way of placing enigma into sleep mode first then wake it again once the new settings have been installed ??. This would remove a host of possible problems associated with loading a bouquet pack while enigma is awake.
    My posts contain my own personal thoughts and opinions, they do not represent those of any organisation or group but my own.

    If you don't like what I post, Don't read it.

    SIMPLES.

  4. #3
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,360
    Thanks
    6,441
    Thanked 9,160 Times in 6,235 Posts
    Great work. Like the fact that it only downloads if file is newer.

    Isn't unzipping natively suported in images? If so, what is the command to replace line 69? Many thanks.

  5. #4
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,360
    Thanks
    6,441
    Thanked 9,160 Times in 6,235 Posts
    Anyone know how to add this link to it and get past the captcha stage?

    http://www.vhannibal.net/download_setting.php?id=11

  6. #5
    Larry-G's Avatar
    Title
    V.I.P
    Donated Member
    Join Date
    May 2010
    Posts
    32,542
    Thanks
    7,824
    Thanked 22,935 Times in 12,378 Posts
    you cant, thats the principle reason why i stopped uploading them here as i'm not faffing about with capture rubbish.
    My posts contain my own personal thoughts and opinions, they do not represent those of any organisation or group but my own.

    If you don't like what I post, Don't read it.

    SIMPLES.

  7. #6

    Title
    Forum Supporter
    Donated Member
    Join Date
    Mar 2012
    Posts
    173
    Thanks
    11
    Thanked 42 Times in 22 Posts
    Quote Originally Posted by pheonix View Post
    Nice work. Im sure others wll use it.

    May i suggest as part of the update process you find a way of placing enigma into sleep mode first then wake it again once the new settings have been installed ??. This would remove a host of possible problems associated with loading a bouquet pack while enigma is awake.
    Pheonix, what do you mean by sleep mode? Do you mean shutdown Enigma2 and restart it? ( init 4, init 3)

    Are there known issues of loading a bouquet pack when Enigma2 is running? When you install from the feeds etc it seems to just load them seamlessly.

    Regards
    VU+ Duo - OpenVIX
    1M Aluminium Orbital Dish
    Technomate TM2600 Motor
    Inverto Ultra LNB

  8. #7

    Title
    Senior Member
    Join Date
    Mar 2013
    Posts
    622
    Thanks
    382
    Thanked 139 Times in 101 Posts
    Excellent work mate this is going to come in very handy.

  9. #8
    Larry-G's Avatar
    Title
    V.I.P
    Donated Member
    Join Date
    May 2010
    Posts
    32,542
    Thanks
    7,824
    Thanked 22,935 Times in 12,378 Posts
    Quote Originally Posted by afc_rich View Post
    Pheonix, what do you mean by sleep mode? Do you mean shutdown Enigma2 and restart it? ( init 4, init 3)

    Are there known issues of loading a bouquet pack when Enigma2 is running? When you install from the feeds etc it seems to just load them seamlessly.

    Regards
    Yes that's exactly what I mean and yes loading a bouquet while enigma is live can give you issues even from the feeds. Its not a problem but it would be a big improvement.

    Sent from my GT-I9300 using Tapatalk now Free
    My posts contain my own personal thoughts and opinions, they do not represent those of any organisation or group but my own.

    If you don't like what I post, Don't read it.

    SIMPLES.

  10. #9
    Rob van der Does's Avatar
    Title
    ViX Beta Tester
    Join Date
    Apr 2010
    Location
    The Netherlands & France
    Posts
    36,261
    Thanks
    1,720
    Thanked 9,461 Times in 6,675 Posts
    Also when installing settings from the feeds you sometimes get issues (like '<N/A>' on many services).

    Help asked via PM will be ignored.
    The forum is there for help and all will benefit from your questions.
    NO CARD SHARING TALK WILL BE TOLERATED, LAN OR WAN, IN OPEN FORUM OR PM !

    English is not my native tongue.
    I apologise for all my grammar, spelling and idiom errors.

  11. #10
    deleted
    Yep all correct, your lamedb file is overwritten by your new file you just downloaded, BUT when shutting down enigma2 it again overwrites lamedb with what was in memory.

    It would also be nice if the "Only update settingslist" from the update menu would shutdown enigma2, just like a regular update.

  12. The Following 2 Users Say Thank You to deleted For This Useful Post:

    afc_rich (14-10-13),Larry-G (14-10-13)

  13. #11
    Larry-G's Avatar
    Title
    V.I.P
    Donated Member
    Join Date
    May 2010
    Posts
    32,542
    Thanks
    7,824
    Thanked 22,935 Times in 12,378 Posts
    Quote Originally Posted by ocram View Post
    Yep all correct, your lamedb file is overwritten by your new file you just downloaded, BUT when shutting down enigma2 it again overwrites lamedb with what was in memory.

    It would also be nice if the "Only update settingslist" from the update menu would shutdown enigma2, just like a regular update.
    yes, this is why when i'm transferring bouquets to a receiver i always shut down enigma first then and only then commence the transfer and reboot once complete.
    My posts contain my own personal thoughts and opinions, they do not represent those of any organisation or group but my own.

    If you don't like what I post, Don't read it.

    SIMPLES.

  14. #12
    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
    at the request from Rob, i looked into this, and i can't see anything wrong, as the current code in software Update -> Update channels setting only.

    the code removes the old setting then installs the new ones, then it reads the new lamedb immediately. no need for init 4 or gui restart.


    Code:
    child has terminated
    pipes closed
    TEST 1
    TEST 3
    executing opkg remove enigma2-plugin-settings-catseye.23e.19e
    poll: unhandled POLLERR/HUP/NVAL for fd 74(16)
    KEY: 352 OK
    child has terminated
    pipes closed
    TEST 1
    TEST 4
    executing opkg install enigma2-plugin-settings-catseye.23e.19e
    poll: unhandled POLLERR/HUP/NVAL for fd 74(16)
    child has terminated
    pipes closed
    TEST 1
    TEST 5
    ---- opening lame channel db
    reading services (version 4)
    loaded 1667 services
    poll: unhandled POLLERR/HUP/NVAL for fd 74(16)
    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

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

    Larry-G (15-10-13)

  16. #13
    Rob van der Does's Avatar
    Title
    ViX Beta Tester
    Join Date
    Apr 2010
    Location
    The Netherlands & France
    Posts
    36,261
    Thanks
    1,720
    Thanked 9,461 Times in 6,675 Posts
    OK, so this is fine as it is atm. Good!

    However: that doesn't explain
    Quote Originally Posted by Rob van der Does View Post
    Also when installing settings from the feeds you sometimes get issues (like '<N/A>' on many services).
    This is an issue that occasionally happens on all images; it can easily be fixed by installing the same settings again.
    Last edited by Rob van der Does; 15-10-13 at 05:29.

    Help asked via PM will be ignored.
    The forum is there for help and all will benefit from your questions.
    NO CARD SHARING TALK WILL BE TOLERATED, LAN OR WAN, IN OPEN FORUM OR PM !

    English is not my native tongue.
    I apologise for all my grammar, spelling and idiom errors.

  17. #14
    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
    from how i understand how things work, it all depend on what satellites.xml was used to scan and create the lamedb, as those refs maybe no longer in ours and thus it can't find them.
    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

  18. #15
    deleted
    Quote Originally Posted by andyblac View Post
    at the request from Rob, i looked into this, and i can't see anything wrong, as the current code in software Update -> Update channels setting only.

    the code removes the old setting then installs the new ones, then it reads the new lamedb immediately. no need for init 4 or gui restart.


    Code:
    child has terminated
    pipes closed
    TEST 1
    TEST 3
    executing opkg remove enigma2-plugin-settings-catseye.23e.19e
    poll: unhandled POLLERR/HUP/NVAL for fd 74(16)
    KEY: 352 OK
    child has terminated
    pipes closed
    TEST 1
    TEST 4
    executing opkg install enigma2-plugin-settings-catseye.23e.19e
    poll: unhandled POLLERR/HUP/NVAL for fd 74(16)
    child has terminated
    pipes closed
    TEST 1
    TEST 5
    ---- opening lame channel db
    reading services (version 4)
    loaded 1667 services
    poll: unhandled POLLERR/HUP/NVAL for fd 74(16)
    Then it will work OK, I presumed that because it didn't shutdown enigma2 it would just replace it and that would be all, but if it reads in the new file that's OK also.

    Is there any way to force a read in of lamedb from commandline?

Page 1 of 3 123 LastLast

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.