[req] American Tv Widget

hey guys I had an idea for a avedesk desklet

i know there is something like this for samurize but i found it difficult to set up

here is my idea for it

(if you need the gfx for it I could get it to you)

-------------------------------

Dont use composite tags, they don't exist

The Topic Has Been Re-Tagged

// Seph

post-1344-1091293150_thumb.jpg

Untitled_1_copy.jpg
Untitled_1_copy.jpg

#196627

Sound good !

/aviel

#196631

I would like that.

NFL on FOX!?! Already?!?

/wizard gets out Raiders mask and axe and waits for football in front of the TV

#196634

I'd like something like this too, the ATI tv thing [Guide+] takes forever to load ... although I'm in Canada, and there seems to be a lot less websites that support Canadian listings.

#196651

Problem's I can see if a USA/ Canada etc. only widget was made would be people like me from Australia asking for one for my/ our region.

The easiest way to solve this I think would to be have a simple widget to read an xml file with the TV listing grabbed from the site of choice using XMLTV ( XMLTV Homepage

#196817

Wiz, just prepare to get a dose of football sodomy by the Pats.

#196826

XMLTV was what i was thinking of to

i know the the thread says american tv but an international version I think would benefit everyone

also just a reminder to someone whos thinking of making this desklet

there is a samurize config that uses XMLTV to get tv listings so it might be help you get a headstart , other than that good luck coding (i just hope somebody comes thru)

#196844

Well after looking at the help file included with SysStats the list of meter's includes XML

"Loads an XML file. Just give it a URL and it will fetch the file at the interval specified. The URL could be for a web site or a local file. The included Weather config uses this meter. You could use it for an RSS feed too (RSS uses XML) or any other data that you can get a hold of in XML."

So we are half way towards our objective.

As to how to do it, I have no idea :D

We just need a configuration now that can read an locally stored XMLTV.XML file grabbed from the site of choice or similar.

#198657

although I'm in Canada, and there seems to be a lot less websites that support Canadian listings.

Canada.com has a good tv listings feature, you just pop in your postal code and select your format (antenna, shaw, rogers, express vu etc).

#198658

Well after looking at the help file included with SysStats the list of meter's includes XML

"Loads an XML file. Just give it a URL and it will fetch the file at the interval specified. The URL could be for a web site or a local file. The included Weather config uses this meter. You could use it for an RSS feed too (RSS uses XML) or any other data that you can get a hold of in XML."

hmm if thats the case we can andreas or judge for help but they might be busy

i'm not too much of a coder thats why i cant really help but once all the widget requests calms down a bit i'll ask judge if he has time to make this widget

#198831

I would love this widget as well...

Not only American TV because I live in Sweden (Europe) so I think both me and Andreas would like to be able to use European tv channels :)

#204415

i've been looking into this

and i'm not sure whether to use tv.yahoo.com (used by the tv konfab widget) or use xmltv.com

eitherway i'm very certain we'd need a new script for sysstats cause i don't think the xml reader that we use for weather will work

#204600

Hiya (everyone, first post here on these forums!)

Interesting thread this one, I would like to get some sort of TV listings also. idicula, looking at tv.yahoo.com a minute or two ago - I couldnt get any listings for any UK channels at all (not sure if its even listed!)

I have used xmltv before and had TV listings if I remember correctly.

#204677

We need a script to format or read the program information from a xmltv xml file so it can be displayed as whats on now, next etc.

The xml reading portion of sysstats will do fine, it is due to not knowing what the current time is and the portion of the xml file to read that poses diffuclty without knowing what the time is when read..

A script that takes the following :

<?xml version="1.0" standalone="yes"?>

;http://www.w3.org/2001/XMLSchema-instance" xmlns=";http://tempuri.org/listings.xsd">

ABC TAS

SBS Tasmania

Southern Cross Television

Tasmanian Digital Television

WIN Television TAS

Rolf Harris' Animal Hospital

Australias own Rolf Harris in a delightful series. Veterinary experts at the RSPCAs Putney Animal Hospital in South West London come to the rescue of wild and domesticated creatures in sickness, injury and distress.

G

Cantonese News

News via satellite from ATV Hong Kong, in Cantonese, no subtitles.

Sunrise

Breaking news, sport and weather with business and finance updates. With David Koch, Melissa Doyle and Natalie Barr.

Totally Wild

Explore the natural beauty of Australias native flora and fauna.

G

Today

Steve Liebmann and Tracy Grimshaw present three hours of television, covering news, current affairs, sports, the latest in politics and reports from specialists in a variety of fields including entertainment, fashion, health and food.

