0

On-demand content update from network



Hello,

Is it possible to update and display the content (jpegs, mainly) of an HD210 on demand via the network? I see that you can set the 210 to check the network periodically for new content but I would like to have it update immediately when the content changes.

Thanks,

Brian

10 comments

  • 0
    Avatar
    RokuLyndon


    Do you mean with an RSS feed? Or, are you uploading new content to a web folder that you then want the brightsign to download?
  • 0
    Avatar
    ba_hill


    It would be new content uploaded to a web folder.



    Thanks,



    Brian



    "RokuLyndon" wrote:

    Do you mean with an RSS feed? Or, are you uploading new content to a web folder that you then want the brightsign to download?

  • 0
    Avatar
    RokuLyndon


    You can have a brightsign grab content from a web folder.
  • 0
    Avatar
    ba_hill


    Thanks. I've got this working now with the GetToFile command but I can't get it to work with AsyncGetToFile. Other than waiting for a URLEvent is there something else I need to do?



    Thanks,



    Brian



    "RokuLyndon" wrote:

    You can have a brightsign grab content from a web folder.

  • 0
    Avatar
    ba_hill


    I found and fixed a typo in my script and now it works with AsyncGetToFile.



    Thanks,



    Brian





    "ba_hill" wrote:

    Thanks. I've got this working now with the GetToFile command but I can't get it to work with AsyncGetToFile. Other than waiting for a URLEvent is there something else I need to do?

    Thanks,

    Brian

    "RokuLyndon" wrote:

    You can have a brightsign grab content from a web folder.


  • 0
    Avatar
    sean


    Brian,



    I'm trying to do the same things can you send me your script so I have something to base mine one.  



    Sean Brueckner

    <!-- e --><a href="mailto:sean@expertpcservice.com">sean@expertpcservice.com</a><!-- e -->
  • 0
    Avatar
    ba_hill


    Hi Sean,



    No problem. It's on its way.



    Brian



    "sean@expertpcservice.com" wrote:

    Brian,

    I'm trying to do the same things can you send me your script so I have something to base mine one.  

    Sean Brueckner
    <!-- e --><a href="mailto:sean@expertpcservice.com">sean@expertpcservice.com</a><!-- e -->

  • 0
    Avatar
    Robert Stegner


    Brian,



    I also am trying to script the same type of thing.  can you send me your script?

    <!-- e --><a href="mailto:rstegner@usd288.org">rstegner@usd288.org</a><!-- e -->
  • 0
    Avatar
    tmloving


    Hello Brian,





    Would you mind sending your script to me as well.



    Thank You,



    Matt L.

    <!-- e --><a href="mailto:tmloving@gmail.com">tmloving@gmail.com</a><!-- e -->
  • 0
    Avatar
    ba_hill


    Hi,



    Here is a commented and cleaned up version of the autorun.bas I wrote to test on-demand content update. It downloads a single image and displays it. If an error is returned from the URL transfer command an error image, failure.bmp, is displayed instead. You'll need to have a bitmap file with that name on your card for this script to work.



    Brian





    v=CreateObject("roVideoMode")

    v.SetMode("800x600x60p")



    p=CreateObject("roMessagePort")

    i=CreateObject("roImagePlayer")



    'Setup for download

    u=CreateObject("roUrlTransfer")

    u.SetUrl("http://artfiles.art.com/images/-/USA-Flag-Poster-C10084150.jpeg")

    u.SetPort(p)



    'Get and write data to file

    result=u.AsyncGetToFile("flag.jpg")



    'Display image is there is an error

    if (result = false)

       i.DisplayFile("failure.bmp")

       goto dloop

    endif



    'Wait until transfer complete

    url_loop:

    msg=wait(0,p)

    if type(msg)="roUrlEvent" then

       if (msg.GetInt() = 1) then goto displayFlag  

    endif

    goto url_loop



    'Display downloaded image

    displayFlag:

    i.DisplayFile("flag.jpg")



    dloop:

    goto dloop
Please sign in to leave a comment.