View Full Version : myTV - TV-Guide script, with pluginsnew script
BigBellyBilly
2005-06-12, 20:23
mytv
ok. this started of as a simple idea "i'll recreate a sky style tv guide for xbmc ..." which, probably cos its only my 3rd ever script, took me longer than i imagined.
it was originally written to just use data from bleb.org, but inspired by the modular approach demonstrated by scripts such as ooba and flexibrowser, i rewrote it to allow the data to be collected from any source by the use of your own data source module.
as it happens i prefer the data that comes from radiotimes, but i've included both bleb and radiotimes datasources modules, with the package defaulting to using radiotimes.
this script displays the collected data in sky timeline horizontal bar layout, but also allows direct navigation by using 3 lists. channel / day / time.
theres usage instruction in a readme file in the package (and in script header). the readme also gives details on how to write a datasource module. if you've got a site that you'd like me to have a ago at writting a datasource module for, let me know, i might just do it for you.
hopfully, its releativly bug-free (does such a thing exist?), but if its not i can blame my beta tester mates for that ;). mail me i'll endevour to put things right.
so, if you've read this far, you can find it at
xbmcscripts (http://www.xbmcscripts.com/) (once made available by the site hosts - sometime over the weekend maybe?).
cheers
bbb
ps. please use v1.01 (when added to site)
XBoxgeek
2005-06-12, 22:36
great script. well done :thumbsup:
brilliant script.
hope you don`t mind i`ve changed the colour scheme to match the default skin.
http://www.b4tm4n.pwp.blueyonder.co.uk/files/mytvscreenshot003.jpg
thanks b4tm4n.
looks cool - will have to give it a go !
does it match the pm3 skin ?
i think so, what do you think ?
yes - it does, sorry ;-) missed that.
could only get version 1 from xbmc scripts, and am getting some random hangs (nothing in error logs unfo.) - but its a really cool all in one script, rather than having to run things on the host gateway eg..
just some ideas... :bowdown: - after a 1st look...
how about an autostart script that checks if online, and background dowloads the tv listings ?, it might just be that i was using for the 1st time tho.. (or just background downloading when running ?)
the program info is really cool - but how about it appearing in a standard dialog box ? - i guess it depends on skin etc..
well, i think tomorrow i'll be changing my homescreen to get this to run from the menu rather than go through scripts :)
cool script !! congrats !!
BigBellyBilly
2005-06-13, 01:06
b4tm4n,
i've no objection to anyone creating their own skin. i can understand trying to maintain the pmiii look n feel, but i just wanted to throw a bit of colour in, which is why i took the orange theme (as per the radiotimes site).
the blue buttons are obviously from the sky bars, if anything you might want to brighten up the 'focus' button to make it more distinctive.
not sure what the norm is for releasing alternative skins. should i include it as part of the default mytv package. or do they get seperate releases, then ppl can take their pick ?
anyway. glad you liked the script. i'm hoping to add some new features when i get back from holiday. eg interactive channel manager and some other stuff.
the *'focus' button looks alot better on screen when its flashing.
look forward to new features when you get back.
cheers b4tm4n.
wow man looks great!! im at work right now so i cant test it on my box, couple questions for ya though. is this a uk tv script only? or will this work for us yanks too :) if not i was wondering if you could add support for zap2it.
http://tvlistings2.zap2it.com/zipcode.asp?partner_id=national
first you put in your zip then you select your provider. that way you get the correct listings if you have cable or satelite etc etc.
:kickass:
BigBellyBilly
2005-06-13, 17:06
if you can access the tv listings from the site (html scrape or xml ...) then it should be ok for you.
give me a valid zip code so i can have a look at the site.
do you know if it offers xml etc ?
im pretty sure it has xml. here is my zip for ya ;) 95928 if you could get this to work that would be great. it would take care of everyone in the states. we have zero tv guide scripts (except for the xml tvguide). like i said a menu that would allow you to input your zip then pick from a list of local providers would be soo damn cool :kickass:
BigBellyBilly
2005-06-13, 17:56
whats your provider ?
BigBellyBilly
2005-06-13, 19:23
ok, as a registered user of the direct data feeds that zap2it provides, and there are already python functions that will fetch the data, its just a matter of interpretting the data into channels and programmes.
i'm going on holiday for a couple of weeks so it'll have to wait, but if anyone a way of interpretting the xml data already, please let me know.
solexalex
2005-06-13, 19:35
just a question before trying it and try to add a french tv program ;
is there a reason for hard setting your home path for the script ?
because i use the os.getcwd() command to get the actual path where the script launch...
ok, now i'm going to try it and to adapt a french data source.
see ya
BigBellyBilly
2005-06-13, 21:34
solexalex, no theres technical reason, but i did want it to use mytv as its home dir.
if you write a data source, it must go in the sub folder mytv\datasource.
if you get one written and send me it, i could always include it in the default package?
feel free to mail me if you want some help.
XBoxgeek
2005-06-13, 22:07
i have an issue when running in 720p
http://xig.xboxgeek.com/images/20050613195904.jpg
as you can see the info panel does not scale. other scripts that use the default panels in pmiii display okay (like the lyrics script).
hope you can fix it :thumbsup:
just tried the v1.1 - cool :bowdown: no issues that i can find ! - still need to edit the channel list (only got freeiew) but that should be easy!, and coz the change below - some slight layout issues...
ive changed the skin for background and panel to sort of match the pm3 skin - it aint perfect, but it does the trick ! (pm me if you want a copy to include in the script pack - but it aint that good - honest !) :nod:
although saying that - an identical replica of the sky interface woud be nice ;-)
i'd love for this to be able to hook into my tv card, would be great if when looking at the programe info - there is a button to press (say yellow), which can generate a text file with certain parameters which will be able to be picked up by a script (dabdig) running on my host pc (after being ftp' d there obviously!), anyway, thats another discussion ! - perhaps as this is only you're 3rd script, i can tempt you with perhaps a 3.5 ? :thumbsup:
thanks !!!
BigBellyBilly
2005-06-14, 11:03
i've got v1.02 about to be released, 720p is one of the things i've fixed.
i've also done a pmiii skin, but i'll also be including the original as well, for those that like a bit more colour ;) see what you thing of this effort when you get it. i'm no graphic artist. i could do with a better mytv logo actually.
the channel list order has been edited to be the the same as the order on a freeview box.
i've some ideas for additional features, you never know, but i want this initail release to settle down (bugs) before adding any new features.
hoping to upload new ver. it to xbmcscripts today.
bigbellybilly heres (http://www.b4tm4n.pwp.blueyonder.co.uk/files/mytvbackground.rar) a link to my pmiii lookie likie graphics, just incase you want to use them.
cheers b4tm4n.
ps. looking forward to v1.02
BigBellyBilly
2005-06-14, 16:16
v1.02 uploaded to xbmcscripts, should appear shortly.
change summary:
fixes some date/time/list bugs.
improved 720p support.
pmiii skin (original still incl)
uses std skin popup as ovelay panel.
other minor improvments.
note on channel/list navigation. a fix has been submitted by one of the devs to correct the 'move right' off lists. when new builds appear with that included, list navigation will be more intutive. until then moving left is the only way to move between lists.
b4tm4n: thanks for having ago at a pmiii skin, but i've decided to use my own.
if anyones graphically capable, a nice shiney logo and matching splash would be really appreciated.
some ideas on the drawing table:
interactive channels editor
azureus, so it'll set a regex filter to capture selected programme via a bt plugin. (maybe)
xmltv parsing (another maybe)
i'm going away on my hols from tomorrow, so will check in when i can (if the missus lets me...)
thanks to my beta testers evchong and evilhomeruk - without you - i'd have finished a lot quicker (lol)
hi, sorry mind working overtime. on a similar thought to my previous one..
dabdig script can run on my home pc to interact with my nebula digitv card, but on the xbox – in mytv - once a popup window with the prog info in is open.. is it difficult to extract from the data (say on a pre selected button press) the following info : -
"rec" "channel name" "number" "programme name" "year" "date" "month" "hour" "minute" "duration"
i.e. record bbc1 1 (prog name) on 14/06/2005 at 15:45 for 60 minutes .
and then save to a text file ? – i may have a play this weekend and see what i can come up with… but any guidance would be appreciated !
enjoy the hols!
BigBellyBilly
2005-06-14, 18:03
yes, i store that data in the programme class. see the library.py
that would be possible. where would you want the text file writting to? the cache, a new folder or smb drive location ?
honestly, not sure for the mo.. depends on how i could get said text file to the host pc, weather the host is scheduled to check a folder on the xbox hdd, or if perhaps after generating the file it could be ftp'd to the host, i know the torrent browser script has an option to ftp, i`d have to have a think..
either way, id have to interact with a scheduled batch file on the host... *;)
oh - forget ftp....smb location if possible :-)
just a thought but that would be a really cool feature to go along with that p2p tv thing that people have been talking about. i guess it is based on python so once some really cool scripter made an xbmc interface you could use your script to see when something plays then schedule to record it :kickass:
http://www.xboxmediaplayer.de/cgi-bin....t=13083 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=22;t=13083)
:d would be a nice idea, but im not sure a 1 1/2 gig an hour for tv would be an interesting share !.
perhaps it would be easier to adapt perhaps the torrent browser script to look at eg. a tv torrent site..
anyway, hopefully with some help from bigbellybilly on the tv script- i'll put together a guide on the various parts as the digdab script (not mine btw - all credit to paul webster) as can run multiple tv cards etc...
well, assuming it works :joker:
:thumbsup:
XBoxgeek
2005-06-15, 00:46
is there anywhere else to get the 1.02 version. it's not up on xbmcscripts eventhough you up loaded it 8 hours ago :thumbsup:
i guess the guys running the site need to check it first then publish it?
cheers
BigBellyBilly
2005-06-15, 03:02
just as v1.02 appeared a friend found a minor bug in it. typical!. *it seems the triggers repeated causing the pages to flip too many times.
i've fixed it and upload v1.03. i have no control over when it appears, but hey, its a free service for us all, cheers lads.
i've also reverted to using the official way of navigating on/off lists using the controlleft & controlright functions. *today a dev fixed the bug that the controllists had (many thanks again to him) - but until that patch appears in the xbmc builds, the lists navigation will seem odd. *ie you have to move left to go between them.
i changed over to this method as my way of using an index to set focus had it own problems.
i expected a few bugs to creep out once it was released, so please report any you find. *once its settled down, i can look into adding some new features.
top of my own list is to be able to setup a torrent download by selecting a programme.
the best way would be if i could write a new filter into the excellent az plugin 'rss feed' .options file, but that appears to be a java serialized object file. *the author of that plugin is willing to look into allowing external filters to be imported auto via xml. which would be a perfect solution. however. that happens when it happens.
another idea would be to scan a torrent rss feed, grab a matching torrent file and drop it into az auto import folder (as per the options). *that has its flaws in that you cant control which series/episode your getting.
but, anyway. *i'm sure between us we can come up with some idea.... ?
well to be more acurate, i'll let you lot have a think while i go sun myself on a spanish beach. ;)
bbb.
bigbellybilly,
you have my vote for xmltv support!
what would be good is if there was a plug-in structure for actions, just as you’ve set up for the data sources.., so eg. there is a setup xml file which assigns certain plug ins to certain keys, so for example, i might want to press yellow to set a recording, when the programme is highlighted, whereas someone else could assign the key to a azerus plug-in or similar..
that way, hopefully others may pitch in and develop plug ins as well…
just a thought !
kaisersose
2005-06-16, 18:26
when i run 1.03 it just says "failed to load channel list" , anyone else have that problem?
edit: got a build of xbmc from 14/6/05 and still the same, all i get is a black screen with that error above and "welcome to mytv guide" and time on top of screen. im using pal 4:3
edit2: i just ftp'd the unrared folder ( mytv_v1_03), rename it to mytv and it'll work fine
thanks for the great script, pity there aint anything like this on the dreambox
hi - you need to ensure the folder the script is in, is called mytv, and not mytv vxxx
yip - took 1/2 hour to figure that one here !
edit: must remember to read all the post before replying..
ok, well, didnt intend to post this until finished, but am working away for a couple of months.. so my botching will more or less come to a halt.
ive added to the original script so that it interfaces with my nebula digitv card through its web interface... essentailly it lets me set recordings from the xbox. not sure how much interest there is out there for this card though :-)
it can be found at http://www.dragon256.plus.com
all credit for the original script etc.. goes to bbb - as ive only added a small url call... but hey.
graphics have been modded - taken from the mediaportal skins, and the tv logos from http://www.tom-miller.co.uk/go/tvlogos
note - this only works with xbmc pre keymap changes. ive tied the record function to a new button on my remote - so you'll have to alter your keymap to do the same... ive put my remote code at the very top of the keymap so its very obvious.
conditions for it to work:
- enable your webinterface in the nebula settings
- will only work if there is no username and password (not thought about putting this in)
- you'll need to go into the script and manually alter the ip (parameter yourip) to reflect that of your host pc with the card
- also check that the lcn codes match that on your system (check your settings - i think they may be transmitter dependent)
limitations - lots:
- only works for the 1st page of channeles - bbc1 to uktv history. sorry !
- no real check to see if network connected or shedule really set *- you'll see i was playing with some checks - but didnt get them to work
development - if i had time...
- i have the code for listing currently set timers (with help from enderw) - but couldnt intergrate it (was thinking of the sliding pannel ala xbmc lyrics etc..) its also on the above website - timers.py
let me know if you use it (does anyone else use this tv card ?? ;-) ), and what you think... also if you can help on the listing code that would be great.
just tried your new script and its great.
at the moment you`ve only got logos for a few channels, i don`t know wether your planning on adding the rest or not, but i`ve found this link (http://www.satlogo.com./tvcountry/uk.html) to quite a few channel logos. hope they`ll be of any use to you.
cheers b4tm4n.
cheers - i'll look into it.
although i couldnt find the channel idents to tie to the logos - so i had to hard link them to the channels position on screen (which is why after the 1st page the logos repeat).
if you want to change some of the logos - just save the png as the originals filename, its all scaled etc.. so it shouldl work no probs. eg. correct ukhistory channel vs. the news24 logo i put in for keeping
it works for the main bulk of channels i use, so im ok with it..
never got round to setting a remote button to move days forward and back. i didnt like the list controls so i ended up hiding them -i tried removing from the doce - but i`m not that good at python.
BigBellyBilly
2005-07-20, 21:38
mytv v1.04a *now available at xbmcscripts.com (http://www.xbmcscripts.com) (please replace v1.04 if you have already downloaded that one - use v1.04a only)
changelog for v1.04a
new datasource_zap2it - (us/canada) uses xmltv data from a registered zap2it.com account.
new - datasource_telkku - finnish data source.
new - datasource_tvgids - dutch data source.
new - save programme to smb using an editable substitution template.
new - unicode character support.
new - navigation lists can be disabled to allow more channels to be viewed.
new - *menu (white button) to facilitate new configuration settings and options etc.
change - installation folder name independant. ie q:\script\mytv v104a
change - system heirachy - all additional files moved to \system folder.
change - improved pmiii skin.[b]
and several other internal improvments.
i recommend a complete fresh installation if you have a previous version, but, you can keep any customised channels list files (ie mytv\cache\channels_bleb.dat)
please let me know of any bugs or need some help with it.
cheers
sup dude, thanks for all the hard work on the script. i got my zap 2 it account and entered the info in the zap2it.py but when i run the script i get this error:
"traceback (most recent call last):
file"q:\scripts\mytv\system\library.py",line 411, in fetchxmltv
urldata=codecs.getreader('utf-8')(urllib2.urlopen(url,strsoap),errors='replace')
file"q:\python\python23.zlib\urllib2.py",line 129, in urlopen
file"q:\python\python23.zlib\urllib2.py",line 226, in urlopen
httperror:http error 401:digest auth failed"
then when i click ok, xbmc freezes.
any ideas?
bigbellybilly,
i really like this!
i have a few questions...
1) how do you change the time to 12 hr clock?
2) i'm using zap2it and have an acct... i removed all my unwanted channels but your script pulls in and displays all changes even if i removed them from my zap2it profile. can this be "fixed" or can i setup a channel list within your script?
i have one suggestion...
all the blue is very bright, can you change the colors of the grid, maybe alternate rows or something? i'd really love to see color coding via the show type like zap2it and other providers do... this is very nice.
thanks!
great - sounds cool. can't wait to try.
:thumbsup:
BigBellyBilly
2005-07-21, 10:42
kain, thats a unicode character error, do you know which channel might have caused the problem ? - maybe you could mail me your channels list ?
affini: clock is 24hours only at moment. do you just mean the clock or also the epg time intervals also ?
channel lists: if there isnt a channel list for your selected datasource it first goes and collects the data to create one, this will be all channels.
you can then manually edit that list (ie cache\channels_zap2it.dat), to delete channels & change order etc, then that will be the list it will use from then on.
buttons: the blue emulates the uk sky tv guide. i have supplied an alternative (more pmiii darker) pair of buttons in the package.
in the system sub folder rename;
button_focus_pmiii.png -> button_focus.png
button_nofocus_pmiii.png -> button_nofocus.png
BigBellyBilly
2005-07-21, 12:13
kain: upon further inspection , that is an http authorisation error, in other words, your user/pass for your zap2it account hasnt been entered correctly in datasource.zap2it.py. note. they're case sensitive.
i'll tighten up the exception checking, and report that in a more friendly manner.
hmmm thought they were entered correctly. ill take a look and let you know what happens *:cool:
edit: ok i have checked and rechecked and the pass and username are correct. i even made another acct and tried that. then i tried changing my channels/provider. i live near portland and i have direct tv. i tried directtv- portland, directtv-usa, then just local basic cable. they all returned the same error. im really bummed because this script kicks major ass. i tried the uk listings and they worked fine. any ideas what it could be? check out a screen cap of the error here.
http://photos23.flickr.com/27558963_cb13690bc3_o.jpg
i found the channels_zap2it.dat but the channel numbers are way off.
can you please look into it. you'll see what i mean when you see the ppv channels... i put an excerpt below in the code section.
25620,5 starmax
45731,abn-america (dish)
18433,actionmax
...
26849,cnbc world
10142,cable news network
10149,comedy central
10153,court tv
44447,comcast sportsnet chicago
10271,comcast sportsnet mid-atlantic
44917,comcast sportsnet west
43746,cts (international- dish)
43705,ctv (international - dish)
44621,cyrtv (dish)
16617,discovery home
16618,discovery kids network
18327,discovery health
42670,dish home interactive tv
10171,disney channel
18544,do-it-yourself network
44562,dragon tv
11150,the discovery channel
16615,discovery times channel
...
14321,fx networks inc.
18179,g4-video game television
16062,great american country
34359,gallery
19563,nickelodeon games and sports
35379,german tv
14899,the golf channel
33691,goltv (english)
44618,audio radio greece
14909,gsn
44625,guandong tv (echostar) (guandong channel
34362,hd cinema 5 (guy tv)
11221,hallmark channel
10242,home box office plus (pacific)
10240,home box office
10241,home box office 2
18429,home box office comedy
16585,home box office family
10244,home box office (pacific)
10243,home box office signature
...
10309,kabc abc7
10316,kaet
15719,kasw
10784,kazt
10362,kcal
10367,kcbs
10373,kcet
10380,kcnc
10383,kcop upn 13
10402,kdfw
10417,kdtn
24243,kdtp
10422,kdvr
12686,kfph (formerly kbpx)
45504,kino polska (dish)
10567,kmgh
10572,kmoh
10590,knbc
10602,knxv
10640,kpho
29315,kphz
10645,kpnx
10669,krma
10738,ksaz
10724,ktla
10741,kttv
43217,k-tv (dish)
10748,ktvd
10751,ktvk
10759,ktvt
10761,ktvw
10780,kusa
10785,kutp
44091,kuwait tv
10816,kwgn
10830,kxas
...
24246,ppv - ppv455
24247,ppv - ppv456
24237,ppv - ppv457
24238,ppv - ppv458
24239,ppv - ppv459
24240,ppv - ppv460
24241,ppv - ppv461
24244,ppv - ppv462
24949,ppv - ppv463
24950,ppv - ppv464
27891,ppv - ppv465
24262,ppv - ppv470
22919,ppv - ppv471
22920,ppv - ppv472
22924,ppv - ppv476
22925,ppv - ppv477
22926,ppv - ppv478
22927,ppv - ppv479
22928,ppv - ppv480
22929,ppv - ppv481
22932,ppv - ppv502
22933,ppv - ppv503
22934,ppv - ppv504
22935,ppv - ppv505
22936,ppv - ppv506
22937,ppv - ppv507
22938,ppv - ppv508
22939,ppv - ppv509
22940,ppv - ppv510
22941,ppv - ppv511
22942,ppv - ppv512
22943,ppv - ppv513
22944,ppv - ppv514
22945,ppv - ppv515
22946,ppv - ppv516
22947,ppv - ppv517
22948,ppv - ppv518
22949,ppv - ppv519
22950,ppv - ppv520
22951,ppv - ppv521
22952,ppv - ppv522
22953,ppv - ppv523
22954,ppv - ppv524
22955,ppv - ppv525
22956,ppv - ppv526
22957,ppv - ppv527
22958,ppv - ppv528
22959,ppv - ppv529
22960,ppv - ppv530
22961,ppv - ppv531
22962,ppv - ppv532
22963,ppv - ppv533
22968,ppv - ppv538
32301,ppv - ppv539
...
16616,the science channel
11097,sci-fi channel
19634,starz cinema
19651,starz cinema (pacific)
16311,starz edge
45139,set max (dish)
16153,showtime showcase
15268,shop at home network
14948,shopnbc
11116,showtime too
11115,showtime
20622,showtime beyond
11117,showtime (pacific)
18086,showtime extreme
18262,si tv
19635,starz kids & family
16011,speed channel
42939,spice ultimate
11163,spike tv
...
BigBellyBilly
2005-07-21, 17:23
could you both give me your zip codes and your providers so i can change my own zap2it account and try and duplicate your problems.
the screengrab does show httperror 401 - which is a 'failed authorization' - i managed to confirm that myself by simply using the wrong user/password. (code now better in that area)
BigBellyBilly
2005-07-21, 17:52
kain: i maybe should've stated it more clearly, but the account for zap2it is the one where you signup for their xmltv data service at labs.zap2it.com (http://labs.zap2it.com) not on the actual zap2it.com site.
can you confirm which account you've created ?
ps. i got your zip code, username but the password was stripped by the boards admin. could you mail it to me directly maybe ?
but, anyway, please confirm that its is labs.zap2it.com you've signed upto.
hehe ok im an idiot, i went to just the zap2it website. ill try doing it the right way and see how it works. thanks for the help dude *:kickass:
im setting up my account but whats the certificate code?
BigBellyBilly
2005-07-21, 18:05
kain: no problem. it did promt me to improve the login error handling and i've found a few other problems too. i'll also make it more clear in the datasource as to which site to create an account for.
affini: i've found an error checking if your channels list file already exists, unfortunatly it causes it to always re-download the list again. fixed it now.
with regards to the channel numbers, they're channel ids, they're simply used to extract programmes for that channel. so, i cant see the problem. but, if you want to pm me your zip code and provider name, i'll look into it further .
BigBellyBilly
2005-07-21, 18:39
for users wanting to create a new account to get zap2it data, please use the certificate code of mytv-9k2n-utg1 that mytv has now been granted.
sign up here: labs zap2it.com (http://labs.zap2it.com)
hi - not sure what is happening, but if i use the lists to move forward a day or two, it doesnt find any programe data, but manually scrolling right is fine. im using radiotimes as a datasource.
like the menu btw - and ill have to play with the smb tool, looks cool !.
nice to see you're back.
jj
hi there.
this might sound like a stupid question, what is the smb tool for ?
it works and everything, it put a dat file on my pc share with the program name and time *but what can i do with this file?
cheers b4tm4n.
hi - depending on if you use a tv card etc... (and ive not looked into this yet), but there is a script called dabdig (see below) that can use information like this to schedule timers in a variety of tv cards and software..
this was something i was trying to do, but i dont know python enough, so i reverted to using my tv cards web interface...
although it could be very useful for others, or even to help schedule timers in mediaportal perhaps...
http://www.andrewcurrey.co.uk/dabdig/forum/topic.asp?id=55
ok dude ive had a chance to test it now and everything works great. helps when i get an account on the right site eh? ;) thanks for the awesome script man. :kickass:
bigbellybilly,
did you post the updated one xbmcscripts.com?
BigBellyBilly
2005-07-22, 10:54
i've posted v1.05 to xbmcscripts.com yesterday, but i dont usually mention it in this thread until it actually appears - and it hasnt yet.
jj5768: i mustve screwed something up. i'll fix that today.
is it possible to tie moving days to a keypad control (left thumb maybe or remote) ? - perhaps where the lists are not visible. i had a look into doing it, but i wasnt that clever :-)
also - for my info, i used an on_action function in my quick hack to call a url, however i`d like to change what i added is more of an add on rather than being in the main script - is it possible to have these on action calls outside of the main script ? - i suspect not, but worth asking !
BigBellyBilly
2005-07-22, 12:38
all the standard mapped buttons are in use, so if you wanted extra control, maybe from the y button for example (which currently returns 0 - so does black btn and the thumb sticks have no visibility at all), it would require each user to edit the keymap.xml, which makes it tricky as i couldnt be sure everyone would be willing to do that.
explain more about this external onaction your after. are you looking for something simlair to flexibrower or ooba?
what about a menu option that could be assigned to a std function within an external module ?
whats the extra functionality that your after it doing ?
ok, below is the function i added, essentially it builds a url from the program information, and calls it. the information in the url is passed to my tvcards webinterface which schedules a recording.
basic pics can be seen at http://www.dragon256.plus.com - you'll see i played with the graphics a bit :blush: *and introduced channel logo's
instead of having this in the main bulk of the script, i was wondering if it could be added as an add in as such, instead of me having to add it to each revision of script - although i dont mind at all, im more than happy at the moment being able to set recordings from my xbox !
there's probaly better ways of doing it all rather than the below, but it was my 1st attempt...
was thinking about the menu - the code below sets an individual recording, but by changing the 0 at the end of the url, to 1 then its weekly... perhaps the y button could tie to another menu with other funtions, like that below, or as you mentioned earlier in the thread torrent sites, or other functions.. eg. favourites and stuff :-)
if action == action_record: * * *#### recording linked to record button - have to define in keymap - set to code 23 keymap 2010
prog = self.epgbuttons[self.epgchidx][self.epgbtnidx][self.epgbuttonsbtndata_prog]
self.infowin = progdescdialog()
self.infowin.settitle(prog.gettitle())
desc = prog.getdescription()
if desc == "": desc = "no information"
starttime = self.currenttime.timetohhmm(prog.getstarttime())
endtime = self.currenttime.timetohhmm(prog.getendtime())
starttime2 = self.currenttime.duration(prog.getstarttime()) * #start and finish codes minus :
endtime2 = self.currenttime.duration(prog.getendtime()) * * * #start and finish codes
banana = (int(prog.getendtime()-prog.getstarttime())) / 60 * #duration in mins need to make 4 digits
pear = len (str(banana))
if pear == 1 : banana2 = "000"+str(banana)
if pear == 2 : banana2 = "00"+str(banana)
if pear == 3 : banana2 = "0"+str(banana)
if pear == 4 : banana2 = banana * *# changed to 4 digit times
savedate = self.currenttime.timetofiledate2(self.currenttime. getcurrenttime()) * # date code - correct for digitv web interface (ddmmyy)
apple = (self.epgchidx) *# channel position on screen eg. bbc1 = 0
lcn="0"
if apple == 0 : lcn = "001" * * # manually code lcn codes vs. channel position
if apple == 1 : lcn = "002" * * # lcn codes are the channels by transmitter id
if apple == 2 : lcn = "003" * * # could only figure out how to link by position on screen vs.
if apple == 3 : lcn = "004" * * # setting the lcn for all channels
if apple == 4 : lcn = "005"
if apple == 5 : lcn = "006"
if apple == 6 : lcn = "007"
if apple == 7 : lcn = "010"
if apple == 8 : lcn = "014"
if apple == 9 : lcn = "007"
if apple == 10 : lcn = "010"
if apple == 11 : lcn = "014"
orange = prog.gettitle()
orange2 = ''.join(orange.split())
cherry = lcn + str (starttime2) + str (savedate) + banana2 + "0"
if xbmcgui.dialog().yesno("request","set recording ?"):
yourip = "192.168.0.1"
p = "http://"+ yourip +":2880/timers.htm?name=" + str(orange2) + ";?timer=" + cherry
f = urllib.urlopen(p)
print f.read() *# dumps result into the log. probably another way to do though..
my vote is to add jj5768's mods... not that my opinion counts but what the heck, you'll hear it anyway :nuts:
BigBellyBilly
2005-07-22, 21:04
i've discussed it with him and i've decided i'm going to alter the save programme menu option so that it saves either to smb or it calls your own custom - external python module.
in that you can do whatever you want with the data, i think thats a flexible option.
i'll try and write the first saveprog plugin based on what hes trying to do once i've fully thought it throu.
question: is there any way to get it to display the channel numbers as well?
BigBellyBilly
2005-07-23, 10:43
do you mean as a save programme substitution, as $c will save channel id already.
or onscreen ? (not a lot of room for anything else onscreen)
or saving the epg position ie 0 throu 11 ?
i meant on screen. when i go to the actual tv all the channels are listed in numerical order so it would make it a lot easier to find the show im looking for if i new what channel number it was. the way it works on the guide for direct tv is that once you high light the channel it shows the channel number instead of the channel id. i think that would be a pretty cool idea. or maybe in the description at the top of the screen. the highlighted channel in the main window would show the channel id ie- comedy central. then at the top of the screen it would show the actual channel number along with the description. just a thought. i still love this script dude. thanks for all the hard work :kickass:
hi,
just some feedback on the nebula plug in - definatley does the job !
no issues so far, and catches clashing programes as it should - which is great (plus the error reporting works), as i presume you didnt have access to the card !
2 things i did notice though....
confirm mulitiple recordings - if the programe string is too long, then the dialog is empty apart from the yes/no options.. (ie. no text)
there seems to be a noticable refresh when moving right along the timeline (it appeard to be refreshing downward).
well, i think its time this pm to upgrade to the latest cvs, so defining a new keymap etc... for the record button on my remote should be fun :-)
a very happy jj
:agree:
BigBellyBilly
2005-08-01, 14:06
fyi, v1.06 now up on xbmcscripts.com (http://xbmcscripts.com)
changelog:
new - datasource - austv (australian)
new - recording support for nebula tv cards
new - recording support for hauppauge nova tv cards
changed - improved saveprogramme (to facilitate the above)
fix. - changing days on list navigation
also, new, logo support. although i forgot to include the \system\logos subfolder (with about 100 logos) in the release package (doh!)
it'll be in the next release but if you cant wait till then, create a system\logos folder and drop some of your own in there. *it works be matching the channel display name to filename.
nebula & hauppauge recording scheduling: *is explained in detail in the readme file.
thank all for your support on this script, i'll look into each problem reported to me as i can.
hi - just spotted another minor thing:
when moving from lists enabled to disabled, the area behind where the lists were, a black rectangle is being shown cutting off the background image.
can post a screen if description not too hot.
;)
hi there. having a problem with the radio times data source, every time you start the script it tries to download data when its already downloaded the data before. i swapped the datasource_radiotimes.py for the old one and that fixed that.
liking the logo support. have one question about fatx limitation of not being able to use the plus (+) sign which some channels have. how can you match the name to the file in those instances ?
keep up the good work.
cheers b4tm4n.
BigBellyBilly
2005-08-01, 20:32
b4tm4n, i dont get the dbl download you mention. *it will seem to dbl download sometimes as it will get todays listing and possibly previous or next days if close to midnight.
it will always attempt to download channels where its not been previously possibly to get any listings. ie bbc3 or bidup.tv
logo filename matching uses regex, but there is a + symbol problem. i'll fix that. as for fatx, is that a 8+3 filename limitation. as 'men & motors.gif' for example works fine ?
batman - is it trying to download data for bbc 3 / bbc4 only ? - it does seem to try and re-download these channels when there is no current programe information (i.e. before 7pm) - even when there is data for after 7pm...
@jj5768
yeah your right its all the channels that don`t have any program data till 7pm.( bbc3 bbc4 ftn)
@bigbellybilly
i couldn`t ftp any of the logos i did for any channel with a + (eg uk gold +1) to my xbox, all others ftp`d fine, so i thought it was fatx issue.
edit just found this in the faq
q: why does transfer fail when try send a file to my xbox using xbmc's build-in ftp server?
a: xbox hard drive file-system (fatx) has many limitations that other file-systems do not have: check the filename, the xbox's file-system (fat-x) only supports file/folder-names up to 42 characters, and fat-x does not either support all acsii characters in file/folder names, here's some unsupported characters *(note! there are probebly many more than these, let us know):
< > = ? :; " * + , / \ | ¤ &
tip: there is a software application called "xboxify" that will rename files/folders to above limits.
also a maximum of 255 in character-deept is supported down the file-structure architecture. *plus maximum number of 4096 files/folders in a single subfolder is supported, and in the root of each partition the maximum number of files/folders is 256).
heres a link (http://www.xboxmediacenter.com/info_faq.htm#23).
cheers b4tm4n.
hi all - spotted on xbmc scripts bbb's mytv v1.06a has gone up which includes channel logos & sheduling recordings for nebula and nova tv cards on the host pc..
below is the list of changes & data sources...
supported datasources:
radiotimes (uk) austv (australian)
bleb (uk) zap2it (canada/us)
telkku (finnish) tvgids (dutch)
tvnu (swedish)
can also schedule tv recording to the following tv cards:
nebbula & hauppage nova-t
see the readme file for detailed instructions.
changelog for this version:
included uk logos - (add your own if you wish)
expanded the nebbula lcn code list
oopps - double post - please delete !
Th3_H0unD
2005-08-03, 16:42
has anyone tried the schedule with any other cards ? the nova-t card for example has a path config for the app that launchs and tunes the channel.... i was wondering if that could be configured the same way but for any card that works with mytheatre?
anyone try this yet ?
h0und
BigBellyBilly
2005-08-03, 18:33
the hauppauge card i used to test against was a nova-t (digital freeview) card, so i know that works. i'm assuming the s/w in other hauppage tv cards works on the same principle of creating windows schedule tasks, if they do they'll work.
the nebula card is a bit slicker as it has a http server built in (nice).
as for other cards, if they allow external programming in some way, it should be possible. i'm relying on other ppl to try that out, but i'd be willing to adjust code to accomodate them if its needed.
Th3_H0unD
2005-08-03, 18:38
i'm willing to test it out cause mytheatre uses the task scheduler to change the channel for recording and time....
what info do you need to implement this ?
h0und
Th3_H0unD
2005-08-03, 20:56
also what if i have multiple lineups on zapit? can i say download this one but not the other ones ?
h0und
i am trying to get this script to run but i keep getting a
initializing please wait message. nothing ever happens.
i have setup a zap2it account as described and modified the datasource_zap2it file to use my user/password.
any ideas what i am doing wrong?
thanks.
Th3_H0unD
2005-08-03, 23:10
i had the same problem i updated to the latest cvs and it worked fine.
i'm running 2005-07-31
h0und
im using an august 2 build.
Th3_H0unD
2005-08-03, 23:39
hmmmm that's odd... does your rss feed work ? cause i would think that perhaps it's not resolving domains.
check your network settings and make sure
asides from that all i did was edit the datasource and put in my username and password for zapit.
check the cache folder try deleting the contents and start again.
h0und
BigBellyBilly
2005-08-04, 00:24
most common zap2it problem is that ppl have signed up the wrong zap2it account.
ensure you've joined at http://labs.zap2it.com and not at www.zap2it.com.
do any of the other datasources fetch data ok? - ie radiotimes.
if none do, then it must be another problem outside of the script.
i'm still running on a mid july xbmc build (17th), as i see some of the later ones have had a few problems.
hope that helps.
i am using an account from http://labs.zap2it.com
i redownloaded the script and deleted the existing one and reinstalled it with the same results.
i am using xbmc as my default dash.
how do i determine if any of the other data sources are fetching data properly?
BigBellyBilly
2005-08-04, 11:45
do you get the rss feed on the xbmc home page?
if you installed mytv from scratch, the first dialog that will appear is a datasource selection dialog. select radiotimes.
if you dont get that dialog then, i suspect its the xbmc build.
do you have a mid july build you could rollback to ?
i do get my rss feed.
i never got the chance to pick a feed.
i will see if i can get an older build of xbmc.
try switching datasources to eg. radiotimes by pressing (i think white), select change datsource, and select eg. rt and see if that works. if it does (it'll get uk tv channels) then its something i would suggest linked to the zapit account ?
any luck on getting a zap2it account that can be used within the script? i dont think it's a good idea to make people have to sign up with labs.zap2it.con.
Th3_H0unD
2005-08-04, 22:27
it's free too scene up with labs.zap2it.com and it works fine.
i don't see any issues with having to sign up with it... the
only down fall about the labs.zap2it.com is the fact that you need to renew your subscription.
h0und
dazinith
2005-08-08, 09:37
wow, just signed up with zap2it and this script is ausome! :)
i do have a question though. i tried searching, but couldn't find any mention of the issue..
right now my xbox clock is 1am (correct), but when i use mytv to browse i have to go to 6am to find the matching shows that are on tv right now.. this is 5 hours difference..
i am pretty sure i am 5 hours off of gmt, so i am assuming that mytv is going by gmt time.. is there a way to setup an offset on the times so that my 1am corresponds with the 1am in mytv? or am i experiencing something unique?
thanks in advance!
BigBellyBilly
2005-08-08, 11:39
the time functions are based on pythons localtime function, so it should be ok.
i would have expected users from other euro countries to have the same problem (being at least 1 hour out) if i was using the wrong function - but i think it could be just a zap2it datasource problem.
give me some more details, ie your location (zipcode / tv provider) of your account and i'll try and replicate the problem.
thanks
i try to make my datasource- it's not easy btw
but i'm stuck in function def getchannel
i can't write regex to extract data title & description from doc file
description will be fetched as required from a link
html code from my site
with link
nowrap><b>06:05</b></td><td bgcolor="white" valign="top"><b><a href="javascript:okno('opis.html?pr_tele_id=337907 5403',775,500,1);">wszystko w rodzinie </a></b>
without link
nowrap><b>06:55</b></td><td bgcolor="white" valign="top"><b>pogoda </b>
and now regex
findre = re.compile("nowrap><b>(\d\d:\d\d)????????????????? ??????????????????????", re.dotall + re.multiline + re.ignorecase)
can someone help me?
BigBellyBilly
2005-08-08, 16:17
regex:
nowrap><b>(.+?)</b>(?:.*?)href(?:.*?)\">(.*?)</a
that will extract time and prog desc from your code sample.
you've also got pm.
thx a lot
your is much more clear, but i'm still no step forward
i can't match title without link
my old regex try:
nowrap><b>(\d\d:\d\d)(?:.*?)b>(.*?)</b
shows realy all, but problem with positions contents link
nowrap><b>(\d\d:\d\d).*?<b><.*?>(.*?)</a></b>.*?
shows only positions with link, just like yours
ps tomorow i try once again
dazinith
2005-08-08, 21:32
the time functions are based on pythons localtime function, so it should be ok.
i would have expected users from other euro countries to have the same problem (being at least 1 hour out) if i was using the wrong function - but i think it could be just a zap2it datasource problem.
give me some more details, ie your location (zipcode / tv provider) of your account and i'll try and replicate the problem.
thanks
i am using the zap2it service, zip code 70810, regular cable, on cox.
i dont recall any time zone settings on the xbox.. perhaps im just special?
thanks for any help you can give, and keep up the good work :)
BigBellyBilly
2005-08-08, 22:23
smuto: i'm a little unclear on which html code your trying to extract prog desc from. if you could send me the url of the page your processing i'll be able to have a better stab at it.
dazinith: thx for that info, i'll have ago with it.
my "half way" datasource
datasource_wppl (http://smuto.webpark.pl/datasource_wppl.py)
BigBellyBilly
2005-08-09, 15:48
smuto,
it took me a while, but i've found a regex solution.
"nowrap><b>(.+?)</b>(?:.*?)(?:<b><a href(?:.*?)id=(\d+)\'(?:.*?)\">|<b>)(.+?)</(?:.*?)sginfo\">(.*?)<"
i'm no regex expert, and there are probably better solutions that involve 'lookahead or lookback assertions' - but it works.
it extracts time, link id, title, desc (always 4 groups).
i hope you don't mind, but i've also made some other changes to the code and intend to include it (datasource_wppl - its for polish tv) in the next release.
thanks for taking the time to have-ago.
bigbellybilly,
i have one feature request if i may...
i'd love to have http commands be able to be sent when choosing a program.
basically, i have a software package that can receive http commands and then do things from there. i'd like to send http commands to the software and have that software change the channels for me, via ir commands.
if xbmc (via your script) could send the http of my choice when i choose a progam to view this would accomplish my goal.
so if i chose a program that did not start for 30 minutes, i would choose the program to watch, and mytv would know it does not start for 30 minutes, so in 30 minutes it would send the http command(s). or if the show was already in progress it would send them immediately.
could you do something like this?
BigBellyBilly
2005-08-10, 11:48
affini, errrr. really not sure about any of that...
delayed http sends: can a python script setup a timer that can exist in the background regardless of whatever the xbmc is doing ? or did you just mean aslong as your still running mytv script?
send http cmds: could you send / show me some example http cmds you'd like to send.
would using sending a post or get url to your http server work for you ?
affini, *errrr. really not sure about any of that...
delayed http sends: can a python script setup a timer that can exist in the background regardless of whatever the xbmc is doing ? *or did you just mean aslong as your still running mytv script?
send http cmds: *could you send / show me some example http cmds you'd like to send.
would using sending a post or get url to your http server work for you ?
the commands are post. here's example code from an asp page i currently use...
<form method="post">
<td align=center width="100%">
<input type=hidden value='hs.triggerevent "default" : hs.setdevicestringbyname "house lighting status", "default"' name=commanddefault><input class=formbuttonbig type=submit value='default' name=action>
<br>
<input type=hidden value='hs.triggerevent "all lights on" : hs.setdevicestringbyname "house lighting status", "all lights on"' name=commandalllightson><input class=formbuttonbig type=submit value='all lights on' name=action>
<br>
as for the timer, i'd image that a separate timer script could be launched by mytv with the variables needed. this way if you leave the mytv interface then the http commands are still sent. but i don't know squat about python, only vbs & jscript.
enigma9o7
2005-08-12, 07:05
right now my xbox clock is 1am (correct), but when i use mytv to browse i have to go to 6am to find the matching shows that are on tv right now.. this is 5 hours difference..
i am pretty sure i am 5 hours off of gmt, so i am assuming that mytv is going by gmt time.. is there a way to setup an offset on the times so that my 1am corresponds with the 1am in mytv? or am i experiencing something unique?
i'm having the exact same problem, except my listings are 8 hours off and im gmt -9 (according to windows). *i'm using zap2it from 99701 with gci cable, and if i check the regular zap2it.com on my pc the times are right.
i'm having the exact same problem, except my listings are 8 hours off and im gmt -9 (according to windows). i'm using zap2it from 99701 with gci cable, and if i check the regular zap2it.com on my pc the times are right.
yes i am having this problem as well. the zap2it data source is returning gmt time but not local.
also there is a flicker as the interface is redrawing the buttons when the page is scrolled (i think that if the data has already been parsed the gui should be locked so you dont see this updating.
BigBellyBilly
2005-08-15, 02:43
i've released v1.07.
it doesnt fix the zap2it problem, but i've released it anyway as it was ready to go.
new datasource yahoo (uk,fr,de,it,ca)
new datasource wppl (polish)
new support for mytheater tv card for zap2it users - this translates the zap2it station id into the mytheater channel code. its not a complete list and would like some help on building the list (see inside the saveprogramme_mytheater.py)
zap2it: bit baffled by this tbh. althou i'm in the uk, using the emu, if i set my pc to a us timezone then dl zap2it data it appears to be the correct time. i use the python function localtime to establish date as part of the date range in the zap2it header request, so i dont see how i can be requesting gtm ? it does seem to be a zap2it prolem as users from other countries not reported times being out.
it would be helpfull if you could send me
1) your zap2it xml file
2) a subsequent parsed out channel file.
for a date in the future. then i could analyse it a bit more.
www.yousendit.com is good for sending large files.
gui flicker: if i lock the gui then you wouldnt get any dialog boxes informing you of whats going on as it blocks them too.
ie downloading channel xxx
its not all already parsed, if during the timeline draw i need more data (next days data) it has to go fetch at that point.
so, no its not perfect, and i doubt it ever will be.
hey bbb, no matter, i think all are impressed by the time and work you've put into this script. thank you.
the work into getting tv cards working has made my year i think. i'm a little surprised its not been more widely picked up on, or maybe it has and it passed me by.
if it were to matter - there did seemt to be a percievable difference in the refresh when 1.06 came out ?
cheers. jj.
enigma9o7
2005-08-16, 01:46
zap2it: bit baffled by this tbh. *althou i'm in the uk, using the emu, if i set my pc to a us timezone then dl zap2it data it appears to be the correct time. *i use the python function localtime to establish date as part of the date range in the zap2it header request, so i dont see how i can be requesting gtm ? *it does seem to be a zap2it prolem as users from other countries not reported times being out.
it would be helpfull if you could send me
1) your zap2it xml file
2) a subsequent parsed out channel file. *
for a date in the future. then i could analyse it a bit more.
i just grabbed a few days ahead and sent my entire cache directory to the gmail address in the readme.txt file, hopefully this gets you what you need!
if it's a problem relative to gmt, it seems odd that i'm gmt -9 but i have to look 8 hours ahead to see what's on. or maybe that's related to dst or something. the reason i think i'm gmt -9 is because if i click on the time on my winxp taskbar, then click time zone, it says (gmt -09:00) alaska. i'm in alaska and my time/zone is set correctly in windows.
BigBellyBilly
2005-08-16, 11:53
zap2it users: it appears the data from zap2it is always in gmt and its down to the client to correctly adjust for timezone.
i'm currently testing a fix for this and hope to release it soon.
i'm also improving the reported gui slow-draw reported since v1.06
thanks for your feedback and data files.
bbb
nb. the zap2it certificate code for registration is: mytv-9k2n-utg1
enigma9o7
2005-08-16, 22:36
you're the man! i tried the beta version you sent me and the time is now correct (using zap2it)! thanks a lot, and awesome work on the whole package!
it's great as is, but if i had to make one suggestion, it's to eliminate the waiting time when downloading the schedule. perhaps there could be another script we could put it autoexec.py that could download data automatically in the background upon bootup... anyway thanks a lot for making us this useful application!
might be nice also if the script could check to see if data is available for a channel at a later date, before automatically trying to redownload channel data - eg. for channels which start at 7pm with nothing before... not sure if that can be done, if not, i guess its easy to reduce the http timeout to pick up when its not attached to the internet, or even perhaps get it to ping yahoo or something before attempting to download new channel data ?
BigBellyBilly
2005-08-17, 16:05
v1.07a now on xbmcscripts.com (http://xbmcscripts.com)
changelog for this version:
fix. zap2it now displays times according to gmt offset (set gmt value in datasource_zap2it.py)
improved. gui timeline draw speeds (let me know if you see an improvment)
in answer to downloading channels. tbh, i'd not considered anyone not dsl connected at all times. something that should be addressed.
i've also considered gathering additional channel data as a subthread. but its quite a change.
some datasources (such as radiotimes) gets 14 days per dl, which improves its use. a fully loaded zap2it daily download can be ~2.5meg, imaging how long a 7/14 days listing would take. having said that, i could alter the zap2it datasource to be flexible enough for you to enter your prefered number of days to dl at once?
delay auto getting data for channels that have no prior/post programme is tricky to have a reliable rule that determines , regardless of channel and datasource, what constitutes a true channel break.
in short, non of its impossible, so maybe sometime?
sounds good!
will check the refresh rate and let you know
fix. zap2it now displays times according to gmt offset (set gmt value in datasource_zap2it.py)
this fix will likely break in a month when daylight saving time ends. (well the file will require editting twice a year).
doesnt time.timezone and time.daylight work on the xbox?
(time.daylight*3600-time.timezone)/3600
$ python
python 2.4 (#1, dec 4 2004, 20:10:33)
[gcc 3.3.3 (cygwin special)] on cygwin
type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.tzname
('est', 'edt')
>>> (time.daylight*3600-time.timezone)/3600
-4
BigBellyBilly
2005-08-18, 15:21
i agree, that would be a better solution.
any chance someone could test it by amending your datasource_zap2it.py to have:
1) import time
2) change the line
gmt_offset = <your offset in hours>
to be
gmt_offset = (time.daylight*3600-time.timezone)/3600
let me know.
cheers
just installed 1.07a - and the refresh is certainly quicker (or so it seems) now, although still slightly noticable when scrolling right, ultimatley its not an issue.
hey bbb
just had a thought thisevening (while setting the tv to record the 7'oclock news) - not sure if this is nebula specific, or more applies across all tv cards supported, but all the same..
repeat recordings - there is currently a dialog set up, pbut perhaps this could be expanded, so you could select one of three options, o - 1. record once, 2. record daily 3. record daily
perhaps using the scroll menu dialog as you use or the main menu ?
does the nova card provide info back that you can get eg. it would be great to list currently set timers, or even a status page for the host pc, but if this is nebula only, then i dont see much of an audience (apart from me :agree: )...
i also saw that there is a mediaportal plug in being developed to allow control of tv scheduling and stuff from xbmc
btw - keymaps - after upgrading, i could no longer use the record button on my remote (keymapped to code 2010 if i remember correctly) to set a recording. i cant figure out the new keymapping and to see if it can pass numbers (as was the case) rather then variables such as number9, number6 etc... in the end i reverted back to an old xbmc which did work. if anyone has any ideas - much apprechiated.
anyway, its cool all the same, its just an idea
chrislee149
2005-08-25, 02:45
hey, just installed this script. it works excellently, and gives good correct information. that is, until i scroll using the dpad right to see listings in the future. when i scroll back to the present time, the listings are one hour in the future (checked on the actual zap2it site), although the bar at the top lists the correct time.
BigBellyBilly
2005-08-25, 11:21
jj5768: the nebula repeat recordings dialog can certainly be expanded as you suggested. i'll do that. the viewing of scheduled programmes is dependant on info that can be extracted from the nebula http server. i'll look into it.
chrislee149: could you change a line of code in the datasource_zap2it.py file to see if that fixes it ?
1)add this line at top of script:
import time
2) change the line
gmt_offset = <your offset in hours>
to be
gmt_offset = (time.daylight*3600-time.timezone)/3600
let me know if that helps
could you change a line of code in the datasource_zap2it.py file to see if that fixes it ?
gmt_offset = (time.daylight*3600-time.timezone)/3600
just did it (had trouble downloading the 1.07a version for some reason last week). works well. :)
like the quicker gui stuff :) although im not really a big fan of the '>' and '<' marks. those really should be graphics...
i wonder if there is a way to draw different colors for the buttons easily... i might try playing around with the gui one of these days.
ohh i had some issues with the scrolling (i think the algorithm you used was broke or wasnt working well)? like you wouldnt be able to scroll up the right side of the screen very far until you got booted to the left. i changed it up so it only updates the
epglastprogtime on left or right. (your code is remarkably clean btw). i like it a lot better this way. try it out below.
http://www.filespace.org/asteron/mytv.py
different bars sound an excellent idea – but i guess it would be reliant on matching to a local list of say timers, or matching something in the programme description to a category ?, maybe not the easiest, and perhaps it would have the effect of slowing the redraw down again ?
the arrow icons sound nice – i have been playing with media portal recently, and like their layout etc.. (although not a fan of xmltv or whatever it is they use i could be wrong) – this script does seem more slick in containing everything and not relying on external components…
i assume that the xml provides category attribute? i could be wrong there. all buttons the same color just looks kinda bland.
BigBellyBilly
2005-08-25, 22:00
asteron: i see what you've done and i like it. the orginal behaviour was based on how the uk sky epg navigates, so i emulated that and tbh, its was an area that everyone i showed it too had a different opinion on what would be the best movment.
thanks for diving into the code, even i take a deep breath if i've not looked at it for a while.
the < and > arrows could easily be changed for gfx, i'm no artist, so if anyone want to design a couple of shiny alternatives, send me them.
timeline button colours: only zap2it data contains category information (and radiotimes kindof) so it would be unused for all other datasources. even so, the colours could be assigned to category via the menu system. a doable request.
i'm working on a new script, that i'm hoping to link up with mytv. so once thats done i'll give it some more attention.
cheers
bbb
sounds cool, look forward to it
:lol:
hmmm i think that -1 invalid variable i used might be screwing something up somewhere.... seemed to work fine this morning... maybe it has something to do with the time...
chrislee149
2005-08-26, 04:21
chrislee149: could you change a line of code in the datasource_zap2it.py file to see if that fixes it ?
1)add this line at top of script:
import time
2) change the line
gmt_offset = <your offset in hours>
to be
gmt_offset = (time.daylight*3600-time.timezone)/3600
let me know if that helps
didn't help. :/
didn't help. :/
that works on my side! do you have your xbox to synch time with an internet time server? could that be a part of it?
help :bowdown:
i now get an "unhandled exception" error when running the 1.7a version.
it attempts to dl the data, it seems to get some of it and it says it is building the channel list, then it dls again and i get the error. it then pops up another window saying out of space on the device but i have 36mb free space on that partition.
then it just loops the same windows and errors and i cannot cancel out even if selecting 'cancel' button... i must reboot.
i checked the cache folder and it has these files...
xmltv_20050906.xml 3.91 mb
xmltv_20050907.xml 0 kb
channels_zap2it.dat 13 kb
... as well as several other .dat files of differing sizes, nothing over 2 kb
any ideas?
BigBellyBilly
2005-09-07, 11:56
it could simply be that you have run out of space. ?
are you a zap2it user ?
if you could send me the debug log file that would help.
you can get a debug log file by editing the system\library.py file and turning on debug;
debug = true
you'll also need to set xbmc debuglevel to be 0 in the xboxmediacenter.xml file.
pm me the xbmc debug file, and i'll look into it.
i’m looking forward trying the interaction between your tv.com script and mytv – you mentioned that this would come in 1.07b although i cant find it on xbmcscripts – has it been released yet ?..
BigBellyBilly
2005-09-07, 19:47
sorry, had a slight delay in putting it up to xbmcscripts.
i wanted to test it further with tv.com v1.01 that i've just completed.
bbb.
no probs - look forward to it.
i'm intreaged to see how the two scripts interact, do they act as individul scripts, or does one run in the background while the other grabs focus ?.
had some ideas fo the tv.com script (i really like the way it grabs the banner per series) which i'll put in the other post.
on mytv - it seems a shame but i cant figure out the keymapping issue since upgrading to a more recent version. unfortunatley it seems window related (using variables (?)) rather than numbers... shame :verysad: so my direct record button no longer works.. but hey the menu is still there !!
i do like the way though that you seem to be pre-empting some of the other projects going on... tv guide, tv.com / tv section... :bowdown: :) the mytv script has now taken over the my programs button on my home.xml, and very well it works too...
it could simply be that you have run out of space. ?
are you a zap2it user ?
if you could send me the debug log file that would help.
you can get a debug log file by editing the system\library.py file and turning on debug;
debug = true
you'll also need to set xbmc debuglevel to be 0 in the xboxmediacenter.xml file.
pm me the xbmc debug file, and i'll look into it.
it started working again, go figure :nuts:
thanks for the help!
BigBellyBilly
2005-09-08, 14:06
mytv v1.07b available on xbmcscripts (http://www.xbmcscripts.com/modules/mod_docman/includes_frontend/index.php?option=com_docman&task=search_result&itemid=array&search_mode=phrase&search_phrase=mytv%20v1.07b)
(it hasn't appeared in the 'recently added/updated' home page list - site problems ?)
this is just a minor update, other feature request to be done later.
changelog:
fix. zap2it - dst auto adjusting
new. tv.com callable from menu
hey bigbellybilly,
congratulations on building a great script. *playing with it for a while has given me the final nudge i've needed to order a nova t card. * *:thumbsup: *should be coming this week.
ok, so now i'm thinking i've got this great script to schedule recordings, so all i need to turn my much loved xbmc into the ultimate media center is something to be able to watch live tv through the xbox. *i'm just wondering if this is something that you or anyone else reading this does. *i'd like to know if its possible and if it is if there are any possibilities of integrating it into this script. *i've never coded in python before but i'd love to try and help and bring this functionality in. *currently looking at your script to see how its done.
:bowdown:
BigBellyBilly
2005-09-11, 21:00
glad u like the script. i've been using a nova-t pci card for sometime without problems on a little 733 piii, although i understand the nebula card is a bit more feature rich but requires at least a 1ghz pc.
live tv throu xbmc, i dont think thats possible yet, in any way. sorry.
hmmm i think that -1 invalid variable i used might be screwing something up somewhere.... seemed to work fine this morning... maybe it has something to do with the time...
i got around to upgrading to the 1.07b and im still getting the same bug. this means that the navigation change i had before wasnt screwing stuff up but also there is a bug somewhere in displaying the guide when previous schedule data exists.
basically i can use the script in the morning and it will be fine but when i do the same later the day the scheduling in previous segment is stretched across the whole time grid. moving the page right and left fixes the bug but moving the page up or down makes you see it again. clearing the cache also fixes it. any idea what's up? this is using the zap2it datasource if that could be a problem. maybe its related to the gmt offset.
hi gerner, have a look into the nebula digitv card - as bbb says it a little more resource demanding, but its one of the more feature rich tv cards, and the interaction with this script happend via its web interface, so you dont need anything on the host pc other than the software.. and it generally works 100%. the software is always in development, and is just about to be released with the ability to have multiple tuners.. although even at the moment, it has 'vitural' tuners - so you can record multiple channels at once presuming they are on the same 'mux'
i guess it very much depends on your host pc.
as for streaming - i`m sure it is possible to do, possibly using videolan to broadcast on the home pc to a shortcut on xbmc, but i`ve never tried. if i ever need to wtch anything, or timeshift, i record it, and start watching in xbmc before its finished (it 95% works.. there are issues), but it allows you to effectivley time shift, pause tv etc.. as in sky+
good luck!
bigbellybilly,
i love the script, thanks!
one question... i notice that if i have not used it in a while it take quite a good time to dl everything from zap2it and then construct the channel list and such. then when i move the grid, it must "build" it and this takes some time with each cursor move.
is there anyway to have the script periodically dl and build what it needs in the background, maybe upon starting xbmc, so as to eliminate the constant waiting?
coccobill
2005-09-15, 00:46
i'm trying to configure mytv to use yahoo it channels, but the script stop after download the first channel.
any idea ?
thanks for your help !!
paolo
bigriggers
2005-09-16, 01:29
gahh! having a little trouble with this script. like the guy a few pages ago, it just says "initializing". have left it for like 15 mins to no avail.
i am receiving the rss feeds from xbox scene when the xbox is first powered up. :help:
i even tried editing the channels list to leave only a handful to download, no difference though. any ideas guys?
tia!
cheers.
BigBellyBilly
2005-09-16, 11:11
hi,
problems of that sort are usually cos your running an old build of xbmc.
let me know if that doesnt sort it.
i'll look into the yahoo datasource, they may have changed their site, but i'll check.
bigriggers
2005-09-16, 13:25
hmm, 'tis a strange one as i have the very latest build. at least i'm pretty sure i do, it was the one posted at the usual place on 9th september.
just out of curiousity, when it says "initialising" is it scanning for channels already?
BigBellyBilly
2005-09-16, 16:50
yes it is. (depends on datasource - some get 1 day - some get more per dl), butit only dl if days data files dont already exist.
a mate has just informed me that on fresh installs, the datasource selection screen is partially hidden by the initialising dialog. so it would sit waitng for a datasource to be selected. this could give the impression of hanging.
i'll look into it asap this weekend.
bigriggers
2005-09-16, 17:42
thanks for the reply again billy.
i can see the datasource selection screen behind the "initialising" dialogue and i can move the cursor up and down to highlight them, but due to the dialogue still being displayed the only option available to me is "cancel" ie, i can't actually select any data source.
BigBellyBilly
2005-09-16, 17:44
yes, thats the gui 'first-run' bug.
the solution is to pick any datasource, let it start up, then once into the main script press white btn to bring up the main menu. from there select 'change datasource' to the correct one you wish to use. it will then re-initialise using the new datasource, when you exit that menu.
i just need to sort out my dialogs on first-run.
bbb
bigriggers
2005-09-16, 17:54
billy, you are a gent.
worked straight away, d'oh!
thanks mate, keep up the good work! :thumbsup:
hey bigbellybilly,
my nova - t arrived yesterday and i've already used your excellent script's recording mode *:thumbsup:
i've found a way to stream live tv to the xbox that allows channel changing through a script. check it out here: http://www.seanster.com/avb/
if you have mytheatre installed you can get it up and running with very little hassle. *it works very well too.
i'm wondering if you'd be interested in using the live tv feature as part of your own script. *
i was thinking something along these lines: *if you click on a program on you episode guide and it falls in the "now-playing" time an option could be added to the program-info that comes up to watch that program. *if the program is not in the "now-playing" time that optional button could become "record" instead. *there's all sorts of possibilities i suppose.
i think this could be a pretty exciting project. *it looks like a lot of the works done already in the seanster's mytheatre script - although it might be tricky marrying up the mytheatre channel id with the guide id.
anyway, have a looksey, i'd be interested to get your take on this.* :bowdown:
BigBellyBilly
2005-09-17, 23:35
would people really want to watch a streamed feed instead of just switching to the proper channel on the tv?
i'll certainly try it out thou.
cheers for the info.
well a few things become possible that are not so standard at the moment. you can use it to pause live telly or put it in the background whilst looking through the guide.
together with your guide i'm thinking of sky+ type facility.
enigma9o7
2005-09-20, 03:35
scheduling in previous segment is stretched across the whole time grid. *moving the page right and left fixes the bug but moving the page up or down makes you see it again. *clearing the cache also fixes it. *any idea what's up? *this is using the zap2it datasource if that could be a problem. *maybe its related to the gmt offset.
i have the exact same problem with the same setup (using zap2it). *when it first comes up, i have to move right then left to fix it. *not a big issue, but certainly a bug. *fortunately i "only" have 7 channels, so i dont ever have to up/down so haven't noticed that aspect of it.
unrelated, when my pc is running p2p software, it takes forever to d/l the data... after waiting 15 minutes i gave up. *maybe this is something that could be corrected with advanced network settings on my pc, but the way i have it now i just turned on winxp internet sharing and use a crossover cable direct from a network card in my pc to my xbox. * i know this has absolutely nothing to do with mytv itself, but it's still inconvenient for those in my situation (i can't imagine i'm the only one). *the same thing happens if i try to use xlink w/o stopping my p2p software, but in that situation i don't mind getting off my ass and shutting down my p2p software, but when i only need the internet for less than a minute to d/l the tv guide, its hardly worth the effort, i could check the tv guide on the pc quicker w/o shutting it down. *
i don't have a solution, just mentioning it incase you think of ideas. *like maybe downloading more than one days worth of data at a time, or if it could download the data in the background whenever xbmc is running so that when i run mytv it already has everything it needs to display the guide, that would be nice.
BigBellyBilly
2005-09-21, 17:57
the zap2it 'no programme' bug: i'm struggling to reproduce it.
could someone give a zip code / provider etc so i can duplicate your download package and if you could give me a another breakdown of whats happening ?
the possible problem would be that the endtime from the previous day doesnt match the starttime of the first prog in next days file. but the script does cope with that, as its common for channels to go offair overnight. having said that, i've not seen any 'gaps' in end/start from the zap2it channels i've looked. which is why it would help if i could duplicate the problem.
also, if anyone has taken the time to add in missing channel logos, i'd appreciate it if you sent me them so i could include them in the next release ?
zap2it files download times are obviously determined by number of channels in your package. 90+ channels is ~ 2.5meg which is why it only collects 1 day at a time.
it is possible to have a autoexec script that would dl as many days as you'd like at xbmc startup, but how would that affect usage of xbmc if it were to take *sometime* to finish ?
pm sent in regard to repro setup.
one of these days im going to try to get in and make some gui changes to the code :)
jthunder
2005-09-23, 01:01
bbb and others, awesome work guys! this project is one of the best xbmc scripting ideas in my opinion.
gerner, using mytheatre, the mytheatre .py script and avb to stream using dvb-s and the xbox is, in my opinion, a bit of a cludge, and doesn't allow for a nice guide (like mytv) or allow for timeshifting, pause, etc.
there is another program named tsreader that interfaces with dvb-s cards. http://www.coolstf.com
in the newest version of this application a control server interface is exposed allowing for the dump of xml information about the tuned provider (can be in xmltv format). the other beauty of this program is that the control server also allows for the streaming and/or recording of selected programs (or multiple programs).
i'm guessing that the integration with this control server would need to exist to get the xml code describing the programs.
ideally, in my mind, within the mytv script the 'action' button should allow for several options;
1) if the program is in the present (start time is < now), watch - would either send the command to stream the program via vlc to the xbox, or record the program as a .ts file on a remote filesystem and begin playing as a remote file using xbmc (preferred method to allow for timeshifting, pause, etc).
2) if the program is in the future (start time is > noe), record - would send the command to record the program to tsreader.
i don't have enough experience with python to even start looking into this, but i know that there are a lot of people with the xbmc/dvb-s combination what would be interested in this plug-in.
what are you guys' thoughts? how much work would it be to use the xbmc.play function to play a passed filename or vlc stream? how about playing it within a smaller window (like picture-in-picture in the guide, like it does in the xbmc interface)?
jt
hi jthunder,
i think you're right about the mytheatre solution. i had a go at implementing it but in the end am not happy with the end product. for one thing recording with mytheatre seems pretty flakey for me.
have you ever used dvb web scheduler? its a very strong open source project that provides a web based front end for scheduling and managing recordings for all dvb cards. i'm pretty new to tv card recording in general but this product is so far the best thing i've found for my purposes. its got a great interface, provides loads of options and is very solid and uses very little system resources. whilst it's recording you can access the file fine through xbmc or any other media player.
i'm currently working on implementing it through mytv so it behaves as you sketched out above. i.e. if (start time is < now), record and then stream the recorded file over a smb share, otherwise just record. i should have a first cut sorted out over the weekend.
as for the picture in picture thing i'm not sure if that's possible. i haven't yet had a proper go at trying but i'm thinking its a no go.
BigBellyBilly
2005-09-23, 12:37
interesting stuff. i'm almost ready to release v1.08 (hopefully) over the weekend, there's been quite a lot of code changes, but if you manage to integrate your video streaming code, send it to me and i'll see about merging it into the latest code i have.
cheers bbb. fingers crossed, i should be able to confine the web scheduler stuff to the saveprogramme.py.
webscheduler is a great prog - shame i coud never get it to work with my tv card (nebula) - it does work with a wide range of others !.
good luck !
jthunder
2005-09-23, 18:06
gerner, web scheduler looks very interesting - a few questions though.
it appears that web scheduler only supports dvb-t, while tsreader supports generic dvb (including s, t, and c) http://www.coolstf.com/tsreader/hardware.html
can web scheduler support the use of conditional access modules? in the form of plugins? these allow for extensions to the dvb protocol to support encryption! (big one for lots of people).
the tsreader control server also can collect the si table inforamtion (programs, channels, times, and tons more) and output it to a standard format (even xmltv). so this gets rid of the requirement to pull the program information over the internet, instead tsreader just reads it from the stream in real-time and can provide the script with the updated program information (up to 7 days in advance) as requested.
we also have access to the lone developer, who loves to build support for third-party applications like this, and would be willing to implement changes in the control server if needed.
one bad thing is that tsreader does not have any current capability to schedule recordings in the future, but this will be in the next release.
i would love to see both products supported by mytv, using bbb's plugin architecture. i'm just wondering if anyone can help me with building the interface to the tsreader control server.
bbb, on the topic of video streaming code what i was thinking is this, once a program has been selected to 'watch' (program time < now) the main script will use the provider information to create the watch function. this function should include the uri of the media (whether its a file on an smb share, or vlc stream, or http stream) then call the xbmc.play with this info. there should also be code within playback, similar to the video module, to window the video in a corner and return focus to the guide.
i don't have any experience coding in python, but i can help put it together and tester this.
jt
... i know that there are a lot of people with the xbmc/dvb-s combination what would be interested in this plug-in.
i'd definitely use something like this if it was integrated into mytv!
hey jthunder, i'll take a look after i finish this web scheduler plug in. fyi, web scheduler also supports cards which have bda drivers for them (this includes dvb-s cards) and provides its own epg info. after i've got the saveprogramme plugin in done i'd like to take a look at a web scheduler data source plug in. slowly slowly catchey monkey ..
jthunder
2005-09-23, 21:05
gerner, i look forward to having someone who understands and can write python scripts with xbmc to assess the tsreader control server interface (output and input). here is a link for once you've got the web scheduler plugin rolling...
http://www.coolstf.com/tsreader/control-server.html
unfortunately my dvb-s card isn't bda supported... and i don't kno w if it will ever be :(
i have found an improved source for australian tv information. it is a rss feed and more info is available from here: http://d1.com.au/d1xmltv.asmx
solexalex
2005-09-25, 16:20
hi
no way to make yahoo(fr) working...
in fact, it works but the channels i got are not french... and the grid show only full blue bars saying 'no programs'
i think i made the correct changes in the yahoo datasource :
# pick one of the above and put it here
country_code = country_code_france
but no way...
i hope you could help
jthunder
2005-09-27, 03:54
i have just hooked up my dvb-s card again, and i am going to start documenting what is needed to get the mytv script and the control server with tsreader working. i can confirm that the control server allows the stream to be recorded to a local file (in .ts format) the file can then be read by xbmc as it is being recorded by tsreader.
this will be a great solution for anyone that has a dvb-x card and xbmc.
i will post the results here as i get them. i will also post the command document for the basic functionality. hopefully it will be able to be integrated quickly :)
jt
BigBellyBilly
2005-09-28, 16:19
the yahoo datasource (all contries) were broken, but now fixed, in v1.08 (not yet released) along with a couple of the other datasources also broken for the same reason - site html changes. tbh, that will always be a problem for html scrape based datasources, rss feeds are much more stable.
v1.08 will also include the webschedular mod.
if i look into the rss for au it'll delay this release again, so i'm look into that after v1.08 if thats ok?
having said all this, i released a new build of tv.com (v1.03) 4 days ago to xbmcscripts and its still not appeared (again !) so, there could be another delay even after i upload it....
bbb
jthunder
2005-09-28, 17:28
good work bbb,
is this thread a good place to make improvement suggestions, or bug reports? or is there a better place?
can't wait to test both scripts.
jt
BigBellyBilly
2005-09-28, 17:31
the thread is getting a bit big.
maybe we should stop this one and creat two new ones
mytv - bugs
and
mytv - suggestions/requests/announcments
?
the thread is getting a bit big.
maybe we should stop this one and creat two new ones
mytv - bugs
and
mytv - suggestions/requests/announcments
?
agreed but make it bugs & support
hey jthunder, any more news on the command structure for tsreader ? my experience with the web scheduler plugin suggests that recording to file and then getting xbmc to play that file may not be the best way to simulate live tv watching. *for one thing there is a longish pause involved while the recorded file gets created, xbmc caches the file and then decodes the signal.
the mytheatre plugin i wrote that uses an avbroadcaster over http actually worked much better - although the recording and scehduling side of things was much flakier than web scheduler.
anyways, i'm interested in looking at the tsreader to see what we can come up with.
jthunder
2005-09-29, 01:21
here is a link to the command server docs, in my testing it works well and the delay is minimal while playing the recorded .ts file.
http://www.coolstf.com/tsreader/control-server.html
and i've also requested a simple 'telnet' python script (due to my inexperience writing them) so that i can build a simple interface to it. anyone have any ideas? can i use the telnetlib python library to read and write commands from the server?
thanks
BigBellyBilly
2005-09-29, 18:18
mytv v1.08 uploaded to xbmcscripts.com (http://www.xbmcscripts.com/index.php?option=com_docman&task=search_result&itemid=array&search_mode=phrase&search_phrase=mytv) - but, its not visible yet (am waiting for moderator to sort it out)
changelog for this version:
new. 7-day fav show display - can also be run standalone (favshow.py)
new. favshow titles now highlighted on guide
new. saveprogramme_webscheduler.py - save/play using webscedular on your pc (http://dvb-ws.sourceforge.net/)
new. support for hauppauge wintv200 (setup in saveprogramme_hauppauge.py)
new. australian datasource - datasource_ausrss using rss feed
new. norwegian datasource - datasource_nettavisen
fix. zap2it display bug.
fix. all yahoo datasources - caused by site changes.
fix. telkku datasource - caused by site url changes.
fix. < > arrows not displayed properly on later xbmc builds
fix. first run bug: dialog 'initialising' overlaid datasource selection
changed. logo name matching
changed. up/down focus movment - now uses a constant 'middle time'
changed. menu structure - configmenu now a submenu from mainmenu to accomodate favshows
changed. error handling when channel unavailable.
added. some contributed telkku logos, plus others
as you can see, quite a big update, so any problems let me know.
as has been noted some of the html scraping datasource can break when the websites change, i can't contantly test them all, so i'm relying those users to let me know - or even better - fix it.
i'm going on holiday then on a 3-week course with work, so i'll only have time to attend to bug fixes.
thanks to all those who have contributed (from all corners of the planet) in one way or another.
cheers
bbb
solexalex
2005-09-29, 19:29
thanks a lot for changes !
as the french webmaster of a python scripts website, i will try to give a look and understand how it works. that way, i hope to be able to fix when changes occur.
maybe i'll need your help, i'll contact you then ;)
see ya
jthunder
2005-09-29, 20:14
here is a link to the command server docs, in my testing it works well and the delay is minimal while playing the recorded .ts file.
http://www.coolstf.com/tsreader/control-server.html
and i've also requested a simple 'telnet' python script (due to my inexperience writing them) so that i can build a simple interface to it. anyone have any ideas? can i use the telnetlib python library to read and write commands from the server?
thanks
in addition to this control server documentation the following perl script was provided by the tsreader author. i've tried to get a python telnetlib script to interface with it, but i have never done any python coding, so i'm having all sorts of problems. i'm hoping that by posting this sample perl code, that i can get some nice soul to port it (or a base peice of it) to python.
should i open a new topic to discuss the development of a tsreader (dvb-s) plugin for mytv?
#a sample perl script showing some of the features
#in tsreader's control server
use telnet ();
#connect to tsreader's control server
$t = new net::telnet (timeout => 1,
port => 1399);
eval{$t->open("127.0.0.1");};
if ($@)
{die("unable to connect to tsreader - is the control server running?\n$@\n");};
#display what tsreader sent us
@line = $t->getline();
print "tsreader connected.\nresponse: @line\n";
#display functions in this program
print "functions supported are:\n";
print " 1 - print programs in mux\n";
print " 2 - display graph\n";
print " 3 - switch to a multicast udp mux\n";
print " 4 - play channel via vlc\n";
print "function? ";
$function = <stdin>;
chop $function;
if ($function eq 1)
{
#get and print a list of programs
$t->print("program");
print "these programs are defined:\n";
$doit = 1;
while($doit eq 1)
{
eval {@line = $t->getline(timeout => 1);};
if ($@)
{$doit=0;}
else
{print @line;}
}
}
elsif ($function eq 2)
{
#draw a graph
$dont_send = 0;
print "available graphs are:\n";
print " 0 - close any existing graph\n";
print " 1 - active pids by rate\n";
print " 2 - active pids by pid\n";
print " 3 - pid usage 2d pie\n";
print " 4 - pid usage 3d pie\n";
print " 5 - mux usage stacked area\n";
print " 6 - mux usage line\n";
print " 7 - video rate area\n";
print " 8 - video rate line\n";
print " 9 - program usage\n";
print " 10 - video composition\n";
print "which chart? ";
$chart = <stdin>;
chop $chart;
if ($chart eq 10)
{
print "program number? ";
$program_number = <stdin>;
chop $program_number;
$t->print("program $program_number");
@line = $t->getline(timeout => 1);
if (@line =~ /502/)
{
print("?invalid program number!\n");
$dont_send = 1;
}
}
if ($dont_send eq 0)
{
$t->print("graph $chart");
@line = $t->getline(timeout => 1);
}
}
elsif ($function eq 3)
{
#switch to the multicast source and restart tsreader
print "multicast address to listen to? ";
$multicast_address = <stdin>;
chop $multicast_address;
print "udp port to listen to? ";
$multicast_port = <stdin>;
chop $multicast_port;
$t->print("source tsreader_udpmulticast.dll");
@line = $t->getline(timeout => 1);
print "response to source: @line";
$t->print("tune $multicast_address $multicast_port");
@line = $t->getline(timeout => 1);
print "response to tune: @line";
}
elsif ($function eq 4)
{
$dont_send = 0;
print "program number? ";
$program_number = <stdin>;
chop $program_number;
$t->print("program $program_number");
@line = $t->getline(timeout => 1);
if (@line =~ /502/)
{
print("?invalid program number!\n");
$dont_send = 1;
}
if ($dont_send eq 0)
{
$t->print("play vlc1");
@line = $t->getline(timeout => 1);
print "response to play: @line";
}
}
#all done
$t->print("quit");
BigBellyBilly
2005-09-29, 21:39
jthunder: i think a new thread might be best - i can see a lot of traffic about that subject comming.
i'll try and chip in with any mytv advice you need, but as i've said my time will be limited mostly to bug fixing only over next 3 weeks.
i've released mytv with debug still enabled by mistake, so v1.08a is the one you want.
or just change to debug = false in system\mytvlibrary.py file.
use this yousendit link (http://s42.yousendit.com/d.aspx?id=33spglct8vo21282d0tahdopfn) unitl it appears on xbmcscripts.com
bbb
i am getting this error when trying to run the 1.08a script...
http://www.cavcom.com.au/mytverror.jpg
BigBellyBilly
2005-09-30, 12:03
that means your build of xbmc doesnt have the required python library installed.
update to a recent xbmc and all should be ok.
:blush: ooops!
thanks heaps!
you rock! :kickass:
and you are a god! :bowdown:
maybe not...
i have updated to xbmc to this version xbmc-cvs_2005-09-27-t3ch and i am still getting the same error.
BigBellyBilly
2005-09-30, 13:00
that was a fleeting god like status - lol
but, seriously, i've come across this before and the fix was that the build of xbmc was missing the image module.
did you do a complete wipe/install of the new build ?
i'm running on a 18-09-2005 gasgiver and a mate is running it on a 27-09 pimped no problems.
you could check for the module image.* in /e/apps/xbmc/python/lib/
bbb
i did a complete wipe, and removed the xbmc memory item in the dash.
there are no image.* files in that dir.
humm... ???
you are back to god status :bowdown:
i will stay with the gasgiver builds for now. it all works perfectly!
thanks again,
kahooli
that was a fleeting god like status - lol
but, seriously, i've come across this before and the fix was that the build of xbmc was missing the image module.
did you do a complete wipe/install of the new build ?
i'm running on a 18-09-2005 gasgiver and a mate is running it on a 27-09 pimped no problems.
you could check for the module image.* in /e/apps/xbmc/python/lib/
bbb
if the library is not in the cvs version of xbmc i think you should either include it or deal without it. there is no telling which custom libraries will be installed in peoples builds.
enigma9o7
2005-10-05, 03:17
i just upgraded to mytv 1.08 and xbmc 3oct05.
i initially got the errors already mentioned above, but fixed it by copying all the missing image files in python/lib/ from an older (30may05) version of xbmc.
so far, i haven't had the problem with having to switch right/left to get the correct display, it comes up correctly. however i've noticed the screen kinda "flashes" when i scroll right/left to check other times, didn't notice that before. it doesn't matter tho.
anyways bb great work on the script! i agree with the previous poster, maybe include the necessary image files with the archive to make people's lives easy. i dunno where i would have got them if they weren't in the older version of xbmc.
BigBellyBilly
2005-10-05, 14:56
the zap2it bug has been fixed.
i released v1.08 with debug enabled by mistake, which is why it appears to flash and run slower.it makes the whole thing go 3/4 times slower.
i've uploaded v1.08a to xbmcscripts (last friday) but as yet its not appeared (which i'm afraid to say is becoming the norm)
so, to correct it yourself;
edit system\mytvlibrary.py and set debug = false
i intend to trap this image exception in future, but i was under the impression most builds do incl. the image libs.
bbb.
solexalex
2005-10-05, 20:42
maybe should you add an initialing function to auto-update the plugins (not sure if the word is correct : for yahoo or zaptoit...)
because these parsers may often change
BigBellyBilly
2005-10-05, 21:16
do u mean self changing (ie new regex) or self downloading of a fixed/updated datasource ?
i'm kind of hoping users of the datasources would 'adopt' them and either fix or at least let me know when one is broken ?
there is a script installer on xbmcscripts.com but unfortunately things will not be automatic for zap2it users since the zap2it data source requires some manual editting.
actually it would be good anyway if the zap2it login setting was available from the menu. how about an extention to the data source so it can provide its settings? you can wrap it in a try: block to make it optional.
solexalex
2005-10-06, 00:09
the idea i've got is an autoupdate process for the datasources only and/or the main script
1-check the date/version of the used datasource file
2-if it is not the same as another one on a webserver, then replace it
your work will only be to replace the outdated datasource with the new one, then any user will benefit of this update.
if you create a simple php interface on your webserver, you will be able to easily detect no working datasources :
1- load the datasource
2- if it creates an exception or something like this or from user report (by pushing a button or anythin) then it points to a php page that will log error entry for any datasource
3- by reading this log, you will easyli know which datasource is wrong and so you can repair it as soon as possible
BigBellyBilly
2005-10-06, 16:07
the idea of having a user interface for setting within the gui of the datasource is something i considered early on, but didnt follow it throu as i wanted to do it quicker, however its a good idea an one that could be done once i have a little more time (it course consuming all my spare time at moment and for next few weeks).
the auto-update facility wouldnt be too difficult but i dont want to get sucked into having to maintain a dl site just to facilitate it. maybe if xbmcscripts site could privide an easier 'std' way for scripts to check on version etc ?
bbb.
from my limited knowledge of tv cards...i am gathering that most of the tv cards working with this script are digital cards for use outside of the u.s.. is this correct?
i'd like to buy a card (hardware based mpeg) for standard analog cable in the u.s.. is there a card that this script will be able to setup recording remotely that fits this description?
BigBellyBilly
2005-10-08, 13:33
whether its digital or analogue or its location of use doesnt matter, its whether it can be programmed to setup a recording, from either a url sent to a web interface (ie nebula and others ) or a scheduledtask (hauppauge).
a module can probably be created for any card, if it can be programmed externaly.
bbb.
wow.. all i can say is that this has been some great work by some very talented people.
i just got started with xbmc a few weeks ago, and i have to ask the question 'where have you been all my life?' this script (which i haven't tried just yet), will be the icing on the cake as i've just ordered a dvb card which hopefully will be working early next week.
i *just had to register and show my appreciation to you guys on this one, it's unbelievable how quickly you respond, as well as develop these scripts. way to go.
if you need a tester in canada :d i'm yer guy
cheers,
raff
argghh - help!!!
i love this script - the remote recording through web scheduler works flawlessly.
i'm trying to use the live streaming plugin script, but constantly get the error 'file not created by server'. i know it is because i can exit the script and stream the video through an existing samba share under 'my videos'.
i have concluded that my samba share settings in the script must be incorrect - the file naming conventions and file extensions are all set correctly. i don't use usernames or passwords for sharing - could this be a problem? also i don't understand what is required under the line
#path to web scheduler server recording directory (no slashes)
has anyone else been able to use the livestream under this excellent script?
thanks guys
rob
hi robbo43,
#path to web scheduler server recording directory (no slashes)
refers to the directory that web scheduler records to eg "my recordings". i realise now that the no slashes comment is misleading: if it is in a sub-directory the slash between directories is still needed, eg "my recordings/webscheduler"
i think your problem may well be the password / username issue. as my share requires a username / password i didn't test what would happen without them ...
i wouldn't get your hopes up too high for watching live tv: personally i've found it more reliable to start recording and then selecting that particular file through an xbmc share.
gerner,
thanks for the reply - nice to know i'm not doing something stupid and/or going mad! do you know of a work around for the username/password issue?
it's a shame webscheduler hasn't got a 'broadcast' option that could stream the live feed on request from a client i.e. xbox.
however, have you thought of the option of looking ahead in the epg and scheduling the next 'n' number of recordings (user configurable) and using the merge option to turn it into a continuous live stream. on channel change the future 'live stream' recordings could be cancelled and the recorded 'stream' deleted (as happens now).
i realise that this idea would lead to a huge recorded live stream if you were to watch say 10 continuous hours on the same channel - but it could be an option?
cheers
rob
hi just for those in the uk & use the radio times datasource:
to add more4 until the next release (i guess), you need to add:
1959,more 4
into the channels_radiotimes.dat file in the position you want it to appear...
if you use the nebula digtiv plug in - you need to add the following to the saveprograme.py:
'more 4' : '013',
'more4' : '013',
and the logo for more4 can be found here:
http://www.freeview.co.uk/images/logos_large/logo_lg_more4.gif
jj.
BigBellyBilly
2005-10-24, 13:43
jj: thanks for that- i'll include it in the next release. (do you have the itv4 codes?)
the norweigen data source was also broken (html changes) it now also makes available all channels not just a few.
heres the fix for that.
fixed datasource_nettavisen (http://s52.yousendit.com/d.aspx?id=0zhk5393bptuc23x03ko9dl8s5)
bbb.
hey bigbellybilly, thanks for a very good job :) * i wonder if you can add a source for greek programs. i have found the following url (for today's prog):
http://www.nova.gr/gr/tvguide.asp?action=search&channel=81
which is the only consistent source for all greek channels. needs some html scraping, and the channel id's are as follows:
81=mega, 82=ant1, 225=star, 241=alter, 37=alpha, 586=makedonia, 83=et1, 401=net, 577=et3. *
other days are submitted by appending to the url something like: &weekday=27/10/2005 (weekday is in the format dd/mm/yyyy)
thanks for any help you can offer!
BigBellyBilly
2005-10-24, 16:10
greek datasource to try. *let me know if its ok ?
datasource_nova.py (http://s57.yousendit.com/d.aspx?id=3joe5bl0im0ci1blnhhcowf6jt)
bbb.
the nova datasource works great! *i even tested switching to the greek language, by uncommenting the entry. maybe you should enable it by default.
here's a zip file (http://www.yannopoulos.com/linkclick.aspx?link=downloads%2fmytv_gr_logos.zip&tabid=53&mid=369) with all the channel logos.
thanks :thumbsup:
BigBellyBilly
2005-10-26, 13:02
thanks for the feed back and logos. i will set greek language by default.
could i ask you to be the greek datasource gaurdian ie. just let me know when its broken cos of site html changes?
i'm considering enhancing the datasources so that they're configurable from the gui, but not sure its worth the effort?
thanks
bbb
no problem, i will inform you if it's ever broken. for the second part, probably not worth the effort if you ask me.
bbb
does this script work with the following xmltv format:
<?xml version="1.0" encoding="iso-8859-1" ?>
<!-- created by tsreader from coolstf.com -->
<tv generator-info-name="tsreader">
<channel id="100-home">
<display-name lang="en">home</display-name>
<transport-stream-id>229</transport-stream-id>
<signal-info>110.0w 12.632 r 20000 5/6 qpsk</signal-info>
</channel>
<programme start="20051023140000" stop="20051023150000" channel="100-home">
<title>dish home interactive tv</title>
<desc>get what you want, when you want it! customer service, games, theater listings, sports, news, weather, shopping & more.|110.0w 12.632 r 20000 5/6 qpsk</desc>
</programme>
</tv>
thanks in advance. i am trying to use my own xmltv file in this format and can't get the guide to come up.
todd
BigBellyBilly
2005-10-28, 02:03
no, it wont work with that format. the zap2it xmltv files are big, so the script rips out just the relevant prog info and creates much smaller daily programme files from the dl xmltv file.
look at datasource_zap2it.py
function getprogrammesxmltv
you can see it uses some regex to extract the relevant data:
matches = re.findall("<schedule program=\'(.*?)'\ station=\'"+chid+"\' time=\'(.*?)\' duration=\'(.*?)\'",listing)
so if your own xmltv file is of a reasonable size, you could write your own much simpler datasource, that would extract programmes per channel.
regex: *for your xmltv would be
matches = re.findall('<programme start=\"(\d+)\" stop=\"(\d+)\" channel=\"'+chid,listing)
it would be upto your datasource code to dl or get the data from wherever of course.
hope that helps
bbb.
thanks. *i think i understand.
one other question, i have attempted to start the script and it says (running) for a few seconds then nothing. *
is this because there is not any .dat files in the cache to read from?
thanks
todd
never mind....i was not running a recent xbmc. got it running. great script.
t
HoRnEyDvL
2005-11-01, 06:20
hi bbb.
would u be able 2 fix up the two australian tv guides?
when you press a for more info instead of displaying what teh show is about etc it will eitehr display a message saying no information or just the rating.
would be great if it displayed the shows description aswel it displays shows description on the site it pulls the listing from so dont know y it doesnot work. thanks
BigBellyBilly
2005-11-02, 18:15
horneydvl, some bad news for you.
neither the australian datasource are broken.
datasource_austv - (html based) uses javascript to pull up the additional description window. i've not figured out how to access this - *update* i have now - am working on it.
datasource_ausrss - (rss) whilst this is a more stable source of data, the supplied descriptions are particulaly poor.
example rss file to browse: ausrss sample file (http://d1.com.au/d1xmltv.asmx/getprograms?channelid=free.brisbane.10&date=2005-11-02)
todd557: i've sent you the tsreader datasource in your pm.
bbb
enigma9o7
2005-11-04, 22:08
well, an old problem related to time resurfaced in a new way. last weekend in the us we all set our clocks back an hour for daylight savings. my xbox updated itself just fine (internet sync). however, now when i look at the tv-guide, everything is one hour behind.
i am using mytv 1.8 with the default zap2it datasource file with the line:
gmt_offset = (time.daylight*3600-time.timezone)/3600
BigBellyBilly
2005-11-04, 22:38
the sooner the world abandons this moving fwd and back 1 hour - i'll be the first to raise a flag to it!
what is your current gmt offset ?
what does the calculation result in for gmt_offset ?
print gmt_offset
will display it for you.
let me know.
bbb.
enigma9o7
2005-11-05, 21:15
i agree with the abondoning dst, it's annoying, with today's varied schedules (we're not up with the cows at dawn anymore) and our modern electric lighting, it really doesn't seem necessary. *and with the world coming together, it's just annoying. *i have family in nz, and i always check online what the time is there, can't ever keep it straight... cuz they're southern hemisephere, im northern, so we switch times in oppisote directions... and of course our dates aren't the same... *so dependingon the date, we can be 1-4 hours different from the last time. *anwyay enough ranting.
print gmt_offset results in -8
print time.daylight results in 1
print time.timezone results in 32400
i live in alaska. *according to windows xp, i'm gmt -9. *(i get this by double clicking on the time in my taskbar then selecting the timezone tab, which shows (gmt -09:00) alaska. *the time here is always one hour earlier than pacific time (bc/california/oregon/washington).
if i set gmt_offset=-9 in the datasource.py file all is good. *but it'd be nice to figure out a way to keep it set automatically for the next time dst comes around.
well we got off of dst and the script didnt adjust so it looks like i was wrong about that time.daylight meaning if we are in dst or not. reading the api more carefully i see it just means whether or not a dst is defined for the current timezone. it looks like there are no provisions to adjust for this in python. maybe if you have to talk to an internet timeserver?
it is probably best just to move this offset into the gui. you might was to have the timezone offset and a checkbox for dst be seperate fields....
BigBellyBilly
2005-11-08, 19:22
what about keeping the gmt_offset calc (without the dst part) but then just adding dst on/off checkbox to gui config menu, which would adjust that offset by +1 hour if set. (or visa versa +/-1 hour - not sure which way it is now as i've confused myself with it).
it would default to off.
sounds best. dst is crazy anyway and varies depending on local laws / acts of congress (next year they are extending dst by 3 months for some reason and some us states dont follow it).
BigBellyBilly
2005-11-22, 12:11
mytv v1.09 is ready to be released but i need some help with one of the new features.
it now supports genre icons, but try as i might, i cant find any that are good enough to be clear at the small size thats required (23x23 pixels)
genres identified from zap2it and radiotimes:
adult
animation
children
comedy
documentary.png
drama
entertainment
film
interests
limited series
music and arts
music
paid programming
series
sitcom
soap
special
sport
talk show
i now think that monochrome icons will be much clearer. does anyone have a suitable set that i can use ?
any help appreciated
bbb
what about keeping the gmt_offset calc (without the dst part) but then just adding dst on/off checkbox to gui config menu, which would adjust that offset by +1 hour if set. (or visa versa +/-1 hour - not sure which way it is now as i've confused myself with it).
it would default to off.
perfect!
BigBellyBilly
2005-11-22, 18:06
yes, thats in too.
also:
new. datasource_nova - greek (in greek or english language)
new. datasource_tsreader - gets a tsreader xmltv file via smb from a pc
new. daylightsavingtime (dst) option added to config menu.
new: timeline colour scheme config menu
new: genre icons (for datasources that have genre information)
new. added subtitle & genre information to prog description (radiotimes/zap2it)
updated: datasource_austv - now gets description & other prog info (cast etc)
updated: logos
genre icons is holding up release at moment, but i've got these icons from amazon, which are clear at roughly the right size.
http://g-images.amazon.com/images/g/01/gateway/icon-music-tan.gif
http://g-images.amazon.com/images/g/01/gateway/icon-video-tan.gif
http://g-images.amazon.com/images/g/01/gateway/icon-kitchen-tan.gif
http://g-images.amazon.com/images/g/01/gateway/icon-toys-tan.gif
http://g-images.amazon.com/images/g/01/icons/icon-magazines.gif
i dont think i need to support all possible genres , but i'd certainly like some more for ;
drama, soap/sitcom, documentary
bbb
genre icons is holding up release at moment, but i've got these icons from amazon, which are clear at roughly the right size.
http://g-images.amazon.com/images/g/01/gateway/icon-music-tan.gif
http://g-images.amazon.com/images/g/01/gateway/icon-video-tan.gif
http://g-images.amazon.com/images/g/01/gateway/icon-kitchen-tan.gif
http://g-images.amazon.com/images/g/01/gateway/icon-toys-tan.gif
http://g-images.amazon.com/images/g/01/icons/icon-magazines.gif
i dont think i need to support all possible genres , but i'd certainly like some more for ;
drama, soap/sitcom, documentary
bbb
what about making the grid cells different colors depending on the genre? this is what titantv and zap2it do... it looks very nice and takes up zero space
BigBellyBilly
2005-11-22, 18:35
i considered it. but decided upon icons, which i coded before finding the icons - big mistake! :|
but, i could have a combination of both, and allow each method to be enabled/disabled depending upon preference ?
wait where do the icons go? in the description when you hit info? in the table cells? im not sure how well those icons will look on a dark background...
BigBellyBilly
2005-11-22, 22:05
well the icons have a white surround, so they stand out. they're placed at beginning of each programme, if that prog genre matches an 'enabled' genre. *i've also, added the genre text (ie drama) to the description (along with new subtitle information). *i could add the logo on there too?
each genre can be turned on/off from the config menu.
i originally decided to use the icon system as its easier to determine what each one represents, as opposed to having to remember which genre a colour represents.
but. i've now decided i'm going to include 'genre by colour' as well as icons. thats way you can use either or both methods.
i've also added a new timeline colour config menu, so you can now choose your own colour scheme, so you can have different colours for odd/even lines giving you a stipped effect etc. i've also included in that setup some preset colour schemes. so,you can now make whatever mess you like for colours (and its quite easy to do! - hence the reset to default option)
so, v1.09 is delayed abit now. but might as well get it right.
cheers for the input
bbb
sounds cool cant wait to give it a go..
have you thought of using an icon to signify a favourite prog ? - or one with a timer set ?. i meant to have a look into the code for the recent changes for 1.08 (where the favourites got added etc..) but didnt have time :(
i considered it. but decided upon icons, which i coded before finding the icons - big mistake! :|
but, i could have a combination of both, and allow each method to be enabled/disabled depending upon preference ?
cool... i think colors is good since it does not take up any screen space.
BigBellyBilly
2005-11-30, 11:55
new release v1.09 available from xbmcscripts (http://www.xbmcscripts.com/index.php?option=com_docman&task=doc_download&gid=138&itemid=array)
changelog
-----------
new. datasource_nova - greek (in greek or english language)
new. datasource_tsreader - gets a tsreader xmltv file via smb from a pc
new. datasource_tvnz - newzealand
new. daylightsavingtime (dst) on/off option added to config menu.
new: timeline colour scheme config menu
new: genre icons (for datasources that have genre information)
new: genre colour coding (for datasources that have genre information)
new. added subtitle & genre information to prog description (radiotimes/zap2it)
new: saved programme timer icons.
new: view timers menumenu option.
updated: datasource_austv - now gets description & other prog info (cast etc)
updated: logos
let me know of any bugs you might find. thanks to those that have helped with suggestions/beta testing etc.
cheers
bbb
wingtipz
2005-11-30, 18:12
i'm looking to get a little help with the save programme function. i've got mytv set up, the guide works great, but when it comes to being able to set up a recording, xbmc hangs or errors out. i am using wintv2k for recording but feel that i'm having problems with the smb setup. i am running xp, but don't use a password to log in, so that is blank in the config.dat. what is the difference between smb_share and smb_dir in the config.dat, and how complete does the directory have to be in that line? i mean, does it need to be c:\shared documents\ or ip\shared documents or something different? if somebody could help me out here i would appreciate it.
i may have questions on the mytv schedular too, as the mytv_schedular_setup.bat didn't seem to work, a cmd window would flash up but there was no scheduled task, so i just did a drag and drop with the mytv_schedular.bat to the scheduled tasks window and made sure it was going to run every minute.
thanks again,
gabe
BigBellyBilly
2005-11-30, 18:27
am i right in assuming your using the hauppauge saveprogramme module ?
set mytv_schedular_setup.bat to run on startup on the recording pc. this will cause the second prog mytv_schedular.bat to be called every min.
that second prog looks for any suitable files that have been sent from the xbox and appear in the designated folder/
i run these on the recording pc under an administrator grade user.
you will need to edit those two files to use the folders where you've decided to have the recordings.
they're currently setup to use 'e:\xbox\' - which on my recording pc is its own hdd.
you will need to set that folder as a shared folder.
its that shared name and folder that you then enter into mytv smb settings.
wingtipz
2005-11-30, 18:44
yes, i'm using the hauppauge saveprogramme module.
so it's the mytv_schedular_setup.bat that should be in scheduled tasks, and it's calling the mytv_scheduler.bat to look for files to record.
on the recording pc there are two users, my wife and i and we are both administrator users, but we don't use passwords. what should i put for username and password in the hauppauge saveprogramme module?
this is my config.dat, does it look ok?
[mytv]
smb_username = gabe
smb_ip = 192.168.2.2
smb_share = c:\documents and settings\all users\shared documents\
smb_dir = c:\documents and settings\all users\shared documents\my videos\
save_programme_method = smb
listsvisible = yes
24hrclock = no
datasource = zap2it
smb_savefile = mytv_rec_$d$m$y_$h$i_$l.bat
save_template = $c~$t~$s~$l
BigBellyBilly
2005-11-30, 20:37
yes, so in windows startup you will have 'mytv_schedular_setup.bat'
oth the batch files need to be edited to point to your save share folder.
ie.
"g:\my documents\my tv\mytv_schedular.bat\"
you should then see in the xp scedule tasks folder 'mytv recording schedular' which runs every min.
mytv config settings:
if you dont logon with a password then you dont need one.
these are my smb settings from the config file:
smb_pcname = kitchen
smb_ip = 10.0.0.5
smb_username = kitchenpc
smb_share = my tv
smb_savefile = mytv_rec_$y$m$d_$h$i_$l.bat
smb_password =
where the 'my tv' share name is actually 'g:\my documents\my tv' on the pc (make sure 'allow network users to change my files' is ticked)
if you then highlight a programme in mytv and select saveprogramme from the white btn menu, it'll send a file to that share folder. *the every min schedtask batch job will pickup the file and create a hauppauge recording task.
thats it.
wingtipz
2005-11-30, 22:57
thanks for you input. it seems like i did all the things you are talking about when i was playing with it last night and when i selected save programme from the menu it would either freeze xbmc or just give me a smb error.
i'll try it more tonight and see if i can get any farther.
wingtipz
2005-12-01, 06:20
alright, now this is starting to get frustrating. i am to a point where trying to use save programme no longer causes xbmc to crash, but i consistantly get an unable to smb error, telling me to check my directory and such.
here is my config.dat, where shared documents is c:\documents and settings\all users\documents\ on the pc and is my shared folder i use smb for music/videos/photos.
[mytv]
smb_pcname = home
smb_ip = 192.168.2.2
smb_username = gabe
smb_share = shared documents
smb_dir = shared document\my videos
save_programme_method = smb
listsvisible = yes
24hrclock = no
datasource = zap2it
smb_savefile = mytv_rec_$d$m$y_$h$i_$l.bat
save_template = $c~$t~$s~$l
any suggestions on what else i could be missing or needing to look for? something in the saveprogramme script itself?
have you confirmed wirte permissions on the share directory. you could confirm this in the my files area of xbmc.
BigBellyBilly
2005-12-01, 13:23
this recording action happens in two parts (for hauppauge)
1) it creates a schtasks batch file suitable for setting up the recording on the remote pc (done with saveprogramme.py)
2) sends it via smb
firstly, you need to change the save programme method to
'custom script then smb'
otherwise it wont call the saveprogramme module that creates the appropiate cmd line thats sent to pc.
the default installed saveprogramme.py is for hauppauge cards. but, edit that file and make sure two things are correct for your setup.
1) tv card installation location
eg exe_path = "c:\\program files\\hauppauge\\wintv nova\\dvb-tv.exe"
2) folder that your tv card records to
rec_dir = "c:\\documents and settings\\kitchenpc\\my documents\\my tv\\"
then the sending via smb:
create a folder 'my documents\my videos'
enable sharing, make sure permissions for changing/writing is enabled.
remove the smb_dir option, its not needed as it'll save the file directly to 'my videos' folder.
[mytv]
smb_pcname = home
smb_ip = 192.168.2.2
smb_username = gabe
smb_share = my videos
smb_savefile = mytv_rec_$y$m$d_$h$i_$l.bat
i've duplicated this setup and it works fine. if it still doesnt work for you, let me know which error msg you get:
ie failed to connect to smb
or
failed to login to smb
or
failed to send file to smb
let me know how you get on. it does work, i and many others use this method and i find its quite reliable without ever crashing xbmc.
bbb
wingtipz
2005-12-01, 18:11
thanks for you input. i don't doubt that it works well for most people. the actual guide portion itself is awesome, and i appreciate the work that's gone into making this what it is.
i'll check into the things mention here again tonight when i get home and see what i can do.
thanks again! :)
wingtipz
2005-12-02, 05:12
alright, well, i'm getting farther. i hadn't told it to run custom script then smb. doing that got me to a point where it asks me if i want to save the program. then i get and error stating: unable to translate programme title to channel...
any ideas?
thanks for all the help!
gabe
hey bbb, really cool to see you keep coming up with new features for this script!, although the menu’s are looking a bit full these days ;)
nice to see the start of something with view timers - is there any way to tie this into the script you are using to send scheduling commands i know digitv offers a view timers, but not sure about the webscheduler or others you’ve supported…
anyway, keep up the good work !
jj
BigBellyBilly
2005-12-02, 12:34
ok, now you have found a problem (sort of).
in saveprogramme.py it needs to translate the channel id into a hauppauge channel code.
ie 'bbc1':'233a100a104a02580000'
your problem is that your zap2it channel isnt in the translation list. tbh, i've only been able to code in the uk freeview channels as thats all i can see.
you can get your own chanel list from the hauppauge file called 'digitaltv-t.lst' (or simlair) found where the card is installed too.
if you'd like send me that file, i'll try and add the additional channels into the lookup list.
hope that helps
bbb
BigBellyBilly
2005-12-02, 12:44
jj: the timers support is pretty simple at moment. ideally, fuctionality should be moved to the relevant saveprogramme module, then they could query the tv cards as they know best.
if you'd like to send me a list of querying cmds for your card, i'll try and work them in, somehow. i expect the new 'view timer' to become 'manage timers'.
i use the hauppauge card, and i'd have to figure out someway to get a list of waiting schtasks and maybe cancelling them?
pm me with the cmds when you've got a list together.
cheers
bbb
wingtipz
2005-12-03, 21:32
alright, i've added the translations for each of my channels to saveprogramme based on what you already had there. basically it's the call letters for the station, then -cxx where xx is the particular channel number. it will be different for each region of the us.
hitting save programme in the menu now asks me if i want to save, i say yes, then the smb errors out still. i am getting the failed to send file to smb error, then another error window after that with a bunch of code.
i have confirmed that my share allows read/write, in my files in xbmc i can create folders and rename files with no problem
thanks,
gabe
enigma9o7
2005-12-09, 06:39
just wanted to praise you again on the latest release.
mytv quit working for me a few weeks ago, but i've been too lazy to figure out why. decided to start from scratch with the new version, and although it still didn't work, at least i knew why! my zap2it account had expired, in v1.08 it just gave error after error after error that didn't mean anything to me and it took forever to click thru them all.... v1.09 told me my subscription might be expired ;) very nice, which was easy enough to renew once i knew that's what i should do! and i didn't have to make any manual adjustment for dst, which is nice, and i see that if i have a problem in the future i can change it from the console. sweet! thanks again.
i have to say, this script sounds amazing, my nebula card doesnt get much use as it is, but i think i'm going to dig it out and have a go at using it with this script.
theoreticly i can schedule a recording with the script, then navigate to an smb share of the recording folder and playback the file as its recording, this isnt very elegant though.
could the script be modified to automaticly show "play now" as well as record, if the program is on now? then the script would schedule the recording, then start playing the file(over smb), all seamlessly, when you stop or exit fullscreen you should end up back at the guide, and you'll have achieved the holy grail, proper streaming tv to your xbox, to all intents and purposes.
BigBellyBilly
2005-12-09, 11:42
hey, thanks for the sweet words chaps. always nice to know the many nights scripting till the early hours are appreciated. you've no idea how many times my missus has said to me in the morning "..and what time did you get to bed last night !?"
i've a few outstanding bugs that will get priority (mainly unicode problems) but i'll add your suggestion to my 'r&d list'.
hey, i made it onto the top 5 downloads on xbmcscripts, cause enough to have some extra beer on a friday night if ever i needed an excuse :))
cheers
my zap2it account had expired, in v1.08 it just gave error after error after error that didn't mean anything to me and it took forever to click thru them all.... *v1.09 told me my subscription might be expired
this is the only issue i've had with mytv... when you get the error it just loops forever and i must reboot the xbox to get out of the loop.
bbb,
can you put some error trapping in for that so it does not loop?
freddo: - i know bbb was looking to your suggestion - *but it seems it isnt as simple to setup a stream now function with digitv - especially as nebula in the planned app upgrade is planning to encrypt the stream to prevent other apps accessing.. *:sniffle:
however nebula are releasing a plug in designed to stream the tv prog across the net to web browsers, so who knows when that day come sit maybe possible (without running tsreader and other stuff)
another option might be as you say, to schedule the recording, then a second or two launch the file via mplayer (i`m not sure if you can access these files via a python script tho), then send the command to delete the file once you either press stop, or programe end??? but as the delete option depends on the position in the list of recodrings it appears rather than the filename, you'd have to be careful the files matched up, otherwise you could end up deleting files you wanted to keep (does this make sense ?!?! :lol: )
:)
hello, i'm not sure if this has been covered before. sorry if it has.
mytv doesn't work with the latest build of xbmc (december 18th) due to some changes in the python interpreter and skinning engine.
after downloading any tv listing, it displays a dialog box showing 3 lines with 'my programs' written, and then freezes. i tought it may be an issue with the datasource i'm using, but the problem was reported by other users (see here (http://forums.xbox-scene.com/index.php?showtopic=471473&st=16#)).
BigBellyBilly
2005-12-21, 16:42
o great. :no:
i see no mention of python changing in the xbmc changelog ?
i am aware that the skinning system is in the process of being upgraded, but i dont use any of that.
do you have any more specific information?
can you send me a debug log of it crashing ?
bbb
will try to tonight.
in the latest build of xbmc there was an issue also with the file dialogsubmenu.xml which pops up the 'script menu' in the middle of the xbmc screen instead of where it should.
turns out that some special tags like <posx> are now case sensitive. by changing them to <posx> the problem is solved. hope this helps (but i guess it doesn't if you don't use any skinning stuff).
the kml-webradio script also has the same problem, so it's probably related to xbmc *:no: if you use mytv & kml better hold on to your old xbmc builds and don't install new ones (after dec-11) until they fix the issue.
http://users.hol.gr/~ayan/images/xbmc-error.gif
here's an answer i got, bbb see if you can make anything out of it:
they are writing to a dialog with a string id that doesnt exist so string id 0 is used. *string id 0 is "my programs"
ewww, looks like that would break pretty much every python script out there since we have no way to write string id's afaik...
i swear sometimes it seems like python is pretty neglected in xbmc, i don't even think python is built in the default build script...
BigBellyBilly
2005-12-22, 17:03
some extra info on whats happened in this thread
here (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=3;t=17632;)
but, i agree, breaking so many scripts isnt good for xbmc.
BigBellyBilly
2005-12-23, 12:57
mytv v1.10 (awaiting approval at www.xbmcscripts.com)
new: 'play video from smb'
new: 'stream a url' option - takes url from those listed in config.dat
new: saveprogramme module selectable from config menu (and at initial startup)
new: 'manage timers' option queries digittv directly allowing timer/recording view/deletion. other tv card users have normal viewtimers but can now also delete them from the locally stored file.
new: set timer clash check
fix: saveprogramme called but timer not added to list (in somecases)
fix: epg going back to current time after using menu (in somecases)
fix: some unicode problems - please let me know if u find more.
changed: gui minor tweaks.
updated: logos
merry christmas !
ps.
has issues with xbmc builds from mid december onwards, but so do most other scripts...
cool !!
i can already say the nebula manage timers option works a treat !!, thanks for all the work, & have a good holiday !
jj.
hi bbb,
just been playing about, and found the new clashing timers function.. is it possible to make this elective (i.e. turn on/off), as there maybe cases where timers can be set on multiple channels overlapping eg. if on the same mux (eg. bbc1 & 2), or if the host pc has multiple cards ??
small bug -
1. clearing cache of exisiting listing data also deletes the timers files which store where the nice icons should appear (for those programes you have selected to record) - i understand why, but if you're just doing a refresh of some data eg. the listings descriptions are out - it will forget and it may have consequenses later on...
??? :d