Mandarin News

News via satellite from CCTV Beijing, in Mandarin, no subtitles.

Aliens Among Us

Combines live action and animation to allow real students to interact with Cosnok, a wisecracking animated alien. The series brings to life entertaining tales about what it means to be a kid on Planet Earth.

G

Aerobics Oz Style

From stunning Sydney locations, get fit the Aussie way with one of Australias leading aerobics teams.

G

----------

needs to retrieve the program info etc. for the current time and previous and next.and be able to display in user configurable way.

So the script needs to know what time it currently is and then display the relevent info from the programme start portion of the xml file.

#204682

for those who tried to copy paste the above into a xml file and display in a browser

or load it somehow, the closing tags

</tv>
</NewDataSet>

were missing.

I didn't understand your troubles with time; in a script you can query the system

time at no problem.

start="20040805060000 +1000" stop="20040805063000 +1000"

seems to mean:

start="2004.08.05 06:00:00 +1000" stop="2004.08.05.06:30:00 +1000"

should be easy as in

Sub CheckTVNode(actNode)
 Dim actDate, elemStartTime, elemStopTime, start
 start = actNode.getNamedAttribute("start").value
 stop = actNode.getNamedAttribute("stop").value
 actDate = Now
 elemStartTime = SerialDateTime( mid(start,1,4), mid(start,5,2) ...
 elemStopTime = SerialDateTime( mid(start,1,4), mid(start,5,2) ...
 If elemStartTime <= actDate <= elemStopTime Then
   'Whopee its runnin' Go display somewhere
 End If
End Sub

but how do you want it displayed? Can someone make a mock up

of it? As I can see there are short descriptions inside and I daresay you won't fit

the "what's running now on 30+ UK channels" on a desklet of 128x512 pixels...

Also I doubt that this XML format applies to all available EPG streams on the

web. Does a W3C recommendation exist? May I recommend an XSL transition to

a lowest common denominator format discarding useless goo?

E.g. , I don't see hyperlinks to station logos (plain gif files) here, that other EPGs

feature...

edit:

Since you were bringing SysStats into discussion, don't speak of

scroll buttons or bars or context menus because there aren't any yet.

#204857

http://membled.com/work/apps/xmltv/ is the "standard" format used widely for grabbing EPG data to be used by the various programs out there.

By using xmltv it allows a wider amount of users to grab EPG data and store the xml file locally in a common format and therfore only one script needed to extract that data.

If a EPG grabber was made just for US or UK etc. then a script for all the various countries and even web sites used would be needed.

In it's most basic form I and other's (?) would like to be able to "extract" the program title at the current time for each channel ( user configurable as to how many shown/displayed ) and be able to show a image for station logo ( can be in the xml or user defined )

The next step onwards would be being able to show the program description and also next program.

A sample mock up is below.

sample.jpg

User defines location of station logo ( locally stored or from web/ xml file ? ) and what is currently showing with description for the channels defined.

If there were 30 channels, you could choose to show 10 etc.

I take it to show what's on next a time offset would need to be defined to grab the info for the following program.

I have no knowledge of scripting except how to spell it :D

#205089

Okay to help you all out on this little adventure :)

I don't know if it has any significance with AveDesk but in Samurize they have scripts (javascript) that grab xml information from sites and then parse the html (or something like that)

So I'll attach the file here so you can take a look at a script called "GetTV.js"

GetTV.rar

Attachment: GetTV.rar

#205109

Hmmm... I've searched the forums, but nothing has turned up. Did everyone ever run with this?

#288824

Anyone have any luck with this? I noticed that Kapsules has a widget too using XMLTV. I'd REALLY like to have this widget if at all possible.

I aint too proud to beg. :cool:

#311946

I agree with the huge number of channels, but maybe make it user settable to a pruned-down list of "favorite" channels....this would be an awesome desklet

#311993

I have this pretty cool Samurize config that works really well, albeit for Australian channels. It's user definable as to which channels you want displayed (via the config editor) and I've tried to make it work with SysStats but have struggled to get it working - as soon as I try to connect a ScriptMeter to the (edited) .vbs file, SysStats crashes and takes AveDesk with it.

I've attached the original script so if any brave souls want to try to make it work, OR can point me in the right direction to at least get it started (hint hint Judge ;)) , please feel free...

If I have any breakthroughs, I'll post.

AusTV_1.1.zip

Attachment: AusTV_1.1.zip

#312100