Page 1 of 24 1234567891011 ... LastLast
Results 1 to 20 of 479

Thread: PLI - Oztivo SQLITE EPG Plugin Script *NEW*

  1. #1
    Senior Member nfnovice's Avatar
    Join Date
    Jan 2008
    Posts
    1,430
    Thanks
    261
    Thanked 336 Times in 213 Posts
    Rep Power
    282
    Reputation
    1840

    Default PLI - Oztivo SQLITE EPG Plugin Script *NEW*

    Ok here is an updated script 17/06/2008 which will satisfy the new oztivo requirements ( see here )


    Previous versions of this script and discussions were here..


    WHATS NEW
    *********
    - New oztivo web site - now (minnie.tuhs.org shuts down xmltv 30 June)
    - Introduced local server for multiple dreamboxes - one dm can download from oztivo - other local boxes can get from that one
    - Errors on some channels fixed - coding upgrade
    - Ppanel for access to some information - info only - check out blue button/installed ppanels /oztivo
    - debug messages upgraded - debug=3 is about right for me but debug=0 is silent and debug=5 talks more than vossy at the footy
    **********
    I have tested using CIFS on external mount for dm5620 and a dm600 to a 7000 smb server
    also for internal usb or hard drive on DM7000
    Other users have reported it works on NFS to linux box and CIFS to Winxp.

    The prerequisites are
    1. pli image (helenite or later - preferably iolite)
    2. epg set to sqlite under settings
    3. sqllite epg plugin downloaded

    Warning ** will overwrite earlier version ***
    If you have an earlier version and want to keep your channel mapping file (/var/tuxbox/config/dbepg/oztivo_au.dat)
    - make sure you save a copy of yours and put it back after install because this will overwrite it.

    Warning ** will overwrite earlier version ***
    Install will overwrite your last configs (oztivo_au.txt and oztivo_au.cfg)
    If you dont need the local server stuff then your previous config will be ok
    But remember to change oztivo web address for new site

    To Install
    Attached file should go in your dbox /tmp directory and then manual install.

    After install oztivo_au then make changes to

    /var/tuxbox/config/dbepg/oztivo_au.txt - config for my script - must be unix format (dos2unix if needed)
    - put your oztivo user name and password on line indicated must be
    Code:
    UserName:password
    - if necessary change your cache directory to suit - script will create it eg /var/epgcache mine goes on my usb stick /media/usb/epgcache

    ****************************************
    ***NEW******
    LOCAL SERVER FOR MULTIPLE DREAMBOXES LOCAL CLIENTS****
    - if you want a local server for other dreamboxes set these in your oztivo_au.txt on local server which connects to oztivo
    - set server=Y and set serverdir (eg serverdir=/media/usb/epgserver) on local server which connects to oztivo
    - if you have previously installed and run oztivo_au it would pay to clean out your epgcache directory to start server immediately
    Code:
    protocol=http://
    user=UserName:password
    www=www.oztivo.net/xmltv/
    server=Y
    serverdir=/media/usb/epgserver
    - on local clients which connect to local server you need to change a few lines in oztivo_au.xt on client
    - (eg to match server example above on ip 192.168.1.1)
    Code:
    protocol=ftp://
    user=root:dreambox
    www=192.168.1.1/media/usb/epgserver/ 
    server=N
    serverdir=notused
    ***NEW******
    *****************************************

    /var/tuxbox/config/dbepg/oztivo_au.cfg - plugin config file
    - leave offset at 0 if timezone is right on your box
    - check your epg.db location directory - the plugin sets this if you go to that screen and hit DONE (blue)
    - change number of days (oztivo is good for 3 - but up to 6 or 7 on some channels)

    /var/tuxbox/config/dbepg/oztivo_au.dat - channel mapping file - my mappings
    (if you have issues, you could copy your existing channel mapping file oztivo_au.dat)
    (if you still have issues, empty the file and let the script add the channels to it again)
    (once they are added you will need to map channels and run script again to download)

    remember oztivo username and password are case sensitive
    chmod 755 /var/bin/oztivo_au.sh (in case I forgot when I made tar.gz)

    epg location can be found under webif/boxcontrol/settings down the bottom under EPG cache path (see SQLIte store)

    I still recommend running this from telnet
    Quote:
    cd /var/bin
    ./oztivo_au.sh
    then watch the output
    first run will add a bunch of channels if you had an empty channels file

    if it works there test it with using yellow button / sqlite epg plugin
    if it works there - then setup to use cron - middle of the night

    As mentioned I have included a channel mapping file - although I dont know how personal these are - like whether they are tied to my bouquets or not.
    your mileage may vary here. If it dont work - clean out the oztivo_au.dat to an empty file - it must exist

    What does the script do you ask ?
    1. read my custom config /var/tuxbox/config/dbepg/oztivo_au.txt
    2. read plugin config /var/tuxbox/config/dbepg/oztivo_au.cfg
    3. if the epgcache directory does not exist it creates it
    4. if the epgcache does exist - it cleans out old dated files so it is always current
    5. if this machine is a server (server=y)and the epgserver directory does not exist it creates it
    6. if server and the epgserver does exist - it cleans out old dated files so it is always current
    7. it gets datalist.xml.gz from server(oztivo) and gunzips it
    8. it creates a temporary file with no spaces from that data
    9. it then reads that temp file line by line
    10. for each channel it checks your channel file (oztivo_au.dat)
    11. if the channel is not in your file it adds it to that file if learnchnls=Y and sets it to UNKNOWN (learnas value)
    12. if the channel is in your file and is not mapped it ignores that channel
    13. if the channel is in your file and is mapped it looks for data for that channel (still in datalist.xml.gz)
    14. if it finds data is available for a date
    - if that date is in the past it is ignored
    - if that date is further forward than you want (days in oztivo_au.cfg) it is ignored
    - if the date is between today up to $days ahead AND you dont have the data OR it has been modified it gets the data for you
    15. if it gets the data it downloads the channel date file (wget) gunzips it and then db_epg adds the data to your epg
    16. it then deletes the downloaded file (cleanup=Y)
    17. it writes an empty file to your epgcache directory in the format datafordate_channel_modified
    18. it reads through the whole temporary file and then deletes it at the end

    Something like that anyway - Its http caching from the unix shell

    Happy to hear feedback
    New plugin is here

  2. The Following 3 Users Say Thank You to nfnovice For This Useful Post:

    jamisiah (23-08-09),riadmelb (03-12-09),zooma (30-11-10)



