Your Digital Media Has Never Looked So Good

 
wjones
Topic Author
Posts: 1
Joined: Mon Oct 17, 2011 12:31 am

Can Roku do this?

Mon Oct 17, 2011 12:33 am

I have a webpage that is dynamically created based on criteria the server says to display. It's not really streaming, but refreshes every 60 seconds or so. Can someone point me in the right direction on making this possible?
 
jbrave
Posts: 716
Joined: Mon Mar 22, 2010 3:00 pm
Location: Ben Lomond, CA
Contact:

Re: Can Roku do this?

Tue Oct 18, 2011 6:29 pm

It isn't really clear from what you posted exactly what you are trying to accomplish. Do you want a Roku screen that updates every few minutes? Do you want an image that updates every few minutes? As you probably know, a Roku can't really display a web (html) page. Instead, the Roku can take XML data and render that in many different ways. To do something on a timer, one can easily create a timer and perform an action on a regular schedule:

timer=createobject("rotimespan")
timer.mark()

while true
     if timer.totalseconds() > 60 then
          doMyThing()
          timer.mark()
     end if
end while
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
 
RyanMarquiste
Posts: 61
Joined: Sat Apr 23, 2011 6:26 pm

Re: Can Roku do this?

Wed Oct 19, 2011 3:32 pm

If the server is providing data to the webpage, it should be able to provide data to the Roku as well. You'll probably need the following bits to get this working.

1. Create a timer loop as jbrave mentioned above.
2. Query your server for the data that forms the webpage (XML/images are likely preferred format).
3. Parse the data from the server and render it using BrightScript tools.

As jbrave mentioned, the Roku does not support directly rendering a web page to the screen. You'll need to write your own functionality to display out the contents.

Who is online

Users browsing this forum: No registered users and 5 guests