0

UPload files to BrightSign-player with CURL, SSH, FTP or something similar

Hi there,

I´m trying to upload files to a BrightSign player.
My goal is to upload files (video, images, autorun.brs) to a player.
I´d like to build the autorun.brs with my own scripts like it is described here: https://support.brightsign.biz/hc/en-us/community/posts/209950357-Script-Examples-incl-Simple-Showcontrol-Script and WITHOUT the use of BrightAuthor (connected).
I know that uploading files is possible via the DWS, but only with the webinterface.
I want to achieve it with an automated script and restart the player after the upload.

I know this has been asked a couple of years before, maybe there is a solution now.

thanks in advance

4 comments

  • 0
    Avatar
    Bright Scripters

    You can enable ssh and upload with sftp protocol.

    ssh can be enabled via DWS or the hard way :)

    https://brightsign.atlassian.net/wiki/spaces/DOC/pages/370673607/Telnet+and+SSH

     

  • 0
    Avatar
    Marcel

    Thanks for the reply.
    It works if I don´t put a new autorun.brs into the folder.
    Steps to reproduce:
    1) autorun.brs with enabling SSH like it is described here: https://brightsign.atlassian.net/wiki/spaces/DOC/pages/370673607/Telnet+and+SSH
    2) Login to the player with SSH. I can see the shell:
    Welcome to the BrightSign Shell version 9.0.145.1 (2024-04-19)
    Type '?' for help or 'help <command>' for help on <command>.
    BrightSign>
    3) Upload an new autorun.brs with another script, like some of these: https://support.brightsign.biz/hc/en-us/community/posts/209950357-Script-Examples-incl-Simple-Showcontrol-Script and reboot player with reboot via the shell.
    4) Player reboots and plays the content, I can login with SSH and upload new files, but I can´t see the shell:
    Welcome to the BrightSign Shell version 9.0.145.1 (2024-04-19)
    Type '?' for help or 'help <command>' for help on <command>.
    BrightSign>
    to reboot the player.

    So, is there a way to combine these scripts?

  • 0
    Avatar
    Bright Scripters

    Once ssh is enabled, you should be able to gain access through ssh, regardless of the active autorun.

    You should be aware that ssh can be disabled again if the player is factory-reset manually, or through code. Make sure that the autorun file you upload to the player, doesn't contain code which does factory reset, nor changes the ssh settings.

  • 1
    Avatar
    Gerald Holdsworth

    In addition, you don't need to reboot the player everytime you upload new content. From the shell, you can enter:

    script autorun.brs

    When running, you can press, IIRC, CTRL+C to stop the current script and return to the debugger. Type exit to go back to the shell.

Please sign in to leave a comment.