Look Here ->
  • #2
    Senior Member Decapper's Avatar
    Join Date
    Jan 2008
    Location
    Your mothers house
    Age
    52
    Posts
    1,026
    Thanks
    119
    Thanked 127 Times in 79 Posts
    Rep Power
    245
    Reputation
    617

    Default

    Mate you are a true legend!



    that usb drive is a great idea... No wind up on HDD... It seems so simple
    Last edited by Decapper; 18-06-08 at 08:11 PM. Reason: adding Simple me

  • #3
    Senior Member Vic's Avatar
    Join Date
    Jan 2008
    Posts
    914
    Thanks
    68
    Thanked 267 Times in 154 Posts
    Rep Power
    255
    Reputation
    1304

    Default

    Well done mate.
    Not getting any epg on a few channels eg disney any idea why???
    Edit:
    Worked out why the channel is not mapped in the dat file
    Last edited by Vic; 18-06-08 at 10:28 PM.

  • #4
    Senior Member oyama's Avatar
    Join Date
    Jan 2008
    Location
    SA
    Age
    59
    Posts
    662
    Thanks
    305
    Thanked 286 Times in 85 Posts
    Rep Power
    247
    Reputation
    1399

    Thumbs up

    Well done mate
    1x Dm7000, 2x Dm500 SD
    11-11-11 - NOW PoxBox
    ------------------------

  • #5
    Senior Member

    Join Date
    Jan 2008
    Location
    Location, Location
    Posts
    4,054
    Thanks
    1,170
    Thanked 930 Times in 532 Posts
    Rep Power
    418
    Reputation
    4290

    Default

    nice one champ

  • #6
    Senior Member Decapper's Avatar
    Join Date
    Jan 2008
    Location
    Your mothers house
    Age
    52
    Posts
    1,026
    Thanks
    119
    Thanked 127 Times in 79 Posts
    Rep Power
    245
    Reputation
    617

    Default

    Have you tried this over server over the internet? If its worth it does dyndns work instead of IP address?

  • #7
    Senior Member Vic's Avatar
    Join Date
    Jan 2008
    Posts
    914
    Thanks
    68
    Thanked 267 Times in 154 Posts
    Rep Power
    255
    Reputation
    1304

    Default

    Well done mate.
    Not getting any epg on a few channels eg disney any idea why???
    Last edited by Vic; 20-06-08 at 11:47 AM.

  • #8
    Senior Member urban_s0ulja's Avatar
    Join Date
    Jan 2008
    Location
    South East Asia
    Posts
    4,068
    Thanks
    380
    Thanked 510 Times in 330 Posts
    Rep Power
    379
    Reputation
    2276

    Default

    hey guys
    any chance of this working with nabilosat *love* ??

  • #9
    Senior Member nfnovice's Avatar
    Join Date
    Jan 2008
    Posts
    1,430
    Thanks
    261
    Thanked 336 Times in 213 Posts
    Rep Power
    282
    Reputation
    1840

    Default only works with SQLIte EPG

    Quote Originally Posted by urban_s0ulja View Post
    hey guys
    any chance of this working with nabilosat *love* ??
    This script only works with SQLite EPG - Pli has that option
    I havent played with Nabilosat for a while - if it only has enigma epg - then it wont work

  • #10
    Senior Member nfnovice's Avatar
    Join Date
    Jan 2008
    Posts
    1,430
    Thanks
    261
    Thanked 336 Times in 213 Posts
    Rep Power
    282
    Reputation
    1840

    Default

    [QUOTE=Vic;59183]
    Quote Originally Posted by Vic View Post
    Well done mate.
    Not getting any epg on a few channels eg disney any idea why???
    Is Disney Mapped on your system
    I mapped mine recently (possibly after I uploaded oztivo_au.dat)
    and I have full epg for disney now

  • #11
    Senior Member nfnovice's Avatar
    Join Date
    Jan 2008
    Posts
    1,430
    Thanks
    261
    Thanked 336 Times in 213 Posts
    Rep Power
    282
    Reputation
    1840

    Default

    Quote Originally Posted by Decapper View Post
    Have you tried this over server over the internet? If its worth it does dyndns work instead of IP address?
    Script uses all standard stuff
    It uses standard ftp port 21
    if you can punch that through your router it will work
    ip or dyndns ? - same thing you make it work through your router and it will go

  • #12
    Senior Member Vic's Avatar
    Join Date
    Jan 2008
    Posts
    914
    Thanks
    68
    Thanked 267 Times in 154 Posts
    Rep Power
    255
    Reputation
    1304

    Default

    Fixed that thanks.
    BTW any way to get rid of the unknown channels for good ie access31
    Last edited by Vic; 20-06-08 at 02:10 PM.

  • #13
    Senior Member nfnovice's Avatar
    Join Date
    Jan 2008
    Posts
    1,430
    Thanks
    261
    Thanked 336 Times in 213 Posts
    Rep Power
    282
    Reputation
    1840

    Default

    Quote Originally Posted by Vic View Post
    Fixed that thanks.
    BTW any way to get rid of the unknown channels for good ie access31
    If you delete them from your oztivo_au.dat file
    and then change learnchnls in oztivo_au.txt

    Code:
    learnchnls=N
    the script wont put them back
    Otherwise change them to ignore in mapping

    but then if new channels you do want come along - you wont get them either

  • #14
    Senior Member Vic's Avatar
    Join Date
    Jan 2008
    Posts
    914
    Thanks
    68
    Thanked 267 Times in 154 Posts
    Rep Power
    255
    Reputation
    1304

    Default

    Quote Originally Posted by nfnovice View Post
    If you delete them from your oztivo_au.dat file
    and then change learnchnls in oztivo_au.txt

    Code:
    learnchnls=N
    the script wont put them back
    Otherwise change them to ignore in mapping

    but then if new channels you do want come along - you wont get them either
    Thanks man you are a legend.
    Now if only other images supported sql light

  • #15
    Junior Member AJM's Avatar
    Join Date
    Jan 2008
    Posts
    173
    Thanks
    91
    Thanked 33 Times in 23 Posts
    Rep Power
    208
    Reputation
    229

    Default Using your script on DM7025

    Gidday nfnovice,

    Nice script. I've used it on my DM7025 to download & cache the XML but not the sqlite part.

    I've adapted Ambrosa's e2_loadepg.py to load data into the epg.dat enigma2 format... Ambrosa did a good job sussing out this format and it works well with only minor changes by me to change from SKY Italy to OzTivo. Ambrosa's stuff is documented here:


    I posted my modified version with your script over at PLi:


    cheers

  • #16
    Member pit5bul's Avatar
    Join Date
    Jan 2008
    Location
    Melbourne
    Posts
    331
    Thanks
    27
    Thanked 49 Times in 20 Posts
    Rep Power
    216
    Reputation
    326

    Default

    mate doing the ./oztivo_au.sh works but updating with yellow button and the cron job wont work for me..u think there is something i did wrong ?

  • #17
    Senior Member nfnovice's Avatar
    Join Date
    Jan 2008
    Posts
    1,430
    Thanks
    261
    Thanked 336 Times in 213 Posts
    Rep Power
    282
    Reputation
    1840

    Default

    Quote Originally Posted by pit5bul View Post
    mate doing the ./oztivo_au.sh works but updating with yellow button and the cron job wont work for me..u think there is something i did wrong ?
    Yellow Button then Yellow Button running under epg plugin will lok like it is just sitting there but is actually running. - I need to look see if I can get some feedback to the plugin.
    For cron - do you have cron installed ? can you see anything under 'crontab -l'

  • #18
    Senior Member nfnovice's Avatar
    Join Date
    Jan 2008
    Posts
    1,430
    Thanks
    261
    Thanked 336 Times in 213 Posts
    Rep Power
    282
    Reputation
    1840

    Default

    Quote Originally Posted by AJM View Post
    Gidday nfnovice,

    Nice script. I've used it on my DM7025 to download & cache the XML but not the sqlite part.

    I've adapted Ambrosa's e2_loadepg.py to load data into the epg.dat enigma2 format... Ambrosa did a good job sussing out this format and it works well with only minor changes by me to change from SKY Italy to OzTivo. Ambrosa's stuff is documented here:


    I posted my modified version with your script over at PLi:


    cheers
    Well done AJM - I dont have a 7025 but a mate has just ordered one
    be nice if we can combine into one plugin where choice of box runs appropriate sqlite load part either db_epg or loadepg.py
    will check out your stuff

  • #19
    Member pit5bul's Avatar
    Join Date
    Jan 2008
    Location
    Melbourne
    Posts
    331
    Thanks
    27
    Thanked 49 Times in 20 Posts
    Rep Power
    216
    Reputation
    326

    Default

    Quote Originally Posted by nfnovice View Post
    Yellow Button then Yellow Button running under epg plugin will lok like it is just sitting there but is actually running. - I need to look see if I can get some feedback to the plugin.
    For cron - do you have cron installed ? can you see anything under 'crontab -l'
    it says no crontab for root

  • #20
    Senior Member nfnovice's Avatar
    Join Date
    Jan 2008
    Posts
    1,430
    Thanks
    261
    Thanked 336 Times in 213 Posts
    Rep Power
    282
    Reputation
    1840

    Default

    Quote Originally Posted by pit5bul View Post
    it says no crontab for root
    Then go to
    Yellow button / EPG Config / choose oztivo
    down to run with cron - tick
    then press done - blue button
    and check crontab -l again

  • Page 1 of 24 1234567891011 ... LastLast

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •