0

current-sync.xml sha1 hash



Hi all,

I'm currently doing research on how we can use Roku/BrightSign in combination with a custom CMS and Simple Networking. For that I need to create the current-sync.xml file manually. The structure of this xml is perfectly clear and it should be really easy to publish these files.
The only node which is not clear is the hash node which is nested inside files->download

<hash method="sha1">1C938218C9E0DED542589F7427B2514117D54813</hash>

It's pretty obvious that this value needs to be a SHA1 hash. However I don't know what's being hashed exactly. Does anybody here knows this, or knows where to find this?
I noticed that there's almost no documentation online about how to set up your own simple networking and generate files automatically.

Thanks for any help in advance!

5 comments

  • 0
    Avatar
    RokuLyndon


    I'm checking on this.
  • 0
    Avatar
    RokuLyndon


    It’s a hash of the file that is getting downloaded.
  • 0
    Avatar
    PaulT


    Hi Lyndon,



    Thanks for your response. At first I thought this was already what I've tried, I converted the string filename to a sha1 hash, but this is not how it works. It needs to be a sha1 hash of the file self.



    In PHP I achieved this as follows:


    echo sha1_file("image.jpg");




    This gives the right checksum values.



    Thanks for helping me!



    Paul
  • 0
    Avatar
    David Riordan

    I'd also love to have access to the spec or even the validation schema for current-sync.xml / local-sync.xml.

     

    I'm working on a project with 50 Brightsign HD1020's, each of which needs to be updated daily, and all of them need to have different content, moving in sync. While my team has no issue in developing software, we'd prefer to bootstrap off of the existing Brightsign/Brightauthor Simple Networking infrastructure rather than having to write all that as brightscript from scratch.

     

    Any help in decoding (so we can encode) the sync-xml would be a huge help.

  • 0
    Avatar
    Romeo

    Hi David,

    You may find the below document useful.

    http://brightsignnetwork.com/download/Romeo/CMS%20Integration%20Package.zip 

    Regards,

    Romeo

Please sign in to leave a comment.