Click here to go to the forum index Click here for the home page
 
Author Message

<  Computer connections  ~  rt2mei 1.1a

Page 117 of 119
Goto page Previous  1, 2, 3 ... 116, 117, 118, 119  Next
Geoff Bacon
Posted: Mon Nov 18, 2013 5:32 pm Reply with quote
Frequent contributor Joined: 12 Jan 2007 Posts: 3960
@dedics

TM/PcControl should modify a \ProgramFiles\Settings\MyStuff\FavLists\rt2mei.cfg file.

I'm guessing that you used the Edit Favourites option and created a rt2mei.mcl file.

With TM do
1) Connection| Browse
2) Double Click Settings folder
3) Double Click MyStuff folder
4) Double Click FavLists
5) Select rt2mei.mcl, F2 and change its name to rt2mei.cfg; this creates the .cfg file (whose contents we don't care about) and removes the "unwanted" the .mcl file)
6) PcControl| Radio Times Regions - select as necessary
7) PcControl| Channel Management
8 )"Check Files"

This should rewrite the rt2mei.cfg file to match the channels on your toppy.

You then need to put the .cfg in the correct place on the computer that is processing the .php file.

Can't test the above at the moment at the moment as toppy disconnected while decorating!

Geoff

_________________
TopManager program
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -Sy
TAPs: PcControl B1.4; StopExit v1.01; EPG2MEI v0.96; QuickJump 1.72; MyStuff 6.6; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; MHEG On/Off A3; MyInfo B5.6; WSSkiller V2.12d; CrashTrace v0.4; fsSave 1.1; PruneEPG 1.0;
Sig generated by MyInfo on 17/1/16
View user's profile Send private message Visit poster's website
Valiant
Posted: Wed Nov 20, 2013 9:57 am Reply with quote
Frequent contributor Joined: 19 May 2008 Posts: 296
andyfras wrote:
Channel Organiser can create an rt2mei.cfg file based on the channels used after CO has done its stuff. You then need to copy this file back to your PC from the Toppy disk.


Andy is correct, but further to that the rt2mei.bat batch file (as modded by EMJB) always fetches the rt2mei.cfg config file from the toppy before running the rest of the job. The file looks like this :-

Code:
@echo off
REM     Filename:   rt2mei.bat
REM     Version:    0.63 modified for use with Favourites Manager
REM     Date:       6/9/2007
REM     Author:     Wooders/EMJB
REM     Website:    http://www.wooders.co.uk/rt2mei


REM Assuming that you unzipped all the rt2mei files into folder C:\rt2mei

REM Download PHP Windows Binaries zip package at http://www.php.net/downloads.php
REM Extract php.exe and php5ts.dll into C:\rt2mei

REM Download tfcopy from http://www.8ung.at/aldarin/tools.html
REM Extract tfcopy.exe to C:\rt2mei

REM Run this batch file from C:\rt2mei

REM Back up the existing MyStuff.mei
if not exist MyStuff.mei goto Grab
if exist MyStuff.mei.bak del /F MyStuff.mei.bak
ren MyStuff.mei MyStuff.mei.bak

:Grab
TFCOPY "#:\ProgramFiles\Settings\MyStuff\FavLists\rt2mei.cfg" "C:\rt2mei\rt2mei.cfg".
PHP rt2mei.php -- -new
if errorlevel 2 goto TryAgainLater
if errorlevel 1 goto Error
goto CopyToToppy


:TryAgainLater
REM Sleep for 10 mins
del /F MyStuff.mei
PHP sleep.php 600
goto Grab


:Error
del /F MyStuff.mei
goto Bye


:CopyToToppy
REM Remove these lines if you are not using TFCOPY
TFCOPY MyStuff.mei "#:\ProgramFiles\"
REM TFCOPY "My Favourites.mcl" "#:\ProgramFiles\"


:Bye
REM Remove the next line if you are running this as a scheduled task
REM PAUSE

