UK only has series 2 Tivo's so I have no idea whether it works for other types.
Code:
Sub Main(msg) svr="http://192.168.0.1:80/" 'URL(:port) to your TivoWEB Server tim=10 'Length of time (secs) to display message on TV dim msgtmp set msgtmp = hs.CreateStringClass msgtmp.Add "displaytext?text=" msgtmp.Add msg msgtmp.Add " &delay=" msgtmp.Add tim hs.GetURL svr,msgtmp, False, 80 End Sub
I also created another to make sure the kids aren't watching TV too late...
Code:
Sub Main 'Simple script for people who use TiVoWeb's displaytext function to enable 'messages to appear on the TV depending on the status of a specified module svr="http://192.168.0.1:80/" 'URL(:port) to your TivoWEB Server tim=10 'Length of time (secs) to display message on TV mes1 = "Kid's TV is Turned Off" 'Message if Device was off mes2 = "Kid's TV is Turned On" 'Message if Device was on dvc = "A4" 'Module address being monitored if hs.IsOff(dvc) then msg=mes1 else msg=mes2 end if 'Now build the URL line syntax dim msgtmp set msgtmp = hs.CreateStringClass msgtmp.Add "displaytext?text=" msgtmp.Add msg msgtmp.Add " &delay=" msgtmp.Add tim hs.GetURL svr,msgtmp, False, 80 End Sub
Mark.