Page 1 of 1

Tivo DailMail and embedded links

PostPosted: Wed Jan 04, 2023 10:54 am
by philguk
Been bugging me for ages, now time to fix it!

Tivo DailyMail (the jazzed dailymail program - v1.03 (19 December 2013)) has embedded links in it back to my home Tivo

BUT it only has the ip address and misses out the port number I need to actually access Tivoweb

I've looked and looked and looked in the config file and can't see WHERE the Tivo ip address is defined - is it hidden somewhere??

Many thanks

Re: Tivo DailMail and embedded links

PostPosted: Wed Jan 04, 2023 12:53 pm
by reh
From notes I've kept about TiVo addressing, it looks like only the port number is stored in the config file. The IP address can be found via the TiVo settings menu:

Obtaining TIVO's IP address

Go to TIVO Central by pressing the big TIVO button at the top of your TIVO remote. From TIVO central, click on "Settings & Messages," then click on "Settings," then on "Network & Phone." A screen will appear that Network Connections across the top. One of the lines on this screen will say "IP Address." That line will give the IP address of the TIVO box. It will probably be something like 192.168.1.103.

This IP address can potentially be changed each time you reboot your router. If that happens, you'll have to repeat this step to get the new IP address, and then repeat the following steps that utilize this IP address. To prevent that, you can specify that you want the TIVO address to remain constant. You do that by going through the steps leading to the "Network & Phone" screen as described above. From there you want to select "Change Network Settings." You will then be directed to re-enter your network information and will eventually get to a screen asking if you want to have the IP address assigned automatically (DHCP) or if you want to select the IP address yourself. Choose the latter and select a high IP address that is beyone the range of addresses that are assigned by your router. For example, if you router had previously assigned your TIVO the IP address of 192.168.1.103, selecting the address of 192.168.1.200 will probably be safe.


Hope that helps?
Ruth

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 9:11 am
by Pegasus
You specify the TiVo IP address in section 2.1.3 of dailymail.cfg

If you need a specific port then append it to the ip address with a colon, like so:

Code: Select all
## (2.1.3) The url of the tivo, required if you have enabled hyperlinks (no forward slash at end
##         required)

set dmailTivoURL "http://192.168.1.200:8080"

This example says TivoWeb is at ip address 192.168.1.200 and port 8080. Adapt as required.

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 10:50 am
by philguk
Pegasus wrote:You specify the TiVo IP address in section 2.1.3 of dailymail.cfg

If you need a specific port then append it to the ip address with a colon, like so:

Code: Select all
## (2.1.3) The url of the tivo, required if you have enabled hyperlinks (no forward slash at end
##         required)

set dmailTivoURL "http://192.168.1.200:8080"

This example says TivoWeb is at ip address 192.168.1.200 and port 8080. Adapt as required.

Hmmmmm

My dailymail.cfg does indeed have the CORRECT IP address and port defined, but my DailyMails steadfastly have an incorrect IP

Config has the EXTERNAL IP address, and DailyMail uses the internal one - it's the EXTERNAL one I am trying to use, so I can link back to Tivo when I am away

It's almost as if DailyMail is "automatically" picking up the local IP from somewhere??

Sure enough. Just run a DailyMail with debug lvl 3 and right at the top it says
10:51:29-IP EXTERNAL SETUP SECTION - STARTED
10:51:29-getting local ip address
10:51:29-our ip : >>192.168.0.222<<
10:51:30-IP EXTERNAL SETUP SECTION - COMPLETED


and nowhere do I ever see it do anything with my external IP address :(

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 2:32 pm
by Pegasus
Can you try setting dmailTivoURL with your external ip but without the port and see if the links in the generated daily mail have your external IP.

e.g.
set dmailTivoURL "http://123.456.789.0"

(Obvs they won't actually work but this is a test)

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 3:32 pm
by philguk
Well, whaddya know - my external IP (as defined in the config file) DOES now show up in the DailyMail links!

So.......

Why does the /:nnnn addition of a port number make it "invalid"??

Oh, and thanks for the suggestion

UPDATE:
I just added the trailing slash to the IP address in config, and that's enough to stop it using the requested IP address!!

I just have
Code: Select all
set dmailTivoURL "http://217.155.69.233/"
and what I get in the links is 192.168.0.222 (the internal IP)

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 5:51 pm
by Pegasus
Right that's what I suspected... I've customised my dailymail for my own use to allow port number but it's not in the 'published' version!

Are you comfortable with editing program code files on your TiVo?
(Or, alternatively, using FTP to transfer files to/from your TiVo?)

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 6:17 pm
by philguk
Pegasus wrote:Right that's what I suspected... I've customised my dailymail for my own use to allow port number but it's not in the 'published' version!

Are you comfortable with editing program code files on your TiVo?
(Or, alternatively, using FTP to transfer files to/from your TiVo?)

Yes to both questions :)

I did take a quick look at the dailymail tcl file, but that's wayyyyy beyond my programming abilities. That said, I can certainly follow instructions and surgically "edit where indicated"

That might be easier than sending me your "tailored" tcl file, just in case there's anything else in there that I don't need

Unless the changes are extensive, of course

Phil G

PS It also seems I am NOT receiving notifications when threads I am subscribed to are updated. I suspect the alt-epg forum has an out of date eMail address for me, but I can't see how to change it :(

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 6:44 pm
by Pegasus
There's only one line to change. In your file dailymail_jazz.tcl (which is probably in /var/hack/dailymail/ )

Round about line 754 you should find the following code
Code: Select all
      if { ![regexp {^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$} $dmailTivoURL] } {
         set dmailTivoURL "http://$ouripaddress"
      }

Change where it says [0-9]+$ to be just [0-9]+ i.e. delete that dollar sign. Just that one! (leave the one before $dmailTivoURL)

So it should become
Code: Select all
      if { ![regexp {^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+} $dmailTivoURL] } {
         set dmailTivoURL "http://$ouripaddress"
      }

Then in your dailymail.cfg section 2.1.3
Code: Select all
set dmailTivoURL "http://217.155.69.233:8080"

Replace 8080 with whatever port number you are using.

And note there is no / before or after the ":8080"

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 6:47 pm
by Pegasus
PS It also seems I am NOT receiving notifications when threads I am subscribed to are updated. I suspect the alt-epg forum has an out of date eMail address for me, but I can't see how to change it :(

User Control Panel -> Profile - Edit account settings

Link: ucp.php?i=profile&mode=reg_details

Also check:
Board preferenes -> Edit posting defaults -> Notify me upon replies by default:

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 7:09 pm
by philguk
Pegasus wrote:There's only one line to change. In your file dailymail_jazz.tcl (which is probably in /var/hack/dailymail/ )

Round about line 754 you should find the following code
Code: Select all
      if { ![regexp {^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$} $dmailTivoURL] } {
         set dmailTivoURL "http://$ouripaddress"
      }

Change where it says [0-9]+$ to be just [0-9]+ i.e. delete that dollar sign. Just that one! (leave the one before $dmailTivoURL)

So it should become
Code: Select all
      if { ![regexp {^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+} $dmailTivoURL] } {
         set dmailTivoURL "http://$ouripaddress"
      }

Then in your dailymail.cfg section 2.1.3
Code: Select all
set dmailTivoURL "http://217.155.69.233:8080"

Replace 8080 with whatever port number you are using.

And note there is no / before or after the ":8080"

My line 754 doesn't look QUITE like yours
Code: Select all
      if { ![regexp {^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(:[0-9]+)?$} $dmailTivoURL] } {
         set dmailTivoURL "http://$ouripaddress"

I seem to have an extra bracket and a ? (the brackets are around the last [0-9], and there's a colon there too, so kind of afraid to mess this up!

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 7:13 pm
by philguk
Pegasus wrote:There's only one line to change. In your file dailymail_jazz.tcl (which is probably in /var/hack/dailymail/ )

Round about line 754 you should find the following code
Code: Select all
      if { ![regexp {^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$} $dmailTivoURL] } {
         set dmailTivoURL "http://$ouripaddress"
      }

Change where it says [0-9]+$ to be just [0-9]+ i.e. delete that dollar sign. Just that one! (leave the one before $dmailTivoURL)

So it should become
Code: Select all
      if { ![regexp {^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+} $dmailTivoURL] } {
         set dmailTivoURL "http://$ouripaddress"
      }

Then in your dailymail.cfg section 2.1.3
Code: Select all
set dmailTivoURL "http://217.155.69.233:8080"

Replace 8080 with whatever port number you are using.

And note there is no / before or after the ":8080"

My line 754 doesn't look QUITE like yours
Code: Select all
      if { ![regexp {^http://[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+(:[0-9]+)?$} $dmailTivoURL] } {
         set dmailTivoURL "http://$ouripaddress"

I seem to have an extra bracket and a ? (the brackets are around the last [0-9], and there's a colon there too, so kind of afraid to mess this up!

Re: Tivo DailMail and embedded links

PostPosted: Thu Jan 05, 2023 7:25 pm
by philguk
OK - I took a backup of my tcl file and made the suggested edit

All seems now to be working as expected

MANY thanks :)

Re: Tivo DailMail and embedded links

PostPosted: Fri Jan 06, 2023 8:55 am
by Pegasus
Okay so that change to allow port in the dmailTivoURL was published - I was working from an old file. :(

No change should have been necessary to your file - it would work as it was before you edited it.

I suspect (based on something you said below) you initially entered the value in the config file as
Code: Select all
set dmailTivoURL "http://123.456.789.233/:8080"
instead of
Code: Select all
set dmailTivoURL "http://123.456.789.233:8080"

That extra / before the ":8080" would cause exactly the problem you describe.


Still, I'm glad you got it working, and I write this not to chastise but for the benefit of anyone else reading this in the future :) It was my fault really as I did spot you mentioned "/:8080" but I thought the problem was in the program code. Silly me. :D

Re: Tivo DailMail and embedded links

PostPosted: Fri Jan 06, 2023 12:09 pm
by philguk
Regardless, it is working now