0

Answer to a UDP query sending the valor of a User Variable

Hello. I'ts posible to know the value stored in a user variable, asking to the BrightSign device with a UDP datagram?

Example: One digital signage unit (vertical display LCD & HD220) used to show the content of meetings in a hotel room. I used the next variables:

1: Enterprise name (ex: FARMA LABS")

2:  Openning (ex: "Briefing of 1er quarter 2014"

3: Theme (ex: "08:00 to 17:00 h.")

I'm use UDP send commands from a "Adobe Director" app installed in a desktop PC to update the user variables in a "Live Text" object and update in realtime the content of the LCD. But how I can know the stored string in the user variables?. It's necessary to offer the user app  the actual text stored in the variables before to proceed to change it.

It's posible trought the iOS BrightSign app or accesing the unit trought wen browser (8008 Port), you can see the actual value of variables and change it, but I need to know these values and offer to the user of my custom app.

In the attach file, you can see the presentation with the three user variables.

P.D. I'm use a custom autorun.brs with the " : " symbol of the separator ( variable:value ) changed to " # " to send the hour format: "07:00 to 20:00".

Thanks.

 




SALON INDIVIDUAL - dividido.bpf

11 comments

  • 0
    Avatar
    Lyndon

    You could use a plugin to listen for a udp command, and respond with the variable value.  YOu can then attach the plugin to the presentation you are publishing. Does the plugin only need to be able to return the current value in the variable?

     

     

  • 0
    Avatar
    Luis Alberto

    Thank you.

    Yes, I'm only need to kwnow the actual value in the variable. In a Adobe Director app, we offer 3 fields to change the content of 3 variables of the presentation stored in the HD220, trought socket UDP datagram, I send: "1_Name:Barklay's Bank", then the user variable "1_Name" changed her value to "Barklay's Bank", work Ok and the changes are in real time.But I need to know the actual value of the variable, to offer the user of the Director App the content of the digital signage presentation, before can it change or leave as it. This App can run in any computer in the same IP network, so the answer of the plugin can be a Broadcast type (ex. 192.168.50.255), in this way all computers can receive the UDP with the variable value, at same time.

     

  • 0
    Avatar
    Lyndon

    I've attached a plugin called getvar, and a readme that explains how it works. It listens for "getvar!variablename" and replies with the value in the variable.

     

  • 0
    Avatar
    Luis Alberto

    Ok. I try it. Looks good.

    Many thanks.

  • 0
    Avatar
    GD

    Alternatively, If you enable the server on the player, you can use http://10.0.0.20:8080/GetUserVars/ (or port 8008) this will output an xml with available variables

  • 0
    Avatar
    Todd Gourlie

    Can you show the change in your autorun.brs for the separator change?  We have the same request for time display from UDP message.  Thanks

  • 0
    Avatar
    Lyndon

    Please clarify what you mean by separator change.

     

    Someone wants to send the time to be stored in a udp message?

  • 0
    Avatar
    Todd Gourlie

    above, the original post indicated that they changed for form for data entry into a live text field from  <variable name> : <variable value>   to <variable name> # <variable value>  so that they could display a string that contained ":"  such as 9:00am

  • 0
    Avatar
    Todd Gourlie

    ^

     

    "P.D. I'm use a custom autorun.brs with the " : " symbol of the separator ( variable:value ) changed to " # " to send the hour format: "07:00 to 20:00"."

  • 0
    Avatar
    Lyndon

     

    Find this line in the current autorun:

    regex = CreateObject("roRegEx",":","i")

    Change the : inside the quotes to #

  • 0
    Avatar
    Lyndon

    https://www.brightsignnetwork.com/download/Scripts/getvar.zip

     

    This has sample project file and the getvar plugin. 

Please sign in to leave a comment.