_________________
TF5810, F/W: MS6 Recommended F/W 12/9/2009 -Fm+BmFsIPsUUuUxZ
TAPs: MyInfo B5.6; EPG2MEI v0.96; Extend v1.7; SecCache (UK) v0.4; MyStuff 6.5; (EIT Sub v0.6 SnG);
Sig generated by MyInfo on 25/3/14
View user's profile Send private message 5810
dedics
Posted: Thu Nov 21, 2013 11:49 am Reply with quote
Frequent contributor Joined: 07 Aug 2005 Posts: 310
Hi guys as far as I can gather (I am not a programmer, the proble with all the warnings I am getting is with the fact that sice php 5.0.1 the code needs to have the timezone explicitly defined, or it chucks out loads of warning messages.

I haven't managed to get the syntax or placement of the date.timestamp function correct so far, could any of you php gurus out there help me with a piece of code that correctly sets the timezone to UTC and tell me where to insert this within the rt2mei code in which file, the website goes on about a php.ini file which I assume is the .bat file or am I missing something?

Confused

dedics

_________________
updated:
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmXl+UUuVr
TAPs: TAP Commander 1.34; QuickJump 1.72; MyStuff 6.0; EPG2MEI v0.94; Extend v1.7; TF5000 Display v1.46; MyInfo B4.0;
Sig generated by MyInfo on 24/9/09
View user's profile Send private message
Bizman
Posted: Thu Nov 21, 2013 12:04 pm Reply with quote
Frequent contributor Joined: 06 Apr 2010 Posts: 1707
I have the line date_default_timezone_set('UTC'); in function process_line(&$line, $newepg) and ksort($worklist);

_________________
TF5810, F/W: 5.15.09T 4/9/2009 -FmTe+EzHsVb
TAPs: EIT Sub (Game) v0.6; SecCache (UK) v0.4; MHEG On/Off A3; MPDisplayLITE V1.2; MyInfo B5.6; PruneEPG 1.0; EPG2MEI v0.96; QuickJump 1.72; Extend v1.7; (fsSave 1.1);
Sig generated by MyInfo on 3/8/17

Other TAPs : FsCheck, Channel Organiser. PSU Caps 7/2/2011 Tx: Mendip. TV: Samsung (32"), NSLU2, STB: Labgear FV300. PC Acer Aspire One with Win7 Starter
View user's profile Send private message
Valiant
Posted: Thu Nov 21, 2013 1:15 pm Reply with quote
Frequent contributor Joined: 19 May 2008 Posts: 296
dedics wrote:
Hi guys as far as I can gather (I am not a programmer, the proble with all the warnings I am getting is with the fact that sice php 5.0.1 the code needs to have the timezone explicitly defined, or it chucks out loads of warning messages.

I haven't managed to get the syntax or placement of the date.timestamp function correct so far, could any of you php gurus out there help me with a piece of code that correctly sets the timezone to UTC and tell me where to insert this within the rt2mei code in which file, the website goes on about a php.ini file which I assume is the .bat file or am I missing something?

Confused

dedics


Now I remember that in June 2012 I changed a line in the php.ini file because of this problem on a Vista laptop. The code was near line 284 :-

Code:


[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Europe/London



If this helps then you should make sure that the php.ini file is in your rt2mei folder. If it is not then copy it in from the PHP installation directory as per Wooders instructions on his website http://www.wooders.co.uk/rt2mei/windows.php

_________________
TF5810, F/W: MS6 Recommended F/W 12/9/2009 -Fm+BmFsIPsUUuUxZ
TAPs: MyInfo B5.6; EPG2MEI v0.96; Extend v1.7; SecCache (UK) v0.4; MyStuff 6.5; (EIT Sub v0.6 SnG);
Sig generated by MyInfo on 25/3/14
View user's profile Send private message 5810
alan_m
Posted: Thu Nov 21, 2013 1:45 pm Reply with quote
Frequent contributor Joined: 18 Oct 2006 Posts: 3429
dedics wrote:
Hi guys as far as I can gather (I am not a programmer, the proble with all the warnings I am getting is with the fact that sice php 5.0.1 the code needs to have the timezone explicitly defined, or it chucks out loads of warning messages.

I haven't managed to get the syntax or placement of the date.timestamp function correct so far, could any of you php gurus out there help me with a piece of code that correctly sets the timezone to UTC and tell me where to insert this within the rt2mei code in which file, the website goes on about a php.ini file which I assume is the .bat file or am I missing something?

Confused

dedics



Depending on what you have downloaded you may not have a php.ini file
in the same folder as the rt2mei files. Not having a php.ini file is a common problem if you have downloaded from the links in some of the instruction pages.

Creating a php.ini file is esay Smile Open up a text editor such as notepad, texpad etc. (Not Microsoft word) and start a new blank text document.

Type in one line of text

date.timezone = Europe/London

Save this as a file named php.ini

Check in the folder that it hasn't been renamed to something like php.ini.doc or php.ini.txt. If it has just rename it back to php.ini

_________________

5800 - 1Tbyte HD and fan F/W: MS6, 5.13.65T 18 Nov 2010 -Te+B2D plus aXeL
Auto Start:MyStuff 6.5|EPG2MEI v0.96|Extend v1.7|SecCache (UK) v0.4|TF5000 Display v1.53|MHEG On/Off A3
View user's profile Send private message Visit poster's website
dedics
Posted: Thu Nov 21, 2013 2:39 pm Reply with quote
Frequent contributor Joined: 07 Aug 2005 Posts: 310
I tried both these ideas and now it objects to not having the correct data for mktime and date commands, Is there another syntax?

I Also tried bizmans idea but I clearly don't know enough about the syntax to get it right because it then comes up with parse errors.

I'm assuming I put the code in the .ini file Is this correct?

dedics

_________________
updated:
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmXl+UUuVr
TAPs: TAP Commander 1.34; QuickJump 1.72; MyStuff 6.0; EPG2MEI v0.94; Extend v1.7; TF5000 Display v1.46; MyInfo B4.0;
Sig generated by MyInfo on 24/9/09
View user's profile Send private message
Valiant
Posted: Fri Nov 22, 2013 9:41 am Reply with quote
Frequent contributor Joined: 19 May 2008 Posts: 296
dedics wrote:
I tried both these ideas and now it objects to not having the correct data for mktime and date commands, Is there another syntax?

I Also tried bizmans idea but I clearly don't know enough about the syntax to get it right because it then comes up with parse errors.

I'm assuming I put the code in the .ini file Is this correct?

dedics


Yes the code has to be put in the php.ini file.

Is your timezone in the Date and Time setting in Control Panel set to UTC ?

_________________
TF5810, F/W: MS6 Recommended F/W 12/9/2009 -Fm+BmFsIPsUUuUxZ
TAPs: MyInfo B5.6; EPG2MEI v0.96; Extend v1.7; SecCache (UK) v0.4; MyStuff 6.5; (EIT Sub v0.6 SnG);
Sig generated by MyInfo on 25/3/14
View user's profile Send private message 5810
dedics
Posted: Fri Nov 22, 2013 10:47 am Reply with quote
Frequent contributor Joined: 07 Aug 2005 Posts: 310
yep, just checked...

dedics

_________________
updated:
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmXl+UUuVr
TAPs: TAP Commander 1.34; QuickJump 1.72; MyStuff 6.0; EPG2MEI v0.94; Extend v1.7; TF5000 Display v1.46; MyInfo B4.0;
Sig generated by MyInfo on 24/9/09
View user's profile Send private message
TopTapper
Posted: Fri Nov 22, 2013 3:24 pm Reply with quote
Frequent contributor Joined: 29 Jan 2006 Posts: 209
Bizman's code requires edits to the rt2mei.php file but it's probably simpler to use the php.ini file - this will contain a line like:
Code:
date.timezone=Europe/London
or
Code:
date.timezone=UTC
(I've only seen the former used in Toppy land)

You can test whether the .ini is working by opening a Command prompt (Run -> cmd [enter]), moving to the rt2mei/php.ini directory, and entering:
Code:
php.exe -r "echo date_default_timezone_get();"
View user's profile Send private message
dedics
Posted: Fri Nov 22, 2013 4:12 pm Reply with quote
Frequent contributor Joined: 07 Aug 2005 Posts: 310
thank you that seems to have done the trick !

dedics

_________________
updated:
TF5800, TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmXl+UUuVr
TAPs: TAP Commander 1.34; QuickJump 1.72; MyStuff 6.0; EPG2MEI v0.94; Extend v1.7; TF5000 Display v1.46; MyInfo B4.0;
Sig generated by MyInfo on 24/9/09
View user's profile Send private message
MickKi
Posted: Wed Mar 05, 2014 10:14 pm Reply with quote
Frequent contributor Joined: 30 Aug 2008 Posts: 203
Hi All,

Have you seen this script and has anyone tried it yet? I'm not sure how to use it with my slug and the rt2mei php script ...

_________________
Regards,
Mick
Toppy: TF5800 + Linksys NSLU2 - Unslung 6.10-beta
TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmSy+EvPeUWf
TAPs: EPG2MEI v0.96; MyStuff 6.6; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; MHEG On/Off A3; PruneEPG 1.0; MyInfo B5.6;
Sig generated by MyInfo on 7/11/15
View user's profile Send private message
EMJB
Posted: Thu Mar 06, 2014 7:52 am Reply with quote
Frequent contributor Joined: 08 Jul 2005 Posts: 3620 Location: Maldon Essex
MickKi wrote:
Hi All,

Have you seen this script and has anyone tried it yet? I'm not sure how to use it with my slug and the rt2mei php script ...


I understand that the data accessed by rt2mei is not true XMLTV, in which case it will not greatly help. However I hope to be able to release an experimental version of my "as2mei" shortly which will get all the rt2mei data available from ATLAS plus a bit more. Incidentally the procedure for getting an access key has changed since that was published.

EMJB

_________________
Silver 5800, Board Rev 1.2, MS recomm F/W, Sudbury Tx, varying TAP config
View user's profile Send private message
DX
Posted: Thu Mar 06, 2014 10:48 am Reply with quote
Frequent contributor Joined: 06 Apr 2005 Posts: 2694
MickKi wrote:
Hi All,

Have you seen this script and has anyone tried it yet? I'm not sure how to use it with my slug and the rt2mei php script ...

You wouldn't use it with rt2mei. That bypasses the XMLTV format and directly accesses the RT feed that was provided for a previous XMLTV grabber. The feed itself is not XMLTV format any more than the Atlas feed is.

The easiest thing is to wait for as2mei from EMJB. If you don't want to wait I'd suggest you investigate Bawbagg's MyStuff_Extended_Info here

http://forum.toppy.org.uk/forum/viewtopic.php?t=2115&postdays=0&postorder=asc&start=0

This was the original way of getting RT data for MyStuff. It didn't directly access the RT feed but instead took data in XMLTV format from an XMLTV grabber. It is possible to modify it to use other XMLTV grabbers.

Unfortunately the host site Bawbagg used closed on March 3 2014 so you will need to search around for a copy but the above thread is a starting point.
View user's profile Send private message
MickKi
Posted: Thu Mar 06, 2014 5:33 pm Reply with quote
Frequent contributor Joined: 30 Aug 2008 Posts: 203
Thanks for sharing this link DX. I didn't know that there was an as2mei script brewing ...

_________________
Regards,
Mick
Toppy: TF5800 + Linksys NSLU2 - Unslung 6.10-beta
TS On, F/W: MS6 Recommended F/W 12/9/2009 -FmSy+EvPeUWf
TAPs: EPG2MEI v0.96; MyStuff 6.6; Extend v1.7; SecCache (UK) v0.4; EIT Sub (Game) v0.6; MHEG On/Off A3; PruneEPG 1.0; MyInfo B5.6;
Sig generated by MyInfo on 7/11/15
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 117 of 119
Goto page Previous  1, 2, 3 ... 116, 117, 118, 119  Next

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum