wiztimerd-0.2 timer setting perl utility.

Advanced Discussions on Programing for & Modifying Beyonwiz Products.

Moderators: Gully, peteru

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Thu Oct 15, 2009 20:44

Kezza wrote:found the problem, its the formating of the config_channels_inc.php file.
for wizremote it looks like this

Code: Select all

<?php //Generated 13-Oct-2009 16:56:33
snip
found this out by using the perl script, it returned the above file with no php
Bugger bugger bugger... I am really really sorry about that. I ran it 2 nights ago to test it all out (to post here also, and to get my new PC up and running properly with Perl etc), and it was working fine on my new Wiz firmware (even with the odd channels in the channel list, but most of the 'strange' channels appeared after their correct counterparts, so due to the first match, not an issue)... but of course, I ran the perl script to get the config_channels file created.
I will look at what needs to be modded (should be a piece of cake) to fix this for version 0.3.... but have been considering (like EPG_uploader on the Toppy and lots of other things lately... considering, not doing.. I need about a 2month holiday from work to get everything done that I want) to use pvrtimersd from Jim as it uses much tidier code etc.
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Thu Oct 15, 2009 20:49

hey I'm happy it works now 8) at least we found the problem
is there any good xml data you would recomend?
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Thu Oct 15, 2009 21:03

I use ICE which is great data :-). Actually, sometimes it is average, e.g. generic show information rather than episodic descriptions. But repeat flags are very very nice.
You got yours from oztivo which I thought was the best source?
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Thu Oct 15, 2009 21:21

might not be time will tell, its got some wrong data on GO! already so we will see.
thanks for the help, looking forward to an upgrade :twisted:
is there any chance we can get the data off the epg from the BW?

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Thu Oct 15, 2009 21:42

Yep, is pretty easy... the EPG is cached in clear text (well, the ICE one was). Noone has bothered to interpret it fully (some of the TSID/ONID/etc are binary rather than text), but it shouldn't be too difficult to intepret.
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Fri Oct 16, 2009 16:03

tonymy01 wrote:Yep, is pretty easy... the EPG is cached in clear text (well, the ICE one was). Noone has bothered to interpret it fully (some of the TSID/ONID/etc are binary rather than text), but it shouldn't be too difficult to intepret.
so we should expect this in the next version :twisted:
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Post by prl » Fri Oct 16, 2009 16:06

Kezza wrote:
tonymy01 wrote:Yep, is pretty easy... the EPG is cached in clear text (well, the ICE one was). Noone has bothered to interpret it fully (some of the TSID/ONID/etc are binary rather than text), but it shouldn't be too difficult to intepret.
so we should expect this in the next version :twisted:
It should be possible to retrieve the EPG cache using WizPnP's HTTP server :)
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Wed Oct 21, 2009 10:38

Its not finding any matches now, no timers have been set.
It runs fine but the log file says no matches.

Don't think I changed anything and it says there are 25 favs.
Any ideas what could be wrong?
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Wed Oct 21, 2009 12:04

Do you have the full log? That might give a hint, as it scans thru it gives quite a bit of info.
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Wed Oct 21, 2009 12:18

Code: Select all

                          wizTimerd Version 0.2

                          Wed Oct 21 08:36:47 2009

        Working Directory       :  ./
        XML File                :  listings.xml
        Repeat Flag             :  \[Rpt\]
        Repeat Method           :  new
        Favourites File         :  favourites.ini
        Date Stamp              :  DD/MM
        Start Buffer            :  -00
        End Buffer              :  +00
        Join Delimeter          :  +
        Title Episode Delimeter :  -
        Time to Add For Overrun :  15 mins
        Additional Time         :  50 mins
        Additional Time Start   :  0
        Additional Time End     :  360
        Download String         :  
        Transfer String         :  
        Ignore timers           :  

        Rename channel string   :  "Seven Sydney-7 Digital:Seven HD-7 HD Digital:Nine Sydney-NINE DIGITAL:Nine HD-NINE HD:GO!-GO!:One NSW-ONE HD:Ten Sydney-TEN Digital:ABC1 NSW-ABC HDTV:ABC2-ABC2:SBS NSW-SBS ONE:SBS2 NSW-SBS TWO:"
        Write Log File          :  yes

        Actions to be performed

            Download EPG            :  Yes
            Search EPG              :  Yes
            Output Timers           :  Yes
            Transfer EPG            :  Yes


    Reading Repeats File

        Recorded Repeats        ::: 0

    Reading Favourites File


	Total number of favourites    ::: 26

    Reading Overrun Shows

        Number of overrun shows ::: 1

    Reading and Searching XML document for favourites

			Room For Improvement... detected. Flagging for overrun
			Resetting Overrun Detection
			Global Grover... detected. Flagging for overrun
			Resetting Overrun Detection
			Room For Improvement... detected. Flagging for overrun
			Resetting Overrun Detection
			Rove Live... detected. Flagging for overrun
			Resetting Overrun Detection
			Global Grover... detected. Flagging for overrun
			Resetting Overrun Detection

    Checking Timers

    Updating 

    Sequential Joining


    Adding Additional Time


    Results Of Search

		Number of shows found      ::: 0
		Number of repeats omitted  ::: 0
		Number shows after joining ::: 0
		Adjustments made           ::: 0
		Number of timer clashes    ::: 0

					From 2586 of events
	Total Time Taken ::: 492 secs

? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Wed Oct 21, 2009 15:37

i feel so stupid it was all me.
i used spaces instead of tabs when re-writing the favs file :oops:
thats a trap for young players

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Wed Oct 21, 2009 21:14

Kezza wrote:i feel so stupid it was all me.
i used spaces instead of tabs when re-writing the favs file :oops:
thats a trap for young players
I was just driving back from squash and got home just now, I wanted to post in here whether you had done that by accident, as that was the only thing I could think of given I believe you have the general format ok of the faves file from previous posts here. Glad you solved it, it seems getting this to work is a marathon for you, everything takes 2 or 3 days to solve... sorry I couldn't provide instant assistance, I hardly have a spare minute in any day now, and only sleep 5 or 6 hours a night grr...
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Wed Oct 21, 2009 21:43

at least if i document everything, by posting in here someone else might have an easyer time setting it up from reading this :lol:
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
jillybean
Apprentice
Posts: 74
Joined: Sat Mar 01, 2008 12:15
Location: Hervey Bay, Queensland

Post by jillybean » Fri Oct 23, 2009 16:41

After seeing Kezza get this sorted and working I decided it was time I gave it a go - I had resorted to using DV Scheduler and my PC to automatically schedule & record stuff in preference to Ice Interactive because of the inability to prioritise with Interactive, but this seems like a cop-out.

I have things all set up and working - sort of. Searches are finding shows, but some timers are being set without problem and others have ChanError: preceeding them. All timers for favourites found on ABC1,ABC2,ABC HDTV,SBS ONE,SBS TWO & GO! are ok (Ice name is the same as PVR name for these channels) - those on Seven, WIN, SC10 & ONE HD are not.

As I am using Ice as the xml source, and because I am in a regional area where the Ice names for Channel 7 are Seven - QLD & Seven HD - QLD I have edited wiztimerd.pl (@ line 684) to use ~ instead of - as the Ice/xml separator for renamechannels in wiztimerd.settings. This worked for PerlTGD but is there something/somewhere else I need to change (assuming this is part/all of the problem)?

My config_channels_inc.php is

12802,944,945 => SBS ONE
12802,944,946 => SBS TWO
12802,944,947 => SBS 3
12802,944,948 => SBS 4
12802,944,949 => SBS HD
12802,944,958 => SBS Radio 1
12802,944,959 => SBS Radio 2
4112,579,704 => ABC HDTV
4112,579,705 => ABC1
4112,579,706 => ABC2
4112,579,707 => ABC1
4112,579,708 => ABC3
4112,579,710 => ABC DiG Radio
4112,579,711 => ABC DiG Jazz
4115,2368,2384 => 7 Digital
4115,2368,2388 => 7 HD
4115,2368,2385 => 7 Digital 1
4115,2368,2386 => 7 Digital 2
4115,2368,2387 => 7 Digital 3
12913,12916,10 => WIN HD
12913,12916,2 => GO!
12913,12916,1 => WIN TV Wide Bay
12812,2066,2066 => SC10 Wide Bay
12812,2066,2098 => One HD Wide Bay
12812,2066,2130 => SC Ten


An extract from the wiztimerd.log

adding: QI-Fight Or Flight 55131:55131:77400:1800:0:0:0:4112:579:704"
ABC HDTV
adding: Spicks And Specks-091028 55132:55132:73800:1800:0:0:0:4112:579:707"
ABC1
adding: Doctor Who-Blink 55130:55130:77400:2700:0:0:0:4112:579:706"
ABC2
adding: Moonlight-Love Lasts Forever 55126:55126:73800:3600:0:0:0:12913:12916:2"
GO!
ChannelError
adding: ChanError:Nurse Jackie-Tiny Bubbles 55130:55130:81300:2100:0:0:0:0:0:0
SC10
adding: East West 101-Just Cargo 55131:55131:73800:3600:0:0:0:12802:944:945"
SBS ONE
adding: Two Men in a Trench-Battle of Bannockburn 55133:55133:70200:3600:0:0:0:12802:944:946"
SBS TWO
ChannelError
adding: ChanError:Criminal Minds-Faceless, Nameless 55130:55130:77400:3600:0:0:0:0:0:0
Seven
ChannelError
adding: ChanError:Sports Tonight 55131:55131:82800:900:0:0:0:0:0:0
ONE HD
ChannelError
adding: ChanError:CSI: Crime Scene Investigation-Coup De Grace 55126:55126:73800:3600:0:0:0:0:0:0
WIN

Jill

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Fri Oct 23, 2009 20:18

Did you get your rename around the right way? The other thing you could do instead is to edit the config_channels_inc.php to have the ICE names, as it is the left side that is the all important info for setting the timers in the Wiz.
Tony

User avatar
jillybean
Apprentice
Posts: 74
Joined: Sat Mar 01, 2008 12:15
Location: Hervey Bay, Queensland

Post by jillybean » Sat Oct 24, 2009 06:31

Thanks Tony

Rename is the right way around (Ice~PVR) but I have done as you suggested and put the ICE names in config_channels_inc.php and all is now working. :D

Jill

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Sat Oct 24, 2009 08:03

how did you get your hands on the Ice guide data?

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
jillybean
Apprentice
Posts: 74
Joined: Sat Mar 01, 2008 12:15
Location: Hervey Bay, Queensland

Post by jillybean » Sat Oct 24, 2009 08:31

I have PerlTGD set up with a daily cron job to just download the xml file (and produce the .tgd files just in case my Toppy needs to be brought back into action) - have been using this xml file for DV Scheduler, so now it can feed wizTimerd as well.

Jill

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Sat Oct 24, 2009 09:18

Kezza wrote:how did you get your hands on the Ice guide data?
Kezza
http://www.icetv.com.au/cgi-bin/websupp ... q_cat_id=2
You need an account obviously.
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Thu Oct 29, 2009 09:36

I'm getting a few issues with automatic removal of timer clashes and outdated timers, as in its not happening.

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Sun Nov 08, 2009 09:11

have you turned this option off tony:

repeatmethod
Which determination method is to be used to detect repeats of shows.
Currently only new is avaliable. If you wish not to use this then leave blank.
* New is a method by which all timers set by this application get recorded to
shows.repeat and is used to determine whether it is a repeat.

its not working on my setup.

Kezza
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Sun Nov 08, 2009 09:21

I have not heard of it...
What do you mean in the previous post by "outdated timers" btw?
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Sun Nov 08, 2009 11:18

I'm getting some timers not fireing, also still have some timers for shows that have recorded.
These timers are for a date in the past
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Sun Nov 08, 2009 13:12

Date in the past is a wiz behaviour. You will find that if you send timers from the uploader for timers in the past with a Toppy, it just doesn't bother setting them, but the Wiz sets them regardless. This is because the uploader doesn't look at the current timestamp when it creates the list of timers, it just creates a list based on the data given it (and you will find the xml data includes the data for the whole day).
As for timers not firing, are you sure you have proper channel details in each timer? Keep an eye on things with the Wizremote php webpages (will show you if you have any problems with all the timers in the wiz).
Regards
Tony

User avatar
Kezza
Master
Posts: 465
Joined: Wed Aug 29, 2007 16:39
Location: Sydney

Post by Kezza » Wed Nov 11, 2009 21:46

The timers are being set days in advance most are fireing but after recording still showing up in wizremote, what's up with that?
? Kezza 2008

DLink Boxee Box
HD BW DP-S1 - Broken
SD Toppy 5000PVRt BP - Not Used
YAMAHA RXV800
B&W LM1
Harmony ONE Uni Remote
LG 47LY3DE LCD TV

User avatar
tonymy01
Uber Wizard
Posts: 6373
Joined: Fri Jun 01, 2007 15:25
Location: Sydney, Australia DP-S1-1TB, DP-P2-2TB, DP-T4-2TB, DP-T4-BB... too many!
Contact:

Post by tonymy01 » Wed Nov 11, 2009 22:00

There is no sanity checking on timers with the Wiz (unlike the Topfield TAP API). Read the readme for WizRemote for more info.
You must ensure the timers you create are valid, and are for valid times. If you set timers in the past, due to running this too late in the day, then it will show the current day timers and all previous ones that the Wiz didn't delete due to being set in the past.
Regards
Tony

Post Reply

Return to “Software Developers”